mfunc             429 arch/x86/kernel/smpboot.c #define link_mask(mfunc, c1, c2)					\
mfunc             431 arch/x86/kernel/smpboot.c 	cpumask_set_cpu((c1), mfunc(c2));				\
mfunc             432 arch/x86/kernel/smpboot.c 	cpumask_set_cpu((c2), mfunc(c1));				\
mfunc             106 drivers/net/ethernet/mellanox/mlx4/catas.c 	comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm +
mfunc             131 drivers/net/ethernet/mellanox/mlx4/catas.c 		     (__iomem char *)priv->mfunc.comm + MLX4_COMM_CHAN_FLAGS);
mfunc             135 drivers/net/ethernet/mellanox/mlx4/catas.c 		comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm +
mfunc             239 drivers/net/ethernet/mellanox/mlx4/catas.c 		slave_read = swab32(readl(&priv->mfunc.comm->slave_read));
mfunc             258 drivers/net/ethernet/mellanox/mlx4/cmd.c 	u32 status = readl(&priv->mfunc.comm->slave_read);
mfunc             283 drivers/net/ethernet/mellanox/mlx4/cmd.c 		     &priv->mfunc.comm->slave_write);
mfunc             516 drivers/net/ethernet/mellanox/mlx4/cmd.c 	struct mlx4_vhcr_cmd *vhcr = priv->mfunc.vhcr;
mfunc             957 drivers/net/ethernet/mellanox/mlx4/cmd.c 					slave_cap_mask = priv->mfunc.master.slave_state[slave].ib_cap_mask[port];
mfunc            1666 drivers/net/ethernet/mellanox/mlx4/cmd.c 	struct mlx4_vhcr_cmd *vhcr_cmd = in_vhcr ? in_vhcr : priv->mfunc.vhcr;
mfunc            1683 drivers/net/ethernet/mellanox/mlx4/cmd.c 		ret = mlx4_ACCESS_MEM(dev, priv->mfunc.vhcr_dma, slave,
mfunc            1684 drivers/net/ethernet/mellanox/mlx4/cmd.c 				      priv->mfunc.master.slave_state[slave].vhcr_dma,
mfunc            1820 drivers/net/ethernet/mellanox/mlx4/cmd.c 		ret = mlx4_ACCESS_MEM(dev, priv->mfunc.vhcr_dma, slave,
mfunc            1821 drivers/net/ethernet/mellanox/mlx4/cmd.c 				      priv->mfunc.master.slave_state[slave].vhcr_dma,
mfunc            1829 drivers/net/ethernet/mellanox/mlx4/cmd.c 			 mlx4_GEN_EQE(dev, slave, &priv->mfunc.master.cmd_eqe))
mfunc            1851 drivers/net/ethernet/mellanox/mlx4/cmd.c 	vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
mfunc            1852 drivers/net/ethernet/mellanox/mlx4/cmd.c 	vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc            1861 drivers/net/ethernet/mellanox/mlx4/cmd.c 	if (!(priv->mfunc.master.slave_state[slave].active &&
mfunc            1932 drivers/net/ethernet/mellanox/mlx4/cmd.c 	queue_work(priv->mfunc.master.comm_wq, &work->work);
mfunc            1942 drivers/net/ethernet/mellanox/mlx4/cmd.c 	port_qos_ctl = &priv->mfunc.master.qos_ctl[port];
mfunc            1965 drivers/net/ethernet/mellanox/mlx4/cmd.c 	port_qos = &priv->mfunc.master.qos_ctl[port];
mfunc            2001 drivers/net/ethernet/mellanox/mlx4/cmd.c 		&priv->mfunc.master.slave_state[slave];
mfunc            2012 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.master.vf_oper[slave].smi_enabled[port] =
mfunc            2013 drivers/net/ethernet/mellanox/mlx4/cmd.c 			priv->mfunc.master.vf_admin[slave].enable_smi[port];
mfunc            2014 drivers/net/ethernet/mellanox/mlx4/cmd.c 		vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
mfunc            2015 drivers/net/ethernet/mellanox/mlx4/cmd.c 		vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc            2079 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.master.vf_oper[slave].smi_enabled[port] =
mfunc            2081 drivers/net/ethernet/mellanox/mlx4/cmd.c 		vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
mfunc            2099 drivers/net/ethernet/mellanox/mlx4/cmd.c 	struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state;
mfunc            2147 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.master.slave_state[slave].cookie = 0;
mfunc            2189 drivers/net/ethernet/mellanox/mlx4/cmd.c 	spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags);
mfunc            2194 drivers/net/ethernet/mellanox/mlx4/cmd.c 	spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags);
mfunc            2201 drivers/net/ethernet/mellanox/mlx4/cmd.c 		     &priv->mfunc.comm[slave].slave_read);
mfunc            2219 drivers/net/ethernet/mellanox/mlx4/cmd.c 	spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags);
mfunc            2222 drivers/net/ethernet/mellanox/mlx4/cmd.c 	spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags);
mfunc            2228 drivers/net/ethernet/mellanox/mlx4/cmd.c 		     &priv->mfunc.comm[slave].slave_read);
mfunc            2239 drivers/net/ethernet/mellanox/mlx4/cmd.c 	struct mlx4_mfunc *mfunc =
mfunc            2242 drivers/net/ethernet/mellanox/mlx4/cmd.c 		container_of(mfunc, struct mlx4_priv, mfunc);
mfunc            2262 drivers/net/ethernet/mellanox/mlx4/cmd.c 					  &mfunc->comm[slave].slave_write));
mfunc            2263 drivers/net/ethernet/mellanox/mlx4/cmd.c 			slt = swab32(readl(&mfunc->comm[slave].slave_read))
mfunc            2298 drivers/net/ethernet/mellanox/mlx4/cmd.c 	wr_toggle = swab32(readl(&priv->mfunc.comm->slave_write));
mfunc            2305 drivers/net/ethernet/mellanox/mlx4/cmd.c 		rd_toggle = swab32(readl(&priv->mfunc.comm->slave_read));
mfunc            2320 drivers/net/ethernet/mellanox/mlx4/cmd.c 			wr_toggle = swab32(readl(&priv->mfunc.comm->
mfunc            2340 drivers/net/ethernet/mellanox/mlx4/cmd.c 	__raw_writel((__force u32) 0, &priv->mfunc.comm->slave_read);
mfunc            2341 drivers/net/ethernet/mellanox/mlx4/cmd.c 	__raw_writel((__force u32) 0, &priv->mfunc.comm->slave_write);
mfunc            2354 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.comm =
mfunc            2359 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.comm =
mfunc            2362 drivers/net/ethernet/mellanox/mlx4/cmd.c 	if (!priv->mfunc.comm) {
mfunc            2371 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.master.slave_state =
mfunc            2375 drivers/net/ethernet/mellanox/mlx4/cmd.c 		if (!priv->mfunc.master.slave_state)
mfunc            2378 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.master.vf_admin =
mfunc            2382 drivers/net/ethernet/mellanox/mlx4/cmd.c 		if (!priv->mfunc.master.vf_admin)
mfunc            2385 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.master.vf_oper =
mfunc            2389 drivers/net/ethernet/mellanox/mlx4/cmd.c 		if (!priv->mfunc.master.vf_oper)
mfunc            2393 drivers/net/ethernet/mellanox/mlx4/cmd.c 			vf_admin = &priv->mfunc.master.vf_admin[i];
mfunc            2394 drivers/net/ethernet/mellanox/mlx4/cmd.c 			vf_oper = &priv->mfunc.master.vf_oper[i];
mfunc            2395 drivers/net/ethernet/mellanox/mlx4/cmd.c 			s_state = &priv->mfunc.master.slave_state[i];
mfunc            2398 drivers/net/ethernet/mellanox/mlx4/cmd.c 			mutex_init(&priv->mfunc.master.gen_eqe_mutex[i]);
mfunc            2402 drivers/net/ethernet/mellanox/mlx4/cmd.c 				     &priv->mfunc.comm[i].slave_write);
mfunc            2404 drivers/net/ethernet/mellanox/mlx4/cmd.c 				     &priv->mfunc.comm[i].slave_read);
mfunc            2444 drivers/net/ethernet/mellanox/mlx4/cmd.c 		memset(&priv->mfunc.master.cmd_eqe, 0, sizeof(struct mlx4_eqe));
mfunc            2445 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.master.cmd_eqe.type = MLX4_EVENT_TYPE_CMD;
mfunc            2446 drivers/net/ethernet/mellanox/mlx4/cmd.c 		INIT_WORK(&priv->mfunc.master.comm_work,
mfunc            2448 drivers/net/ethernet/mellanox/mlx4/cmd.c 		INIT_WORK(&priv->mfunc.master.slave_event_work,
mfunc            2450 drivers/net/ethernet/mellanox/mlx4/cmd.c 		INIT_WORK(&priv->mfunc.master.slave_flr_event_work,
mfunc            2452 drivers/net/ethernet/mellanox/mlx4/cmd.c 		spin_lock_init(&priv->mfunc.master.slave_state_lock);
mfunc            2453 drivers/net/ethernet/mellanox/mlx4/cmd.c 		spin_lock_init(&priv->mfunc.master.slave_eq.event_lock);
mfunc            2454 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.master.comm_wq =
mfunc            2456 drivers/net/ethernet/mellanox/mlx4/cmd.c 		if (!priv->mfunc.master.comm_wq)
mfunc            2472 drivers/net/ethernet/mellanox/mlx4/cmd.c 	flush_workqueue(priv->mfunc.master.comm_wq);
mfunc            2473 drivers/net/ethernet/mellanox/mlx4/cmd.c 	destroy_workqueue(priv->mfunc.master.comm_wq);
mfunc            2477 drivers/net/ethernet/mellanox/mlx4/cmd.c 			kfree(priv->mfunc.master.slave_state[i].vlan_filter[port]);
mfunc            2479 drivers/net/ethernet/mellanox/mlx4/cmd.c 	kfree(priv->mfunc.master.vf_oper);
mfunc            2481 drivers/net/ethernet/mellanox/mlx4/cmd.c 	kfree(priv->mfunc.master.vf_admin);
mfunc            2483 drivers/net/ethernet/mellanox/mlx4/cmd.c 	kfree(priv->mfunc.master.slave_state);
mfunc            2485 drivers/net/ethernet/mellanox/mlx4/cmd.c 	iounmap(priv->mfunc.comm);
mfunc            2486 drivers/net/ethernet/mellanox/mlx4/cmd.c 	priv->mfunc.comm = NULL;
mfunc            2489 drivers/net/ethernet/mellanox/mlx4/cmd.c 			  priv->mfunc.vhcr,
mfunc            2490 drivers/net/ethernet/mellanox/mlx4/cmd.c 			  priv->mfunc.vhcr_dma);
mfunc            2491 drivers/net/ethernet/mellanox/mlx4/cmd.c 	priv->mfunc.vhcr = NULL;
mfunc            2520 drivers/net/ethernet/mellanox/mlx4/cmd.c 	if (mlx4_is_mfunc(dev) && !priv->mfunc.vhcr) {
mfunc            2521 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.vhcr = dma_alloc_coherent(&dev->persist->pdev->dev,
mfunc            2523 drivers/net/ethernet/mellanox/mlx4/cmd.c 						      &priv->mfunc.vhcr_dma,
mfunc            2525 drivers/net/ethernet/mellanox/mlx4/cmd.c 		if (!priv->mfunc.vhcr)
mfunc            2559 drivers/net/ethernet/mellanox/mlx4/cmd.c 	if (!priv->mfunc.comm)
mfunc            2566 drivers/net/ethernet/mellanox/mlx4/cmd.c 		slave_read = swab32(readl(&priv->mfunc.comm[slave].slave_read));
mfunc            2569 drivers/net/ethernet/mellanox/mlx4/cmd.c 			     &priv->mfunc.comm[slave].slave_read);
mfunc            2579 drivers/net/ethernet/mellanox/mlx4/cmd.c 		flush_workqueue(priv->mfunc.master.comm_wq);
mfunc            2580 drivers/net/ethernet/mellanox/mlx4/cmd.c 		destroy_workqueue(priv->mfunc.master.comm_wq);
mfunc            2583 drivers/net/ethernet/mellanox/mlx4/cmd.c 				kfree(priv->mfunc.master.slave_state[i].vlan_filter[port]);
mfunc            2585 drivers/net/ethernet/mellanox/mlx4/cmd.c 		kfree(priv->mfunc.master.slave_state);
mfunc            2586 drivers/net/ethernet/mellanox/mlx4/cmd.c 		kfree(priv->mfunc.master.vf_admin);
mfunc            2587 drivers/net/ethernet/mellanox/mlx4/cmd.c 		kfree(priv->mfunc.master.vf_oper);
mfunc            2591 drivers/net/ethernet/mellanox/mlx4/cmd.c 	iounmap(priv->mfunc.comm);
mfunc            2592 drivers/net/ethernet/mellanox/mlx4/cmd.c 	priv->mfunc.comm = NULL;
mfunc            2609 drivers/net/ethernet/mellanox/mlx4/cmd.c 	if (mlx4_is_mfunc(dev) && priv->mfunc.vhcr &&
mfunc            2612 drivers/net/ethernet/mellanox/mlx4/cmd.c 				  priv->mfunc.vhcr, priv->mfunc.vhcr_dma);
mfunc            2613 drivers/net/ethernet/mellanox/mlx4/cmd.c 		priv->mfunc.vhcr = NULL;
mfunc            2889 drivers/net/ethernet/mellanox/mlx4/cmd.c 	port_qos = &priv->mfunc.master.qos_ctl[port];
mfunc            2936 drivers/net/ethernet/mellanox/mlx4/cmd.c 	info = &priv->mfunc.master.qos_ctl[port];
mfunc            2994 drivers/net/ethernet/mellanox/mlx4/cmd.c 	s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc            3041 drivers/net/ethernet/mellanox/mlx4/cmd.c 	slave_state = &priv->mfunc.master.slave_state[slave];
mfunc            3048 drivers/net/ethernet/mellanox/mlx4/cmd.c 	vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc            3049 drivers/net/ethernet/mellanox/mlx4/cmd.c 	vf_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
mfunc            3103 drivers/net/ethernet/mellanox/mlx4/cmd.c 	vf_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc            3136 drivers/net/ethernet/mellanox/mlx4/cmd.c 	if (priv->mfunc.master.slave_state[slave].active &&
mfunc            3156 drivers/net/ethernet/mellanox/mlx4/cmd.c 	vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
mfunc            3185 drivers/net/ethernet/mellanox/mlx4/cmd.c 	s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc            3212 drivers/net/ethernet/mellanox/mlx4/cmd.c 	s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc            3274 drivers/net/ethernet/mellanox/mlx4/cmd.c 	s_info = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc            3382 drivers/net/ethernet/mellanox/mlx4/cmd.c 	return priv->mfunc.master.vf_oper[slave].smi_enabled[port] ==
mfunc            3398 drivers/net/ethernet/mellanox/mlx4/cmd.c 	return priv->mfunc.master.vf_admin[slave].enable_smi[port] ==
mfunc            3427 drivers/net/ethernet/mellanox/mlx4/cmd.c 	priv->mfunc.master.vf_admin[slave].enable_smi[port] = enabled;
mfunc             141 drivers/net/ethernet/mellanox/mlx4/eq.c 	struct mlx4_mfunc *mfunc =
mfunc             143 drivers/net/ethernet/mellanox/mlx4/eq.c 	struct mlx4_priv *priv = container_of(mfunc, struct mlx4_priv, mfunc);
mfunc             145 drivers/net/ethernet/mellanox/mlx4/eq.c 	struct mlx4_slave_event_eq *slave_eq = &mfunc->master.slave_eq;
mfunc             197 drivers/net/ethernet/mellanox/mlx4/eq.c 	struct mlx4_slave_event_eq *slave_eq = &priv->mfunc.master.slave_eq;
mfunc             218 drivers/net/ethernet/mellanox/mlx4/eq.c 	queue_work(priv->mfunc.master.comm_wq,
mfunc             219 drivers/net/ethernet/mellanox/mlx4/eq.c 		   &priv->mfunc.master.slave_event_work);
mfunc             230 drivers/net/ethernet/mellanox/mlx4/eq.c 	    !priv->mfunc.master.slave_state[slave].active)
mfunc             258 drivers/net/ethernet/mellanox/mlx4/eq.c 	struct mlx4_slave_state *s_slave = &priv->mfunc.master.slave_state[slave];
mfunc             314 drivers/net/ethernet/mellanox/mlx4/eq.c 	struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state;
mfunc             331 drivers/net/ethernet/mellanox/mlx4/eq.c 	struct mlx4_slave_state *s_state = priv->mfunc.master.slave_state;
mfunc             387 drivers/net/ethernet/mellanox/mlx4/eq.c 	ctx = &priv->mfunc.master.slave_state[slave];
mfunc             454 drivers/net/ethernet/mellanox/mlx4/eq.c 	struct mlx4_mfunc *mfunc =
mfunc             457 drivers/net/ethernet/mellanox/mlx4/eq.c 		container_of(mfunc, struct mlx4_priv, mfunc);
mfunc             459 drivers/net/ethernet/mellanox/mlx4/eq.c 	struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state;
mfunc             480 drivers/net/ethernet/mellanox/mlx4/eq.c 			spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags);
mfunc             483 drivers/net/ethernet/mellanox/mlx4/eq.c 			spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags);
mfunc             625 drivers/net/ethernet/mellanox/mlx4/eq.c 						s_info = &priv->mfunc.master.vf_oper[i].vport[port].state;
mfunc             666 drivers/net/ethernet/mellanox/mlx4/eq.c 						s_info = &priv->mfunc.master.vf_oper[i].vport[port].state;
mfunc             729 drivers/net/ethernet/mellanox/mlx4/eq.c 			memcpy(&priv->mfunc.master.comm_arm_bit_vector,
mfunc             732 drivers/net/ethernet/mellanox/mlx4/eq.c 			queue_work(priv->mfunc.master.comm_wq,
mfunc             733 drivers/net/ethernet/mellanox/mlx4/eq.c 				   &priv->mfunc.master.comm_work);
mfunc             753 drivers/net/ethernet/mellanox/mlx4/eq.c 			spin_lock_irqsave(&priv->mfunc.master.slave_state_lock, flags);
mfunc             755 drivers/net/ethernet/mellanox/mlx4/eq.c 				priv->mfunc.master.slave_state[flr_slave].active = false;
mfunc             756 drivers/net/ethernet/mellanox/mlx4/eq.c 				priv->mfunc.master.slave_state[flr_slave].last_cmd = MLX4_COMM_CMD_FLR;
mfunc             757 drivers/net/ethernet/mellanox/mlx4/eq.c 				priv->mfunc.master.slave_state[flr_slave].is_slave_going_down = 1;
mfunc             759 drivers/net/ethernet/mellanox/mlx4/eq.c 			spin_unlock_irqrestore(&priv->mfunc.master.slave_state_lock, flags);
mfunc             762 drivers/net/ethernet/mellanox/mlx4/eq.c 			queue_work(priv->mfunc.master.comm_wq,
mfunc             763 drivers/net/ethernet/mellanox/mlx4/eq.c 				   &priv->mfunc.master.slave_flr_event_work);
mfunc             882 drivers/net/ethernet/mellanox/mlx4/eq.c 		priv->mfunc.master.slave_state[slave].event_eq;
mfunc             265 drivers/net/ethernet/mellanox/mlx4/fw.c 	vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
mfunc             266 drivers/net/ethernet/mellanox/mlx4/fw.c 	vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc             297 drivers/net/ethernet/mellanox/mlx4/fw.c 	vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
mfunc             298 drivers/net/ethernet/mellanox/mlx4/fw.c 	vp_admin = &priv->mfunc.master.vf_admin[slave].vport[port];
mfunc             299 drivers/net/ethernet/mellanox/mlx4/fw.c 	slave_state = &priv->mfunc.master.slave_state[slave];
mfunc             438 drivers/net/ethernet/mellanox/mlx4/fw.c 		vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
mfunc             454 drivers/net/ethernet/mellanox/mlx4/fw.c 			&priv->mfunc.master.slave_state[slave];
mfunc             475 drivers/net/ethernet/mellanox/mlx4/fw.c 		size = priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[slave];
mfunc             480 drivers/net/ethernet/mellanox/mlx4/fw.c 		size = priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[slave];
mfunc             485 drivers/net/ethernet/mellanox/mlx4/fw.c 		size = priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[slave];
mfunc             509 drivers/net/ethernet/mellanox/mlx4/fw.c 		size = priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[slave];
mfunc             514 drivers/net/ethernet/mellanox/mlx4/fw.c 		size = priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[slave];
mfunc            1439 drivers/net/ethernet/mellanox/mlx4/fw.c 		def_mac = priv->mfunc.master.vf_oper[slave].vport[vhcr->in_modifier].state.mac;
mfunc            1451 drivers/net/ethernet/mellanox/mlx4/fw.c 		admin_link_state = priv->mfunc.master.vf_oper[slave].vport[vhcr->in_modifier].state.link_state;
mfunc            2244 drivers/net/ethernet/mellanox/mlx4/fw.c 	if (priv->mfunc.master.qp0_state[port].proxy_qp0_active &&
mfunc            2245 drivers/net/ethernet/mellanox/mlx4/fw.c 	    priv->mfunc.master.qp0_state[port].qp0_active)
mfunc            2263 drivers/net/ethernet/mellanox/mlx4/fw.c 	if (priv->mfunc.master.slave_state[slave].init_port_mask & (1 << port))
mfunc            2268 drivers/net/ethernet/mellanox/mlx4/fw.c 		if (!priv->mfunc.master.init_port_ref[port]) {
mfunc            2274 drivers/net/ethernet/mellanox/mlx4/fw.c 		priv->mfunc.master.slave_state[slave].init_port_mask |= (1 << port);
mfunc            2278 drivers/net/ethernet/mellanox/mlx4/fw.c 			    !priv->mfunc.master.qp0_state[port].port_active) {
mfunc            2283 drivers/net/ethernet/mellanox/mlx4/fw.c 				priv->mfunc.master.qp0_state[port].port_active = 1;
mfunc            2284 drivers/net/ethernet/mellanox/mlx4/fw.c 				priv->mfunc.master.slave_state[slave].init_port_mask |= (1 << port);
mfunc            2287 drivers/net/ethernet/mellanox/mlx4/fw.c 			priv->mfunc.master.slave_state[slave].init_port_mask |= (1 << port);
mfunc            2289 drivers/net/ethernet/mellanox/mlx4/fw.c 	++priv->mfunc.master.init_port_ref[port];
mfunc            2361 drivers/net/ethernet/mellanox/mlx4/fw.c 	if (!(priv->mfunc.master.slave_state[slave].init_port_mask &
mfunc            2366 drivers/net/ethernet/mellanox/mlx4/fw.c 		if (priv->mfunc.master.init_port_ref[port] == 1) {
mfunc            2372 drivers/net/ethernet/mellanox/mlx4/fw.c 		priv->mfunc.master.slave_state[slave].init_port_mask &= ~(1 << port);
mfunc            2376 drivers/net/ethernet/mellanox/mlx4/fw.c 			if (!priv->mfunc.master.qp0_state[port].qp0_active &&
mfunc            2377 drivers/net/ethernet/mellanox/mlx4/fw.c 			    priv->mfunc.master.qp0_state[port].port_active) {
mfunc            2382 drivers/net/ethernet/mellanox/mlx4/fw.c 				priv->mfunc.master.slave_state[slave].init_port_mask &= ~(1 << port);
mfunc            2383 drivers/net/ethernet/mellanox/mlx4/fw.c 				priv->mfunc.master.qp0_state[port].port_active = 0;
mfunc            2386 drivers/net/ethernet/mellanox/mlx4/fw.c 			priv->mfunc.master.slave_state[slave].init_port_mask &= ~(1 << port);
mfunc            2388 drivers/net/ethernet/mellanox/mlx4/fw.c 	--priv->mfunc.master.init_port_ref[port];
mfunc             229 drivers/net/ethernet/mellanox/mlx4/intf.c 			swab32(readl(&mlx4_priv(dev)->mfunc.comm->slave_read));
mfunc             749 drivers/net/ethernet/mellanox/mlx4/main.c 		s_state = &priv->mfunc.master.slave_state[i];
mfunc             819 drivers/net/ethernet/mellanox/mlx4/main.c 	s_slave = &priv->mfunc.master.slave_state[slave];
mfunc            2001 drivers/net/ethernet/mellanox/mlx4/main.c 		comm_flags = swab32(readl((__iomem char *)priv->mfunc.comm +
mfunc            2034 drivers/net/ethernet/mellanox/mlx4/main.c 	comm_caps = swab32(readl((__iomem char *)priv->mfunc.comm +
mfunc            2045 drivers/net/ethernet/mellanox/mlx4/main.c 	u64 dma = (u64) priv->mfunc.vhcr_dma;
mfunc            2079 drivers/net/ethernet/mellanox/mlx4/main.c 	slave_read = swab32(readl(&priv->mfunc.comm->slave_read));
mfunc            2672 drivers/net/ethernet/mellanox/mlx4/main.c 	priv->mfunc.master.vf_admin[entry].vport[port].guid = guid;
mfunc            2680 drivers/net/ethernet/mellanox/mlx4/main.c 	return priv->mfunc.master.vf_admin[entry].vport[port].guid;
mfunc            2696 drivers/net/ethernet/mellanox/mlx4/main.c 	priv->mfunc.master.vf_admin[entry].vport[port].guid = guid;
mfunc            2833 drivers/net/ethernet/mellanox/mlx4/main.c 					priv->mfunc.master.slave_state[i].ib_cap_mask[port] =
mfunc             889 drivers/net/ethernet/mellanox/mlx4/mlx4.h 	struct mlx4_mfunc	mfunc;
mfunc            1398 drivers/net/ethernet/mellanox/mlx4/mlx4.h 	return &mlx4_priv(dev)->mfunc.master.res_tracker.lock;
mfunc            1252 drivers/net/ethernet/mellanox/mlx4/port.c 	struct mlx4_mfunc_master_ctx *master = &priv->mfunc.master;
mfunc            1284 drivers/net/ethernet/mellanox/mlx4/port.c 	struct mlx4_mfunc_master_ctx *master = &priv->mfunc.master;
mfunc            1316 drivers/net/ethernet/mellanox/mlx4/port.c 	struct mlx4_mfunc_master_ctx *master = &priv->mfunc.master;
mfunc            1513 drivers/net/ethernet/mellanox/mlx4/port.c 		priv->mfunc.master.slave_state[slave].ib_cap_mask[port];
mfunc            1514 drivers/net/ethernet/mellanox/mlx4/port.c 	priv->mfunc.master.slave_state[slave].ib_cap_mask[port] = new_cap_mask;
mfunc            1517 drivers/net/ethernet/mellanox/mlx4/port.c 			priv->mfunc.master.slave_state[i].ib_cap_mask[port];
mfunc            1535 drivers/net/ethernet/mellanox/mlx4/port.c 		priv->mfunc.master.slave_state[slave].ib_cap_mask[port] =
mfunc             152 drivers/net/ethernet/mellanox/mlx4/qp.c 				priv->mfunc.master.qp0_state[port].proxy_qp0_active = 0;
mfunc             154 drivers/net/ethernet/mellanox/mlx4/qp.c 				priv->mfunc.master.qp0_state[port].qp0_active = 0;
mfunc             193 drivers/net/ethernet/mellanox/mlx4/qp.c 				priv->mfunc.master.qp0_state[port].proxy_qp0_active = 0;
mfunc             195 drivers/net/ethernet/mellanox/mlx4/qp.c 				priv->mfunc.master.qp0_state[port].qp0_active = 0;
mfunc             198 drivers/net/ethernet/mellanox/mlx4/qp.c 				priv->mfunc.master.qp0_state[port].proxy_qp0_active = 1;
mfunc             200 drivers/net/ethernet/mellanox/mlx4/qp.c 				priv->mfunc.master.qp0_state[port].qp0_active = 1;
mfunc             313 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		&priv->mfunc.master.res_tracker.res_alloc[res_type];
mfunc             384 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		&priv->mfunc.master.res_tracker.res_alloc[res_type];
mfunc             463 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		priv->mfunc.master.res_tracker.res_alloc[RES_QP].quota[pf];
mfunc             465 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		priv->mfunc.master.res_tracker.res_alloc[RES_CQ].quota[pf];
mfunc             467 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		priv->mfunc.master.res_tracker.res_alloc[RES_SRQ].quota[pf];
mfunc             469 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		priv->mfunc.master.res_tracker.res_alloc[RES_MTT].quota[pf];
mfunc             471 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		priv->mfunc.master.res_tracker.res_alloc[RES_MPT].quota[pf];
mfunc             507 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	priv->mfunc.master.res_tracker.slave_list =
mfunc             510 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!priv->mfunc.master.res_tracker.slave_list)
mfunc             515 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			INIT_LIST_HEAD(&priv->mfunc.master.res_tracker.
mfunc             517 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		mutex_init(&priv->mfunc.master.res_tracker.slave_list[i].mutex);
mfunc             523 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		priv->mfunc.master.res_tracker.res_tree[i] = RB_ROOT;
mfunc             527 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			&priv->mfunc.master.res_tracker.res_alloc[i];
mfunc             640 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	spin_lock_init(&priv->mfunc.master.res_tracker.lock);
mfunc             645 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		kfree(priv->mfunc.master.res_tracker.res_alloc[i].allocated);
mfunc             646 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		priv->mfunc.master.res_tracker.res_alloc[i].allocated = NULL;
mfunc             647 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed);
mfunc             648 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL;
mfunc             649 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		kfree(priv->mfunc.master.res_tracker.res_alloc[i].quota);
mfunc             650 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		priv->mfunc.master.res_tracker.res_alloc[i].quota = NULL;
mfunc             661 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (priv->mfunc.master.res_tracker.slave_list) {
mfunc             671 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			mutex_lock(&priv->mfunc.master.res_tracker.slave_list[i].mutex);
mfunc             673 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			mutex_unlock(&priv->mfunc.master.res_tracker.slave_list[i].mutex);
mfunc             678 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				kfree(priv->mfunc.master.res_tracker.res_alloc[i].allocated);
mfunc             679 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				priv->mfunc.master.res_tracker.res_alloc[i].allocated = NULL;
mfunc             680 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				kfree(priv->mfunc.master.res_tracker.res_alloc[i].guaranteed);
mfunc             681 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				priv->mfunc.master.res_tracker.res_alloc[i].guaranteed = NULL;
mfunc             682 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				kfree(priv->mfunc.master.res_tracker.res_alloc[i].quota);
mfunc             683 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 				priv->mfunc.master.res_tracker.res_alloc[i].quota = NULL;
mfunc             685 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			kfree(priv->mfunc.master.res_tracker.slave_list);
mfunc             686 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 			priv->mfunc.master.res_tracker.slave_list = NULL;
mfunc             761 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	vp_oper = &priv->mfunc.master.vf_oper[slave].vport[port];
mfunc             887 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	return res_tracker_lookup(&priv->mfunc.master.res_tracker.res_tree[type],
mfunc            1003 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1235 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1285 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1471 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1509 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1573 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1626 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1675 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1715 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1751 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            1765 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            2009 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            2026 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            2059 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            2079 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            2133 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            2167 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            2188 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            2208 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state;
mfunc            2541 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_slave_state *slave_state = priv->mfunc.master.slave_state;
mfunc            3162 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            3348 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	if (!priv->mfunc.master.slave_state)
mfunc            3354 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	    !priv->mfunc.master.slave_state[slave].active)
mfunc            3357 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	event_eq = &priv->mfunc.master.slave_state[slave].event_eq[eqe->type];
mfunc            3363 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	mutex_lock(&priv->mfunc.master.gen_eqe_mutex[slave]);
mfunc            3394 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	mutex_unlock(&priv->mfunc.master.gen_eqe_mutex[slave]);
mfunc            3402 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	mutex_unlock(&priv->mfunc.master.gen_eqe_mutex[slave]);
mfunc            4373 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            4608 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		&priv->mfunc.master.res_tracker;
mfunc            4662 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            4735 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            4800 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            4862 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            4930 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		&priv->mfunc.master.res_tracker;
mfunc            5028 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		&priv->mfunc.master.res_tracker;
mfunc            5065 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		&priv->mfunc.master.res_tracker;
mfunc            5117 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            5174 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            5220 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	struct mlx4_resource_tracker *tracker = &priv->mfunc.master.res_tracker;
mfunc            5250 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	mutex_lock(&priv->mfunc.master.res_tracker.slave_list[slave].mutex);
mfunc            5262 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 	mutex_unlock(&priv->mfunc.master.res_tracker.slave_list[slave].mutex);
mfunc            5280 drivers/net/ethernet/mellanox/mlx4/resource_tracker.c 		&work->priv->mfunc.master.res_tracker;
mfunc             369 drivers/pcmcia/ti113x.h 	u32 mfunc, mfunc_old, devctl;
mfunc             373 drivers/pcmcia/ti113x.h 	mfunc = mfunc_old = config_readl(socket, TI122X_MFUNC);
mfunc             376 drivers/pcmcia/ti113x.h 		 mfunc, devctl);
mfunc             407 drivers/pcmcia/ti113x.h 			mfunc = (mfunc & ~TI122X_MFUNC3_MASK) | TI122X_MFUNC3_IRQSER;
mfunc             410 drivers/pcmcia/ti113x.h 			if (mfunc != mfunc_old) {
mfunc             411 drivers/pcmcia/ti113x.h 				config_writel(socket, TI122X_MFUNC, mfunc);
mfunc             417 drivers/pcmcia/ti113x.h 					mfunc_old = mfunc;
mfunc             422 drivers/pcmcia/ti113x.h 				mfunc = mfunc_old;
mfunc             423 drivers/pcmcia/ti113x.h 				config_writel(socket, TI122X_MFUNC, mfunc);
mfunc             454 drivers/pcmcia/ti113x.h 		mfunc = (mfunc & ~TI122X_MFUNC0_MASK) | TI122X_MFUNC0_INTA;
mfunc             455 drivers/pcmcia/ti113x.h 		if (mfunc != mfunc_old)
mfunc             456 drivers/pcmcia/ti113x.h 			config_writel(socket, TI122X_MFUNC, mfunc);
mfunc             462 drivers/pcmcia/ti113x.h 		mfunc_old = mfunc;
mfunc             466 drivers/pcmcia/ti113x.h 		mfunc = mfunc_old;
mfunc             467 drivers/pcmcia/ti113x.h 		config_writel(socket, TI122X_MFUNC, mfunc);
mfunc             543 drivers/pcmcia/ti113x.h 	u32 mfunc, mfunc_old, devctl, sysctl;
mfunc             546 drivers/pcmcia/ti113x.h 	mfunc = mfunc_old = config_readl(socket, TI122X_MFUNC);
mfunc             549 drivers/pcmcia/ti113x.h 		 mfunc, devctl);
mfunc             602 drivers/pcmcia/ti113x.h 			mfunc = (mfunc & ~TI122X_MFUNC0_MASK) | TI125X_MFUNC0_INTB;
mfunc             606 drivers/pcmcia/ti113x.h 			mfunc = (mfunc & ~TI122X_MFUNC1_MASK) | TI122X_MFUNC1_INTB;
mfunc             611 drivers/pcmcia/ti113x.h 		if (mfunc != mfunc_old) {
mfunc             612 drivers/pcmcia/ti113x.h 			config_writel(socket, TI122X_MFUNC, mfunc);
mfunc             621 drivers/pcmcia/ti113x.h 			mfunc = mfunc_old;
mfunc             622 drivers/pcmcia/ti113x.h 			config_writel(socket, TI122X_MFUNC, mfunc);
mfunc             747 drivers/pcmcia/ti113x.h 	u32 mfunc, devctl, sysctl;
mfunc             756 drivers/pcmcia/ti113x.h 	mfunc = config_readl(socket, TI122X_MFUNC);
mfunc             780 drivers/pcmcia/ti113x.h 				mfunc = (mfunc & ~TI122X_MFUNC3_MASK);
mfunc             782 drivers/pcmcia/ti113x.h 				mfunc = (mfunc & ~TI122X_MFUNC3_MASK) | TI122X_MFUNC3_IRQSER;
mfunc             810 drivers/pcmcia/ti113x.h 				mfunc &= ~TI122X_MFUNC0_MASK;
mfunc             812 drivers/pcmcia/ti113x.h 				mfunc |= TI122X_MFUNC0_INTA;
mfunc             813 drivers/pcmcia/ti113x.h 			config_writel(socket, TI122X_MFUNC, mfunc);
mfunc             822 drivers/pcmcia/ti113x.h 				mfunc &= ~TI122X_MFUNC0_MASK;
mfunc             824 drivers/pcmcia/ti113x.h 				mfunc |= TI125X_MFUNC0_INTB;
mfunc             825 drivers/pcmcia/ti113x.h 			config_writel(socket, TI122X_MFUNC, mfunc);
mfunc             832 drivers/pcmcia/ti113x.h 				mfunc &= ~TI122X_MFUNC1_MASK;
mfunc             834 drivers/pcmcia/ti113x.h 				mfunc |= TI122X_MFUNC1_INTB;
mfunc             835 drivers/pcmcia/ti113x.h 			config_writel(socket, TI122X_MFUNC, mfunc);