mdp               207 arch/x86/platform/uv/tlb_uv.c static void reply_to_message(struct msg_desc *mdp, struct bau_control *bcp,
mdp               213 arch/x86/platform/uv/tlb_uv.c 	msg = mdp->msg;
mdp               225 arch/x86/platform/uv/tlb_uv.c static void bau_process_retry_msg(struct msg_desc *mdp,
mdp               232 arch/x86/platform/uv/tlb_uv.c 	struct bau_pq_entry *msg = mdp->msg;
mdp               241 arch/x86/platform/uv/tlb_uv.c 		if (msg2 > mdp->queue_last)
mdp               242 arch/x86/platform/uv/tlb_uv.c 			msg2 = mdp->queue_first;
mdp               282 arch/x86/platform/uv/tlb_uv.c static void bau_process_message(struct msg_desc *mdp, struct bau_control *bcp,
mdp               289 arch/x86/platform/uv/tlb_uv.c 	struct bau_pq_entry *msg = mdp->msg;
mdp               311 arch/x86/platform/uv/tlb_uv.c 		bau_process_retry_msg(mdp, bcp);
mdp               319 arch/x86/platform/uv/tlb_uv.c 	sp = &smaster->socket_acknowledge_count[mdp->msg_slot];
mdp               337 arch/x86/platform/uv/tlb_uv.c 			reply_to_message(mdp, bcp, do_acknowledge);
mdp              1216 arch/x86/platform/uv/tlb_uv.c static void process_uv2_message(struct msg_desc *mdp, struct bau_control *bcp)
mdp              1220 arch/x86/platform/uv/tlb_uv.c 	struct bau_pq_entry *msg = mdp->msg;
mdp              1242 arch/x86/platform/uv/tlb_uv.c 			bau_process_message(mdp, bcp, 0);
mdp              1256 arch/x86/platform/uv/tlb_uv.c 	bau_process_message(mdp, bcp, 1);
mdp               408 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.c 		.mdp = sdm845_mdp,
mdp               656 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h 	struct dpu_mdp_cfg *mdp;
mdp               697 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_catalog.h #define BLK_MDP(s) ((s)->mdp)
mdp              1082 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_interrupts.c 	hw->blk_off = m->mdp[0].base;
mdp                65 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_lm.h 	const struct dpu_mdp_cfg  *mdp;
mdp               304 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c 			ctx->mdp->highest_bank_bit << 18);
mdp               308 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c 					fast_clear | (ctx->mdp->ubwc_swizzle) |
mdp               309 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c 					(ctx->mdp->highest_bank_bit << 4));
mdp               716 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.c 	hw_pipe->mdp = &catalog->mdp[0];
mdp               376 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_sspp.h 	struct dpu_mdp_cfg *mdp;
mdp                54 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c static void dpu_hw_setup_split_pipe(struct dpu_hw_mdp *mdp,
mdp                61 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	if (!mdp || !cfg)
mdp                64 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	c = &mdp->hw;
mdp                92 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c static bool dpu_hw_setup_clk_force_ctrl(struct dpu_hw_mdp *mdp,
mdp               100 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	if (!mdp)
mdp               103 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	c = &mdp->hw;
mdp               108 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	reg_off = mdp->caps->clk_ctrls[clk_ctrl].reg_off;
mdp               109 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	bit_off = mdp->caps->clk_ctrls[clk_ctrl].bit_off;
mdp               126 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c static void dpu_hw_get_danger_status(struct dpu_hw_mdp *mdp,
mdp               132 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	if (!mdp || !status)
mdp               135 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	c = &mdp->hw;
mdp               138 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	status->mdp = (value >> 0) & 0x3;
mdp               155 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c static void dpu_hw_setup_vsync_source(struct dpu_hw_mdp *mdp,
mdp               162 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	if (!mdp || !cfg || (cfg->pp_count > ARRAY_SIZE(cfg->ppnumber)))
mdp               165 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	c = &mdp->hw;
mdp               223 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c static void dpu_hw_get_safe_status(struct dpu_hw_mdp *mdp,
mdp               229 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	if (!mdp || !status)
mdp               232 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	c = &mdp->hw;
mdp               235 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	status->mdp = (value >> 0) & 0x1;
mdp               252 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c static void dpu_hw_reset_ubwc(struct dpu_hw_mdp *mdp, struct dpu_mdss_cfg *m)
mdp               256 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	if (!mdp || !m)
mdp               263 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	c = mdp->hw;
mdp               265 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	DPU_REG_WRITE(&c, UBWC_STATIC, m->mdp[0].ubwc_static);
mdp               268 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c static void dpu_hw_intf_audio_select(struct dpu_hw_mdp *mdp)
mdp               272 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	if (!mdp)
mdp               275 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	c = &mdp->hw;
mdp               292 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c static const struct dpu_mdp_cfg *_top_offset(enum dpu_mdp mdp,
mdp               303 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 		if (mdp == m->mdp[i].id) {
mdp               305 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 			b->blk_off = m->mdp[i].base;
mdp               306 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 			b->length = m->mdp[i].len;
mdp               309 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 			return &m->mdp[i];
mdp               322 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	struct dpu_hw_mdp *mdp;
mdp               328 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	mdp = kzalloc(sizeof(*mdp), GFP_KERNEL);
mdp               329 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	if (!mdp)
mdp               332 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	cfg = _top_offset(idx, m, addr, &mdp->hw);
mdp               334 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 		kfree(mdp);
mdp               341 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	mdp->idx = idx;
mdp               342 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	mdp->caps = cfg;
mdp               343 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	_setup_mdp_ops(&mdp->ops, mdp->caps->features);
mdp               345 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	dpu_hw_blk_init(&mdp->base, DPU_HW_BLK_TOP, idx, &dpu_hw_ops);
mdp               347 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	return mdp;
mdp               350 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c void dpu_hw_mdp_destroy(struct dpu_hw_mdp *mdp)
mdp               352 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	if (mdp)
mdp               353 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 		dpu_hw_blk_destroy(&mdp->base);
mdp               354 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.c 	kfree(mdp);
mdp                52 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h 	u8 mdp;
mdp                84 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h 	void (*setup_split_pipe)(struct dpu_hw_mdp *mdp,
mdp                92 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h 	void (*setup_traffic_shaper)(struct dpu_hw_mdp *mdp,
mdp               102 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h 	bool (*setup_clk_force_ctrl)(struct dpu_hw_mdp *mdp,
mdp               110 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h 	void (*get_danger_status)(struct dpu_hw_mdp *mdp,
mdp               118 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h 	void (*setup_vsync_source)(struct dpu_hw_mdp *mdp,
mdp               126 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h 	void (*get_safe_status)(struct dpu_hw_mdp *mdp,
mdp               134 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h 	void (*reset_ubwc)(struct dpu_hw_mdp *mdp, struct dpu_mdss_cfg *m);
mdp               140 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h 	void (*intf_audio_select)(struct dpu_hw_mdp *mdp);
mdp               165 drivers/gpu/drm/msm/disp/dpu1/dpu_hw_top.h void dpu_hw_mdp_destroy(struct dpu_hw_mdp *mdp);
mdp                97 drivers/gpu/drm/msm/disp/dpu1/dpu_kms.c 	seq_printf(s, "MDP     :  0x%x\n", status.mdp);
mdp               152 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 	struct dpu_hw_mdp *mdp;
mdp               161 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 	mdp = dpu_kms->hw_mdp;
mdp               169 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 	if (!vbif || !mdp) {
mdp               171 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 				vbif != 0, mdp != 0);
mdp               175 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 	if (!mdp->ops.setup_clk_force_ctrl ||
mdp               192 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 	forced_on = mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, true);
mdp               205 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 		mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, false);
mdp               212 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 	struct dpu_hw_mdp *mdp;
mdp               221 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 	mdp = dpu_kms->hw_mdp;
mdp               236 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 	if (!vbif->ops.set_qos_remap || !mdp->ops.setup_clk_force_ctrl) {
mdp               249 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 	forced_on = mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, true);
mdp               260 drivers/gpu/drm/msm/disp/dpu1/dpu_vbif.c 		mdp->ops.setup_clk_force_ctrl(mdp, params->clk_ctrl, false);
mdp                19 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c 	.mdp = {
mdp               103 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c 	.mdp = {
mdp               185 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c 	.mdp = {
mdp               280 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c 	.mdp = {
mdp               347 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c 	.mdp = {
mdp               442 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c 	.mdp = {
mdp               550 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c 	.mdp = {
mdp               635 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.c 	.mdp = {
mdp                82 drivers/gpu/drm/msm/disp/mdp5/mdp5_cfg.h 	struct mdp5_mdp_block mdp;
mdp               997 drivers/gpu/drm/msm/disp/mdp5/mdp5_kms.c 	mdp5_kms->caps = config->hw->mdp.caps;
mdp               284 drivers/gpu/drm/msm/disp/mdp5/mdp5_plane.c 		if (config->hw->mdp.caps & MDP_CAP_SRC_SPLIT &&
mdp                55 drivers/media/platform/mtk-mdp/mtk_mdp_core.c static void mtk_mdp_clock_on(struct mtk_mdp_dev *mdp)
mdp                57 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	struct device *dev = &mdp->pdev->dev;
mdp                60 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	for (i = 0; i < ARRAY_SIZE(mdp->comp); i++)
mdp                61 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 		mtk_mdp_comp_clock_on(dev, mdp->comp[i]);
mdp                64 drivers/media/platform/mtk-mdp/mtk_mdp_core.c static void mtk_mdp_clock_off(struct mtk_mdp_dev *mdp)
mdp                66 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	struct device *dev = &mdp->pdev->dev;
mdp                69 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	for (i = 0; i < ARRAY_SIZE(mdp->comp); i++)
mdp                70 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 		mtk_mdp_comp_clock_off(dev, mdp->comp[i]);
mdp                75 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	struct mtk_mdp_dev *mdp =
mdp                81 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	list_for_each_entry(ctx, &mdp->ctx_list, list) {
mdp                89 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	struct mtk_mdp_dev *mdp = priv;
mdp                91 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	queue_work(mdp->wdt_wq, &mdp->wdt_work);
mdp                96 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	struct mtk_mdp_dev *mdp;
mdp               101 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mdp = devm_kzalloc(dev, sizeof(*mdp), GFP_KERNEL);
mdp               102 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	if (!mdp)
mdp               105 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mdp->id = pdev->id;
mdp               106 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mdp->pdev = pdev;
mdp               107 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	INIT_LIST_HEAD(&mdp->ctx_list);
mdp               109 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mutex_init(&mdp->lock);
mdp               110 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mutex_init(&mdp->vpulock);
mdp               153 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 		mdp->comp[comp_id] = comp;
mdp               162 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mdp->job_wq = create_singlethread_workqueue(MTK_MDP_MODULE_NAME);
mdp               163 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	if (!mdp->job_wq) {
mdp               169 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mdp->wdt_wq = create_singlethread_workqueue("mdp_wdt_wq");
mdp               170 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	if (!mdp->wdt_wq) {
mdp               175 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	INIT_WORK(&mdp->wdt_work, mtk_mdp_wdt_worker);
mdp               177 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	ret = v4l2_device_register(dev, &mdp->v4l2_dev);
mdp               184 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	ret = mtk_mdp_register_m2m_device(mdp);
mdp               186 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 		v4l2_err(&mdp->v4l2_dev, "Failed to init mem2mem device\n");
mdp               190 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mdp->vpu_dev = vpu_get_plat_device(pdev);
mdp               191 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	vpu_wdt_reg_handler(mdp->vpu_dev, mtk_mdp_reset_handler, mdp,
mdp               194 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	platform_set_drvdata(pdev, mdp);
mdp               199 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	dev_dbg(dev, "mdp-%d registered successfully\n", mdp->id);
mdp               204 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	v4l2_device_unregister(&mdp->v4l2_dev);
mdp               207 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	destroy_workqueue(mdp->wdt_wq);
mdp               210 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	destroy_workqueue(mdp->job_wq);
mdp               215 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	for (i = 0; i < ARRAY_SIZE(mdp->comp); i++)
mdp               216 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 		mtk_mdp_comp_deinit(dev, mdp->comp[i]);
mdp               224 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	struct mtk_mdp_dev *mdp = platform_get_drvdata(pdev);
mdp               229 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mtk_mdp_unregister_m2m_device(mdp);
mdp               230 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	v4l2_device_unregister(&mdp->v4l2_dev);
mdp               232 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	flush_workqueue(mdp->job_wq);
mdp               233 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	destroy_workqueue(mdp->job_wq);
mdp               235 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	for (i = 0; i < ARRAY_SIZE(mdp->comp); i++)
mdp               236 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 		mtk_mdp_comp_deinit(&pdev->dev, mdp->comp[i]);
mdp               244 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	struct mtk_mdp_dev *mdp = dev_get_drvdata(dev);
mdp               246 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mtk_mdp_clock_off(mdp);
mdp               253 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	struct mtk_mdp_dev *mdp = dev_get_drvdata(dev);
mdp               255 drivers/media/platform/mtk-mdp/mtk_mdp_core.c 	mtk_mdp_clock_on(mdp);
mdp               176 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_dev *mdp = ctx->mdp_dev;
mdp               177 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_variant *variant = mdp->variant;
mdp               282 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_dev *mdp = ctx->mdp_dev;
mdp               283 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_variant *variant = mdp->variant;
mdp               484 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_dev *mdp = priv;
mdp               488 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	ctx = v4l2_m2m_get_curr_priv(mdp->m2m_dev);
mdp               509 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_dev *mdp = ctx->mdp_dev;
mdp               514 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		dev_err(&mdp->pdev->dev, "ctx is in error state");
mdp               534 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		dev_err(&mdp->pdev->dev, "processing failed: %d", ret);
mdp               541 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mtk_mdp_process_done(mdp, buf_state);
mdp               606 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_dev *mdp = ctx->mdp_dev;
mdp               609 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	strscpy(cap->card, mdp->pdev->name, sizeof(cap->card));
mdp               990 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_dev *mdp = ctx->mdp_dev;
mdp               991 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_variant *variant = mdp->variant;
mdp              1066 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_dev *mdp = ctx->mdp_dev;
mdp              1072 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	frame->width = mdp->variant->pix_min->org_w;
mdp              1073 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	frame->height = mdp->variant->pix_min->org_h;
mdp              1080 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	frame->width = mdp->variant->pix_min->target_rot_dis_w;
mdp              1081 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	frame->height = mdp->variant->pix_min->target_rot_dis_h;
mdp              1089 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_dev *mdp = video_drvdata(file);
mdp              1098 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	if (mutex_lock_interruptible(&mdp->lock)) {
mdp              1104 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	ctx->id = mdp->id_counter++;
mdp              1116 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	ctx->mdp_dev = mdp;
mdp              1120 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	ctx->m2m_ctx = v4l2_m2m_ctx_init(mdp->m2m_dev, ctx,
mdp              1123 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		dev_err(&mdp->pdev->dev, "Failed to initialize m2m context");
mdp              1128 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	if (mdp->ctx_num++ == 0) {
mdp              1129 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		ret = vpu_load_firmware(mdp->vpu_dev);
mdp              1131 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 			dev_err(&mdp->pdev->dev,
mdp              1136 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		ret = mtk_mdp_vpu_register(mdp->pdev);
mdp              1138 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 			dev_err(&mdp->pdev->dev,
mdp              1144 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	list_add(&ctx->list, &mdp->ctx_list);
mdp              1145 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mutex_unlock(&mdp->lock);
mdp              1147 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mtk_mdp_dbg(0, "%s [%d]", dev_name(&mdp->pdev->dev), ctx->id);
mdp              1152 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->ctx_num--;
mdp              1159 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mutex_unlock(&mdp->lock);
mdp              1169 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct mtk_mdp_dev *mdp = ctx->mdp_dev;
mdp              1171 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	flush_workqueue(mdp->job_wq);
mdp              1172 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mutex_lock(&mdp->lock);
mdp              1178 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->ctx_num--;
mdp              1181 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mtk_mdp_dbg(0, "%s [%d]", dev_name(&mdp->pdev->dev), ctx->id);
mdp              1183 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mutex_unlock(&mdp->lock);
mdp              1202 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c int mtk_mdp_register_m2m_device(struct mtk_mdp_dev *mdp)
mdp              1204 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	struct device *dev = &mdp->pdev->dev;
mdp              1207 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->variant = &mtk_mdp_default_variant;
mdp              1208 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->vdev = video_device_alloc();
mdp              1209 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	if (!mdp->vdev) {
mdp              1214 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->vdev->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING;
mdp              1215 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->vdev->fops = &mtk_mdp_m2m_fops;
mdp              1216 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->vdev->ioctl_ops = &mtk_mdp_m2m_ioctl_ops;
mdp              1217 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->vdev->release = video_device_release;
mdp              1218 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->vdev->lock = &mdp->lock;
mdp              1219 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->vdev->vfl_dir = VFL_DIR_M2M;
mdp              1220 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->vdev->v4l2_dev = &mdp->v4l2_dev;
mdp              1221 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	snprintf(mdp->vdev->name, sizeof(mdp->vdev->name), "%s:m2m",
mdp              1223 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	video_set_drvdata(mdp->vdev, mdp);
mdp              1225 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	mdp->m2m_dev = v4l2_m2m_init(&mtk_mdp_m2m_ops);
mdp              1226 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	if (IS_ERR(mdp->m2m_dev)) {
mdp              1228 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		ret = PTR_ERR(mdp->m2m_dev);
mdp              1232 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	ret = video_register_device(mdp->vdev, VFL_TYPE_GRABBER, 2);
mdp              1238 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	v4l2_info(&mdp->v4l2_dev, "driver registered as /dev/video%d",
mdp              1239 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 		  mdp->vdev->num);
mdp              1243 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	v4l2_m2m_release(mdp->m2m_dev);
mdp              1245 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	video_device_release(mdp->vdev);
mdp              1251 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c void mtk_mdp_unregister_m2m_device(struct mtk_mdp_dev *mdp)
mdp              1253 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	video_unregister_device(mdp->vdev);
mdp              1254 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.c 	v4l2_m2m_release(mdp->m2m_dev);
mdp                11 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.h int mtk_mdp_register_m2m_device(struct mtk_mdp_dev *mdp);
mdp                12 drivers/media/platform/mtk-mdp/mtk_mdp_m2m.h void mtk_mdp_unregister_m2m_device(struct mtk_mdp_dev *mdp);
mdp                62 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c 	struct mtk_mdp_dev *mdp = platform_get_drvdata(pdev);
mdp                65 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c 	err = vpu_ipi_register(mdp->vpu_dev, IPI_MDP,
mdp                68 drivers/media/platform/mtk-mdp/mtk_mdp_vpu.c 		dev_err(&mdp->pdev->dev,
mdp              1087 drivers/net/ethernet/broadcom/bgmac.c 		u8 mdp;
mdp              1092 drivers/net/ethernet/broadcom/bgmac.c 		mdp = (bp_clk * 128 / 1000) - 3;
mdp              1093 drivers/net/ethernet/broadcom/bgmac.c 		rxq_ctl |= (mdp << BGMAC_RXQ_CTL_MDP_SHIFT);
mdp               404 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               405 drivers/net/ethernet/renesas/sh_eth.c 	u16 offset = mdp->reg_offset[enum_index];
mdp               410 drivers/net/ethernet/renesas/sh_eth.c 	iowrite32(data, mdp->addr + offset);
mdp               415 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               416 drivers/net/ethernet/renesas/sh_eth.c 	u16 offset = mdp->reg_offset[enum_index];
mdp               421 drivers/net/ethernet/renesas/sh_eth.c 	return ioread32(mdp->addr + offset);
mdp               431 drivers/net/ethernet/renesas/sh_eth.c static u16 sh_eth_tsu_get_offset(struct sh_eth_private *mdp, int enum_index)
mdp               433 drivers/net/ethernet/renesas/sh_eth.c 	return mdp->reg_offset[enum_index];
mdp               436 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_tsu_write(struct sh_eth_private *mdp, u32 data,
mdp               439 drivers/net/ethernet/renesas/sh_eth.c 	u16 offset = sh_eth_tsu_get_offset(mdp, enum_index);
mdp               444 drivers/net/ethernet/renesas/sh_eth.c 	iowrite32(data, mdp->tsu_addr + offset);
mdp               447 drivers/net/ethernet/renesas/sh_eth.c static u32 sh_eth_tsu_read(struct sh_eth_private *mdp, int enum_index)
mdp               449 drivers/net/ethernet/renesas/sh_eth.c 	u16 offset = sh_eth_tsu_get_offset(mdp, enum_index);
mdp               454 drivers/net/ethernet/renesas/sh_eth.c 	return ioread32(mdp->tsu_addr + offset);
mdp               470 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               473 drivers/net/ethernet/renesas/sh_eth.c 	switch (mdp->phy_interface) {
mdp               498 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               500 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_modify(ndev, ECMR, ECMR_DM, mdp->duplex ? ECMR_DM : 0);
mdp               505 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               508 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, ARSTR_ARST, ARSTR);
mdp               537 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               558 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->csmr)
mdp               562 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->select_mii)
mdp               570 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               572 drivers/net/ethernet/renesas/sh_eth.c 	switch (mdp->speed) {
mdp               683 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               685 drivers/net/ethernet/renesas/sh_eth.c 	switch (mdp->speed) {
mdp               843 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               845 drivers/net/ethernet/renesas/sh_eth.c 	switch (mdp->speed) {
mdp               887 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               889 drivers/net/ethernet/renesas/sh_eth.c 	switch (mdp->speed) {
mdp               958 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp               960 drivers/net/ethernet/renesas/sh_eth.c 	switch (mdp->speed) {
mdp              1268 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1274 drivers/net/ethernet/renesas/sh_eth.c 	for (; mdp->cur_tx - mdp->dirty_tx > 0; mdp->dirty_tx++) {
mdp              1275 drivers/net/ethernet/renesas/sh_eth.c 		entry = mdp->dirty_tx % mdp->num_tx_ring;
mdp              1276 drivers/net/ethernet/renesas/sh_eth.c 		txdesc = &mdp->tx_ring[entry];
mdp              1282 drivers/net/ethernet/renesas/sh_eth.c 		netif_info(mdp, tx_done, ndev,
mdp              1286 drivers/net/ethernet/renesas/sh_eth.c 		if (mdp->tx_skbuff[entry]) {
mdp              1287 drivers/net/ethernet/renesas/sh_eth.c 			dma_unmap_single(&mdp->pdev->dev,
mdp              1291 drivers/net/ethernet/renesas/sh_eth.c 			dev_kfree_skb_irq(mdp->tx_skbuff[entry]);
mdp              1292 drivers/net/ethernet/renesas/sh_eth.c 			mdp->tx_skbuff[entry] = NULL;
mdp              1296 drivers/net/ethernet/renesas/sh_eth.c 		if (entry >= mdp->num_tx_ring - 1)
mdp              1310 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1313 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->rx_ring) {
mdp              1314 drivers/net/ethernet/renesas/sh_eth.c 		for (i = 0; i < mdp->num_rx_ring; i++) {
mdp              1315 drivers/net/ethernet/renesas/sh_eth.c 			if (mdp->rx_skbuff[i]) {
mdp              1316 drivers/net/ethernet/renesas/sh_eth.c 				struct sh_eth_rxdesc *rxdesc = &mdp->rx_ring[i];
mdp              1318 drivers/net/ethernet/renesas/sh_eth.c 				dma_unmap_single(&mdp->pdev->dev,
mdp              1320 drivers/net/ethernet/renesas/sh_eth.c 						 ALIGN(mdp->rx_buf_sz, 32),
mdp              1324 drivers/net/ethernet/renesas/sh_eth.c 		ringsize = sizeof(struct sh_eth_rxdesc) * mdp->num_rx_ring;
mdp              1325 drivers/net/ethernet/renesas/sh_eth.c 		dma_free_coherent(&mdp->pdev->dev, ringsize, mdp->rx_ring,
mdp              1326 drivers/net/ethernet/renesas/sh_eth.c 				  mdp->rx_desc_dma);
mdp              1327 drivers/net/ethernet/renesas/sh_eth.c 		mdp->rx_ring = NULL;
mdp              1331 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->rx_skbuff) {
mdp              1332 drivers/net/ethernet/renesas/sh_eth.c 		for (i = 0; i < mdp->num_rx_ring; i++)
mdp              1333 drivers/net/ethernet/renesas/sh_eth.c 			dev_kfree_skb(mdp->rx_skbuff[i]);
mdp              1335 drivers/net/ethernet/renesas/sh_eth.c 	kfree(mdp->rx_skbuff);
mdp              1336 drivers/net/ethernet/renesas/sh_eth.c 	mdp->rx_skbuff = NULL;
mdp              1338 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->tx_ring) {
mdp              1341 drivers/net/ethernet/renesas/sh_eth.c 		ringsize = sizeof(struct sh_eth_txdesc) * mdp->num_tx_ring;
mdp              1342 drivers/net/ethernet/renesas/sh_eth.c 		dma_free_coherent(&mdp->pdev->dev, ringsize, mdp->tx_ring,
mdp              1343 drivers/net/ethernet/renesas/sh_eth.c 				  mdp->tx_desc_dma);
mdp              1344 drivers/net/ethernet/renesas/sh_eth.c 		mdp->tx_ring = NULL;
mdp              1348 drivers/net/ethernet/renesas/sh_eth.c 	kfree(mdp->tx_skbuff);
mdp              1349 drivers/net/ethernet/renesas/sh_eth.c 	mdp->tx_skbuff = NULL;
mdp              1355 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1360 drivers/net/ethernet/renesas/sh_eth.c 	int rx_ringsize = sizeof(*rxdesc) * mdp->num_rx_ring;
mdp              1361 drivers/net/ethernet/renesas/sh_eth.c 	int tx_ringsize = sizeof(*txdesc) * mdp->num_tx_ring;
mdp              1362 drivers/net/ethernet/renesas/sh_eth.c 	int skbuff_size = mdp->rx_buf_sz + SH_ETH_RX_ALIGN + 32 - 1;
mdp              1366 drivers/net/ethernet/renesas/sh_eth.c 	mdp->cur_rx = 0;
mdp              1367 drivers/net/ethernet/renesas/sh_eth.c 	mdp->cur_tx = 0;
mdp              1368 drivers/net/ethernet/renesas/sh_eth.c 	mdp->dirty_rx = 0;
mdp              1369 drivers/net/ethernet/renesas/sh_eth.c 	mdp->dirty_tx = 0;
mdp              1371 drivers/net/ethernet/renesas/sh_eth.c 	memset(mdp->rx_ring, 0, rx_ringsize);
mdp              1374 drivers/net/ethernet/renesas/sh_eth.c 	for (i = 0; i < mdp->num_rx_ring; i++) {
mdp              1376 drivers/net/ethernet/renesas/sh_eth.c 		mdp->rx_skbuff[i] = NULL;
mdp              1383 drivers/net/ethernet/renesas/sh_eth.c 		buf_len = ALIGN(mdp->rx_buf_sz, 32);
mdp              1384 drivers/net/ethernet/renesas/sh_eth.c 		dma_addr = dma_map_single(&mdp->pdev->dev, skb->data, buf_len,
mdp              1386 drivers/net/ethernet/renesas/sh_eth.c 		if (dma_mapping_error(&mdp->pdev->dev, dma_addr)) {
mdp              1390 drivers/net/ethernet/renesas/sh_eth.c 		mdp->rx_skbuff[i] = skb;
mdp              1393 drivers/net/ethernet/renesas/sh_eth.c 		rxdesc = &mdp->rx_ring[i];
mdp              1400 drivers/net/ethernet/renesas/sh_eth.c 			sh_eth_write(ndev, mdp->rx_desc_dma, RDLAR);
mdp              1401 drivers/net/ethernet/renesas/sh_eth.c 			if (mdp->cd->xdfar_rw)
mdp              1402 drivers/net/ethernet/renesas/sh_eth.c 				sh_eth_write(ndev, mdp->rx_desc_dma, RDFAR);
mdp              1406 drivers/net/ethernet/renesas/sh_eth.c 	mdp->dirty_rx = (u32) (i - mdp->num_rx_ring);
mdp              1412 drivers/net/ethernet/renesas/sh_eth.c 	memset(mdp->tx_ring, 0, tx_ringsize);
mdp              1415 drivers/net/ethernet/renesas/sh_eth.c 	for (i = 0; i < mdp->num_tx_ring; i++) {
mdp              1416 drivers/net/ethernet/renesas/sh_eth.c 		mdp->tx_skbuff[i] = NULL;
mdp              1417 drivers/net/ethernet/renesas/sh_eth.c 		txdesc = &mdp->tx_ring[i];
mdp              1422 drivers/net/ethernet/renesas/sh_eth.c 			sh_eth_write(ndev, mdp->tx_desc_dma, TDLAR);
mdp              1423 drivers/net/ethernet/renesas/sh_eth.c 			if (mdp->cd->xdfar_rw)
mdp              1424 drivers/net/ethernet/renesas/sh_eth.c 				sh_eth_write(ndev, mdp->tx_desc_dma, TDFAR);
mdp              1434 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1442 drivers/net/ethernet/renesas/sh_eth.c 	mdp->rx_buf_sz = (ndev->mtu <= 1492 ? PKT_BUF_SZ :
mdp              1444 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->rpadir)
mdp              1445 drivers/net/ethernet/renesas/sh_eth.c 		mdp->rx_buf_sz += NET_IP_ALIGN;
mdp              1448 drivers/net/ethernet/renesas/sh_eth.c 	mdp->rx_skbuff = kcalloc(mdp->num_rx_ring, sizeof(*mdp->rx_skbuff),
mdp              1450 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->rx_skbuff)
mdp              1453 drivers/net/ethernet/renesas/sh_eth.c 	mdp->tx_skbuff = kcalloc(mdp->num_tx_ring, sizeof(*mdp->tx_skbuff),
mdp              1455 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->tx_skbuff)
mdp              1459 drivers/net/ethernet/renesas/sh_eth.c 	rx_ringsize = sizeof(struct sh_eth_rxdesc) * mdp->num_rx_ring;
mdp              1460 drivers/net/ethernet/renesas/sh_eth.c 	mdp->rx_ring = dma_alloc_coherent(&mdp->pdev->dev, rx_ringsize,
mdp              1461 drivers/net/ethernet/renesas/sh_eth.c 					  &mdp->rx_desc_dma, GFP_KERNEL);
mdp              1462 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->rx_ring)
mdp              1465 drivers/net/ethernet/renesas/sh_eth.c 	mdp->dirty_rx = 0;
mdp              1468 drivers/net/ethernet/renesas/sh_eth.c 	tx_ringsize = sizeof(struct sh_eth_txdesc) * mdp->num_tx_ring;
mdp              1469 drivers/net/ethernet/renesas/sh_eth.c 	mdp->tx_ring = dma_alloc_coherent(&mdp->pdev->dev, tx_ringsize,
mdp              1470 drivers/net/ethernet/renesas/sh_eth.c 					  &mdp->tx_desc_dma, GFP_KERNEL);
mdp              1471 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->tx_ring)
mdp              1484 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1488 drivers/net/ethernet/renesas/sh_eth.c 	ret = mdp->cd->soft_reset(ndev);
mdp              1492 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->rmiimode)
mdp              1497 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->rpadir)
mdp              1504 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->hw_swap)
mdp              1511 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_write(ndev, mdp->cd->fdr_value, FDR);
mdp              1517 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_write(ndev, mdp->cd->trscer_err_mask, TRSCER);
mdp              1520 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->nbst)
mdp              1524 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->bculr)
mdp              1527 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_write(ndev, mdp->cd->fcftr_value, FCFTR);
mdp              1529 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->cd->no_trimd)
mdp              1537 drivers/net/ethernet/renesas/sh_eth.c 	mdp->irq_enabled = true;
mdp              1538 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_write(ndev, mdp->cd->eesipr_value, EESIPR);
mdp              1541 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_write(ndev, ECMR_ZPF | (mdp->duplex ? ECMR_DM : 0) |
mdp              1545 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->set_rate)
mdp              1546 drivers/net/ethernet/renesas/sh_eth.c 		mdp->cd->set_rate(ndev);
mdp              1549 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_write(ndev, mdp->cd->ecsr_value, ECSR);
mdp              1552 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_write(ndev, mdp->cd->ecsipr_value, ECSIPR);
mdp              1558 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->apr)
mdp              1560 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->mpr)
mdp              1562 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->tpauser)
mdp              1573 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1579 drivers/net/ethernet/renesas/sh_eth.c 	for (i = 0; i < mdp->num_tx_ring; i++)
mdp              1580 drivers/net/ethernet/renesas/sh_eth.c 		mdp->tx_ring[i].status &= ~cpu_to_le32(TD_TACT);
mdp              1595 drivers/net/ethernet/renesas/sh_eth.c 	mdp->cd->soft_reset(ndev);
mdp              1598 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->rmiimode)
mdp              1621 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1624 drivers/net/ethernet/renesas/sh_eth.c 	int entry = mdp->cur_rx % mdp->num_rx_ring;
mdp              1625 drivers/net/ethernet/renesas/sh_eth.c 	int boguscnt = (mdp->dirty_rx + mdp->num_rx_ring) - mdp->cur_rx;
mdp              1629 drivers/net/ethernet/renesas/sh_eth.c 	int skbuff_size = mdp->rx_buf_sz + SH_ETH_RX_ALIGN + 32 - 1;
mdp              1636 drivers/net/ethernet/renesas/sh_eth.c 	rxdesc = &mdp->rx_ring[entry];
mdp              1646 drivers/net/ethernet/renesas/sh_eth.c 		netif_info(mdp, rx_status, ndev,
mdp              1659 drivers/net/ethernet/renesas/sh_eth.c 		if (mdp->cd->csmr)
mdp              1662 drivers/net/ethernet/renesas/sh_eth.c 		skb = mdp->rx_skbuff[entry];
mdp              1680 drivers/net/ethernet/renesas/sh_eth.c 			if (!mdp->cd->hw_swap)
mdp              1684 drivers/net/ethernet/renesas/sh_eth.c 			mdp->rx_skbuff[entry] = NULL;
mdp              1685 drivers/net/ethernet/renesas/sh_eth.c 			if (mdp->cd->rpadir)
mdp              1687 drivers/net/ethernet/renesas/sh_eth.c 			dma_unmap_single(&mdp->pdev->dev, dma_addr,
mdp              1688 drivers/net/ethernet/renesas/sh_eth.c 					 ALIGN(mdp->rx_buf_sz, 32),
mdp              1700 drivers/net/ethernet/renesas/sh_eth.c 		entry = (++mdp->cur_rx) % mdp->num_rx_ring;
mdp              1701 drivers/net/ethernet/renesas/sh_eth.c 		rxdesc = &mdp->rx_ring[entry];
mdp              1705 drivers/net/ethernet/renesas/sh_eth.c 	for (; mdp->cur_rx - mdp->dirty_rx > 0; mdp->dirty_rx++) {
mdp              1706 drivers/net/ethernet/renesas/sh_eth.c 		entry = mdp->dirty_rx % mdp->num_rx_ring;
mdp              1707 drivers/net/ethernet/renesas/sh_eth.c 		rxdesc = &mdp->rx_ring[entry];
mdp              1709 drivers/net/ethernet/renesas/sh_eth.c 		buf_len = ALIGN(mdp->rx_buf_sz, 32);
mdp              1712 drivers/net/ethernet/renesas/sh_eth.c 		if (mdp->rx_skbuff[entry] == NULL) {
mdp              1717 drivers/net/ethernet/renesas/sh_eth.c 			dma_addr = dma_map_single(&mdp->pdev->dev, skb->data,
mdp              1719 drivers/net/ethernet/renesas/sh_eth.c 			if (dma_mapping_error(&mdp->pdev->dev, dma_addr)) {
mdp              1723 drivers/net/ethernet/renesas/sh_eth.c 			mdp->rx_skbuff[entry] = skb;
mdp              1729 drivers/net/ethernet/renesas/sh_eth.c 		if (entry >= mdp->num_rx_ring - 1)
mdp              1740 drivers/net/ethernet/renesas/sh_eth.c 		if (intr_status & EESR_RDE && !mdp->cd->no_xdfar) {
mdp              1744 drivers/net/ethernet/renesas/sh_eth.c 			mdp->cur_rx = count;
mdp              1745 drivers/net/ethernet/renesas/sh_eth.c 			mdp->dirty_rx = count;
mdp              1770 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1779 drivers/net/ethernet/renesas/sh_eth.c 		pm_wakeup_event(&mdp->pdev->dev, 0);
mdp              1782 drivers/net/ethernet/renesas/sh_eth.c 		if (mdp->cd->no_psr || mdp->no_ether_link)
mdp              1785 drivers/net/ethernet/renesas/sh_eth.c 		if (mdp->ether_link_active_low)
mdp              1804 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1811 drivers/net/ethernet/renesas/sh_eth.c 			netif_err(mdp, tx_err, ndev, "Transmit Abort\n");
mdp              1826 drivers/net/ethernet/renesas/sh_eth.c 		netif_err(mdp, tx_err, ndev, "Transmit Descriptor Empty\n");
mdp              1832 drivers/net/ethernet/renesas/sh_eth.c 		netif_err(mdp, tx_err, ndev, "Transmit FIFO Under flow\n");
mdp              1845 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->cd->no_ade && (intr_status & EESR_ADE)) {
mdp              1848 drivers/net/ethernet/renesas/sh_eth.c 		netif_err(mdp, tx_err, ndev, "Address Error\n");
mdp              1852 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->no_ade)
mdp              1860 drivers/net/ethernet/renesas/sh_eth.c 			   intr_status, mdp->cur_tx, mdp->dirty_tx,
mdp              1866 drivers/net/ethernet/renesas/sh_eth.c 		if (edtrr ^ mdp->cd->edtrr_trns) {
mdp              1868 drivers/net/ethernet/renesas/sh_eth.c 			sh_eth_write(ndev, mdp->cd->edtrr_trns, EDTRR);
mdp              1878 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1879 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_cpu_data *cd = mdp->cd;
mdp              1883 drivers/net/ethernet/renesas/sh_eth.c 	spin_lock(&mdp->lock);
mdp              1901 drivers/net/ethernet/renesas/sh_eth.c 	if (unlikely(!mdp->irq_enabled)) {
mdp              1907 drivers/net/ethernet/renesas/sh_eth.c 		if (napi_schedule_prep(&mdp->napi)) {
mdp              1911 drivers/net/ethernet/renesas/sh_eth.c 			__napi_schedule(&mdp->napi);
mdp              1940 drivers/net/ethernet/renesas/sh_eth.c 	spin_unlock(&mdp->lock);
mdp              1947 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = container_of(napi, struct sh_eth_private,
mdp              1967 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->irq_enabled)
mdp              1968 drivers/net/ethernet/renesas/sh_eth.c 		sh_eth_write(ndev, mdp->cd->eesipr_value, EESIPR);
mdp              1976 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              1981 drivers/net/ethernet/renesas/sh_eth.c 	spin_lock_irqsave(&mdp->lock, flags);
mdp              1984 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->no_psr || mdp->no_ether_link)
mdp              1988 drivers/net/ethernet/renesas/sh_eth.c 		if (phydev->duplex != mdp->duplex) {
mdp              1990 drivers/net/ethernet/renesas/sh_eth.c 			mdp->duplex = phydev->duplex;
mdp              1991 drivers/net/ethernet/renesas/sh_eth.c 			if (mdp->cd->set_duplex)
mdp              1992 drivers/net/ethernet/renesas/sh_eth.c 				mdp->cd->set_duplex(ndev);
mdp              1995 drivers/net/ethernet/renesas/sh_eth.c 		if (phydev->speed != mdp->speed) {
mdp              1997 drivers/net/ethernet/renesas/sh_eth.c 			mdp->speed = phydev->speed;
mdp              1998 drivers/net/ethernet/renesas/sh_eth.c 			if (mdp->cd->set_rate)
mdp              1999 drivers/net/ethernet/renesas/sh_eth.c 				mdp->cd->set_rate(ndev);
mdp              2001 drivers/net/ethernet/renesas/sh_eth.c 		if (!mdp->link) {
mdp              2004 drivers/net/ethernet/renesas/sh_eth.c 			mdp->link = phydev->link;
mdp              2006 drivers/net/ethernet/renesas/sh_eth.c 	} else if (mdp->link) {
mdp              2008 drivers/net/ethernet/renesas/sh_eth.c 		mdp->link = 0;
mdp              2009 drivers/net/ethernet/renesas/sh_eth.c 		mdp->speed = 0;
mdp              2010 drivers/net/ethernet/renesas/sh_eth.c 		mdp->duplex = -1;
mdp              2014 drivers/net/ethernet/renesas/sh_eth.c 	if ((mdp->cd->no_psr || mdp->no_ether_link) && phydev->link)
mdp              2017 drivers/net/ethernet/renesas/sh_eth.c 	spin_unlock_irqrestore(&mdp->lock, flags);
mdp              2019 drivers/net/ethernet/renesas/sh_eth.c 	if (new_state && netif_msg_link(mdp))
mdp              2027 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2030 drivers/net/ethernet/renesas/sh_eth.c 	mdp->link = 0;
mdp              2031 drivers/net/ethernet/renesas/sh_eth.c 	mdp->speed = 0;
mdp              2032 drivers/net/ethernet/renesas/sh_eth.c 	mdp->duplex = -1;
mdp              2041 drivers/net/ethernet/renesas/sh_eth.c 					mdp->phy_interface);
mdp              2050 drivers/net/ethernet/renesas/sh_eth.c 			 mdp->mii_bus->id, mdp->phy_id);
mdp              2053 drivers/net/ethernet/renesas/sh_eth.c 				     mdp->phy_interface);
mdp              2062 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->register_type != SH_ETH_REG_GIGABIT) {
mdp              2100 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2101 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_cpu_data *cd = mdp->cd;
mdp              2125 drivers/net/ethernet/renesas/sh_eth.c 		if (mdp->reg_offset[reg] != SH_ETH_OFFSET_INVALID) {	\
mdp              2134 drivers/net/ethernet/renesas/sh_eth.c #define add_tsu_reg(reg) add_reg_from(reg, sh_eth_tsu_read(mdp, reg))
mdp              2241 drivers/net/ethernet/renesas/sh_eth.c 				*buf++ = ioread32(mdp->tsu_addr +
mdp              2242 drivers/net/ethernet/renesas/sh_eth.c 						  mdp->reg_offset[TSU_ADRH0] +
mdp              2264 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2268 drivers/net/ethernet/renesas/sh_eth.c 	pm_runtime_get_sync(&mdp->pdev->dev);
mdp              2270 drivers/net/ethernet/renesas/sh_eth.c 	pm_runtime_put_sync(&mdp->pdev->dev);
mdp              2275 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2276 drivers/net/ethernet/renesas/sh_eth.c 	return mdp->msg_enable;
mdp              2281 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2282 drivers/net/ethernet/renesas/sh_eth.c 	mdp->msg_enable = value;
mdp              2304 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2308 drivers/net/ethernet/renesas/sh_eth.c 	data[i++] = mdp->cur_rx;
mdp              2309 drivers/net/ethernet/renesas/sh_eth.c 	data[i++] = mdp->cur_tx;
mdp              2310 drivers/net/ethernet/renesas/sh_eth.c 	data[i++] = mdp->dirty_rx;
mdp              2311 drivers/net/ethernet/renesas/sh_eth.c 	data[i++] = mdp->dirty_tx;
mdp              2327 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2331 drivers/net/ethernet/renesas/sh_eth.c 	ring->rx_pending = mdp->num_rx_ring;
mdp              2332 drivers/net/ethernet/renesas/sh_eth.c 	ring->tx_pending = mdp->num_tx_ring;
mdp              2338 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2358 drivers/net/ethernet/renesas/sh_eth.c 		mdp->irq_enabled = false;
mdp              2360 drivers/net/ethernet/renesas/sh_eth.c 		napi_synchronize(&mdp->napi);
mdp              2370 drivers/net/ethernet/renesas/sh_eth.c 	mdp->num_rx_ring = ring->rx_pending;
mdp              2371 drivers/net/ethernet/renesas/sh_eth.c 	mdp->num_tx_ring = ring->tx_pending;
mdp              2395 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2400 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->magic) {
mdp              2402 drivers/net/ethernet/renesas/sh_eth.c 		wol->wolopts = mdp->wol_enabled ? WAKE_MAGIC : 0;
mdp              2408 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2410 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->cd->magic || wol->wolopts & ~WAKE_MAGIC)
mdp              2413 drivers/net/ethernet/renesas/sh_eth.c 	mdp->wol_enabled = !!(wol->wolopts & WAKE_MAGIC);
mdp              2415 drivers/net/ethernet/renesas/sh_eth.c 	device_set_wakeup_enable(&mdp->pdev->dev, mdp->wol_enabled);
mdp              2441 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2444 drivers/net/ethernet/renesas/sh_eth.c 	pm_runtime_get_sync(&mdp->pdev->dev);
mdp              2446 drivers/net/ethernet/renesas/sh_eth.c 	napi_enable(&mdp->napi);
mdp              2449 drivers/net/ethernet/renesas/sh_eth.c 			  mdp->cd->irq_flags, ndev->name, ndev);
mdp              2472 drivers/net/ethernet/renesas/sh_eth.c 	mdp->is_opened = 1;
mdp              2479 drivers/net/ethernet/renesas/sh_eth.c 	napi_disable(&mdp->napi);
mdp              2480 drivers/net/ethernet/renesas/sh_eth.c 	pm_runtime_put_sync(&mdp->pdev->dev);
mdp              2487 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2493 drivers/net/ethernet/renesas/sh_eth.c 	netif_err(mdp, timer, ndev,
mdp              2501 drivers/net/ethernet/renesas/sh_eth.c 	for (i = 0; i < mdp->num_rx_ring; i++) {
mdp              2502 drivers/net/ethernet/renesas/sh_eth.c 		rxdesc = &mdp->rx_ring[i];
mdp              2505 drivers/net/ethernet/renesas/sh_eth.c 		dev_kfree_skb(mdp->rx_skbuff[i]);
mdp              2506 drivers/net/ethernet/renesas/sh_eth.c 		mdp->rx_skbuff[i] = NULL;
mdp              2508 drivers/net/ethernet/renesas/sh_eth.c 	for (i = 0; i < mdp->num_tx_ring; i++) {
mdp              2509 drivers/net/ethernet/renesas/sh_eth.c 		dev_kfree_skb(mdp->tx_skbuff[i]);
mdp              2510 drivers/net/ethernet/renesas/sh_eth.c 		mdp->tx_skbuff[i] = NULL;
mdp              2522 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2528 drivers/net/ethernet/renesas/sh_eth.c 	spin_lock_irqsave(&mdp->lock, flags);
mdp              2529 drivers/net/ethernet/renesas/sh_eth.c 	if ((mdp->cur_tx - mdp->dirty_tx) >= (mdp->num_tx_ring - 4)) {
mdp              2531 drivers/net/ethernet/renesas/sh_eth.c 			netif_warn(mdp, tx_queued, ndev, "TxFD exhausted.\n");
mdp              2533 drivers/net/ethernet/renesas/sh_eth.c 			spin_unlock_irqrestore(&mdp->lock, flags);
mdp              2537 drivers/net/ethernet/renesas/sh_eth.c 	spin_unlock_irqrestore(&mdp->lock, flags);
mdp              2542 drivers/net/ethernet/renesas/sh_eth.c 	entry = mdp->cur_tx % mdp->num_tx_ring;
mdp              2543 drivers/net/ethernet/renesas/sh_eth.c 	mdp->tx_skbuff[entry] = skb;
mdp              2544 drivers/net/ethernet/renesas/sh_eth.c 	txdesc = &mdp->tx_ring[entry];
mdp              2546 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->cd->hw_swap)
mdp              2548 drivers/net/ethernet/renesas/sh_eth.c 	dma_addr = dma_map_single(&mdp->pdev->dev, skb->data, skb->len,
mdp              2550 drivers/net/ethernet/renesas/sh_eth.c 	if (dma_mapping_error(&mdp->pdev->dev, dma_addr)) {
mdp              2558 drivers/net/ethernet/renesas/sh_eth.c 	if (entry >= mdp->num_tx_ring - 1)
mdp              2563 drivers/net/ethernet/renesas/sh_eth.c 	mdp->cur_tx++;
mdp              2565 drivers/net/ethernet/renesas/sh_eth.c 	if (!(sh_eth_read(ndev, EDTRR) & mdp->cd->edtrr_trns))
mdp              2566 drivers/net/ethernet/renesas/sh_eth.c 		sh_eth_write(ndev, mdp->cd->edtrr_trns, EDTRR);
mdp              2589 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2591 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->no_tx_cntrs)
mdp              2594 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->is_opened)
mdp              2601 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->cexcr) {
mdp              2617 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2625 drivers/net/ethernet/renesas/sh_eth.c 	mdp->irq_enabled = false;
mdp              2627 drivers/net/ethernet/renesas/sh_eth.c 	napi_disable(&mdp->napi);
mdp              2643 drivers/net/ethernet/renesas/sh_eth.c 	pm_runtime_put_sync(&mdp->pdev->dev);
mdp              2645 drivers/net/ethernet/renesas/sh_eth.c 	mdp->is_opened = 0;
mdp              2681 drivers/net/ethernet/renesas/sh_eth.c static u32 sh_eth_tsu_get_post_bit(struct sh_eth_private *mdp, int entry)
mdp              2683 drivers/net/ethernet/renesas/sh_eth.c 	return (0x08 >> (mdp->port << 1)) << (28 - ((entry % 8) * 4));
mdp              2689 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2693 drivers/net/ethernet/renesas/sh_eth.c 	tmp = sh_eth_tsu_read(mdp, reg);
mdp              2694 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, tmp | sh_eth_tsu_get_post_bit(mdp, entry), reg);
mdp              2700 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2705 drivers/net/ethernet/renesas/sh_eth.c 	ref_mask = sh_eth_tsu_get_post_bit(mdp, entry) & ~post_mask;
mdp              2707 drivers/net/ethernet/renesas/sh_eth.c 	tmp = sh_eth_tsu_read(mdp, reg);
mdp              2708 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, tmp & ~post_mask, reg);
mdp              2717 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2719 drivers/net/ethernet/renesas/sh_eth.c 	while ((sh_eth_tsu_read(mdp, TSU_ADSBSY) & TSU_ADSBSY_0)) {
mdp              2734 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2738 drivers/net/ethernet/renesas/sh_eth.c 	iowrite32(val, mdp->tsu_addr + offset);
mdp              2743 drivers/net/ethernet/renesas/sh_eth.c 	iowrite32(val, mdp->tsu_addr + offset + 4);
mdp              2752 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2755 drivers/net/ethernet/renesas/sh_eth.c 	val = ioread32(mdp->tsu_addr + offset);
mdp              2760 drivers/net/ethernet/renesas/sh_eth.c 	val = ioread32(mdp->tsu_addr + offset + 4);
mdp              2768 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2769 drivers/net/ethernet/renesas/sh_eth.c 	u16 reg_offset = sh_eth_tsu_get_offset(mdp, TSU_ADRH0);
mdp              2795 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2796 drivers/net/ethernet/renesas/sh_eth.c 	u16 reg_offset = sh_eth_tsu_get_offset(mdp, TSU_ADRH0);
mdp              2800 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, sh_eth_tsu_read(mdp, TSU_TEN) &
mdp              2812 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2813 drivers/net/ethernet/renesas/sh_eth.c 	u16 reg_offset = sh_eth_tsu_get_offset(mdp, TSU_ADRH0);
mdp              2816 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->cd->tsu)
mdp              2830 drivers/net/ethernet/renesas/sh_eth.c 		sh_eth_tsu_write(mdp, sh_eth_tsu_read(mdp, TSU_TEN) |
mdp              2842 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2845 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->cd->tsu)
mdp              2865 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2868 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->cd->tsu)
mdp              2886 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2887 drivers/net/ethernet/renesas/sh_eth.c 	u16 reg_offset = sh_eth_tsu_get_offset(mdp, TSU_ADRH0);
mdp              2891 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->cd->tsu)
mdp              2904 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2909 drivers/net/ethernet/renesas/sh_eth.c 	spin_lock_irqsave(&mdp->lock, flags);
mdp              2914 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->tsu)
mdp              2930 drivers/net/ethernet/renesas/sh_eth.c 	} else if (mdp->cd->tsu) {
mdp              2949 drivers/net/ethernet/renesas/sh_eth.c 	spin_unlock_irqrestore(&mdp->lock, flags);
mdp              2954 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2957 drivers/net/ethernet/renesas/sh_eth.c 	spin_lock_irqsave(&mdp->lock, flags);
mdp              2968 drivers/net/ethernet/renesas/sh_eth.c 	spin_unlock_irqrestore(&mdp->lock, flags);
mdp              2975 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2977 drivers/net/ethernet/renesas/sh_eth.c 	if (changed & NETIF_F_RXCSUM && mdp->cd->rx_csum)
mdp              2985 drivers/net/ethernet/renesas/sh_eth.c static int sh_eth_get_vtag_index(struct sh_eth_private *mdp)
mdp              2987 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->port)
mdp              2996 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              2997 drivers/net/ethernet/renesas/sh_eth.c 	int vtag_reg_index = sh_eth_get_vtag_index(mdp);
mdp              2999 drivers/net/ethernet/renesas/sh_eth.c 	if (unlikely(!mdp->cd->tsu))
mdp              3006 drivers/net/ethernet/renesas/sh_eth.c 	mdp->vlan_num_ids++;
mdp              3011 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->vlan_num_ids > 1) {
mdp              3013 drivers/net/ethernet/renesas/sh_eth.c 		sh_eth_tsu_write(mdp, 0, vtag_reg_index);
mdp              3017 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, TSU_VTAG_ENABLE | (vid & TSU_VTAG_VID_MASK),
mdp              3026 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              3027 drivers/net/ethernet/renesas/sh_eth.c 	int vtag_reg_index = sh_eth_get_vtag_index(mdp);
mdp              3029 drivers/net/ethernet/renesas/sh_eth.c 	if (unlikely(!mdp->cd->tsu))
mdp              3036 drivers/net/ethernet/renesas/sh_eth.c 	mdp->vlan_num_ids--;
mdp              3037 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, vtag_reg_index);
mdp              3043 drivers/net/ethernet/renesas/sh_eth.c static void sh_eth_tsu_init(struct sh_eth_private *mdp)
mdp              3045 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->cd->dual_port) {
mdp              3046 drivers/net/ethernet/renesas/sh_eth.c 		sh_eth_tsu_write(mdp, 0, TSU_TEN); /* Disable all CAM entry */
mdp              3047 drivers/net/ethernet/renesas/sh_eth.c 		sh_eth_tsu_write(mdp, TSU_FWSLC_POSTENU | TSU_FWSLC_POSTENL,
mdp              3052 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_FWEN0);	/* Disable forward(0->1) */
mdp              3053 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_FWEN1);	/* Disable forward(1->0) */
mdp              3054 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_FCM);	/* forward fifo 3k-3k */
mdp              3055 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0xc, TSU_BSYSL0);
mdp              3056 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0xc, TSU_BSYSL1);
mdp              3057 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_PRISL0);
mdp              3058 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_PRISL1);
mdp              3059 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_FWSL0);
mdp              3060 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_FWSL1);
mdp              3061 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, TSU_FWSLC_POSTENU | TSU_FWSLC_POSTENL, TSU_FWSLC);
mdp              3062 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_QTAGM0);	/* Disable QTAG(0->1) */
mdp              3063 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_QTAGM1);	/* Disable QTAG(1->0) */
mdp              3064 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_FWSR);	/* all interrupt status clear */
mdp              3065 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_FWINMK);	/* Disable all interrupt */
mdp              3066 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_TEN);	/* Disable all CAM entry */
mdp              3067 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_POST1);	/* Disable CAM entry [ 0- 7] */
mdp              3068 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_POST2);	/* Disable CAM entry [ 8-15] */
mdp              3069 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_POST3);	/* Disable CAM entry [16-23] */
mdp              3070 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_tsu_write(mdp, 0, TSU_POST4);	/* Disable CAM entry [24-31] */
mdp              3074 drivers/net/ethernet/renesas/sh_eth.c static int sh_mdio_release(struct sh_eth_private *mdp)
mdp              3077 drivers/net/ethernet/renesas/sh_eth.c 	mdiobus_unregister(mdp->mii_bus);
mdp              3080 drivers/net/ethernet/renesas/sh_eth.c 	free_mdio_bitbang(mdp->mii_bus);
mdp              3086 drivers/net/ethernet/renesas/sh_eth.c static int sh_mdio_init(struct sh_eth_private *mdp,
mdp              3091 drivers/net/ethernet/renesas/sh_eth.c 	struct platform_device *pdev = mdp->pdev;
mdp              3092 drivers/net/ethernet/renesas/sh_eth.c 	struct device *dev = &mdp->pdev->dev;
mdp              3100 drivers/net/ethernet/renesas/sh_eth.c 	bitbang->addr = mdp->addr + mdp->reg_offset[PIR];
mdp              3105 drivers/net/ethernet/renesas/sh_eth.c 	mdp->mii_bus = alloc_mdio_bitbang(&bitbang->ctrl);
mdp              3106 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->mii_bus)
mdp              3110 drivers/net/ethernet/renesas/sh_eth.c 	mdp->mii_bus->name = "sh_mii";
mdp              3111 drivers/net/ethernet/renesas/sh_eth.c 	mdp->mii_bus->parent = dev;
mdp              3112 drivers/net/ethernet/renesas/sh_eth.c 	snprintf(mdp->mii_bus->id, MII_BUS_ID_SIZE, "%s-%x",
mdp              3117 drivers/net/ethernet/renesas/sh_eth.c 		mdp->mii_bus->irq[pd->phy] = pd->phy_irq;
mdp              3119 drivers/net/ethernet/renesas/sh_eth.c 	ret = of_mdiobus_register(mdp->mii_bus, dev->of_node);
mdp              3126 drivers/net/ethernet/renesas/sh_eth.c 	free_mdio_bitbang(mdp->mii_bus);
mdp              3244 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp;
mdp              3265 drivers/net/ethernet/renesas/sh_eth.c 	mdp = netdev_priv(ndev);
mdp              3266 drivers/net/ethernet/renesas/sh_eth.c 	mdp->num_tx_ring = TX_RING_SIZE;
mdp              3267 drivers/net/ethernet/renesas/sh_eth.c 	mdp->num_rx_ring = RX_RING_SIZE;
mdp              3268 drivers/net/ethernet/renesas/sh_eth.c 	mdp->addr = devm_ioremap_resource(&pdev->dev, res);
mdp              3269 drivers/net/ethernet/renesas/sh_eth.c 	if (IS_ERR(mdp->addr)) {
mdp              3270 drivers/net/ethernet/renesas/sh_eth.c 		ret = PTR_ERR(mdp->addr);
mdp              3276 drivers/net/ethernet/renesas/sh_eth.c 	spin_lock_init(&mdp->lock);
mdp              3277 drivers/net/ethernet/renesas/sh_eth.c 	mdp->pdev = pdev;
mdp              3288 drivers/net/ethernet/renesas/sh_eth.c 	mdp->phy_id = pd->phy;
mdp              3289 drivers/net/ethernet/renesas/sh_eth.c 	mdp->phy_interface = pd->phy_interface;
mdp              3290 drivers/net/ethernet/renesas/sh_eth.c 	mdp->no_ether_link = pd->no_ether_link;
mdp              3291 drivers/net/ethernet/renesas/sh_eth.c 	mdp->ether_link_active_low = pd->ether_link_active_low;
mdp              3295 drivers/net/ethernet/renesas/sh_eth.c 		mdp->cd = (struct sh_eth_cpu_data *)id->driver_data;
mdp              3297 drivers/net/ethernet/renesas/sh_eth.c 		mdp->cd = (struct sh_eth_cpu_data *)of_device_get_match_data(&pdev->dev);
mdp              3299 drivers/net/ethernet/renesas/sh_eth.c 	mdp->reg_offset = sh_eth_get_register_offset(mdp->cd->register_type);
mdp              3300 drivers/net/ethernet/renesas/sh_eth.c 	if (!mdp->reg_offset) {
mdp              3302 drivers/net/ethernet/renesas/sh_eth.c 			mdp->cd->register_type);
mdp              3306 drivers/net/ethernet/renesas/sh_eth.c 	sh_eth_set_default_cpu_data(mdp->cd);
mdp              3315 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->rx_csum) {
mdp              3321 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->tsu)
mdp              3329 drivers/net/ethernet/renesas/sh_eth.c 	mdp->msg_enable = SH_ETH_DEF_MSG_ENABLE;
mdp              3339 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->tsu) {
mdp              3361 drivers/net/ethernet/renesas/sh_eth.c 		mdp->tsu_addr = devm_ioremap(&pdev->dev, rtsu->start,
mdp              3363 drivers/net/ethernet/renesas/sh_eth.c 		if (!mdp->tsu_addr) {
mdp              3368 drivers/net/ethernet/renesas/sh_eth.c 		mdp->port = port;
mdp              3373 drivers/net/ethernet/renesas/sh_eth.c 			if (mdp->cd->chip_reset)
mdp              3374 drivers/net/ethernet/renesas/sh_eth.c 				mdp->cd->chip_reset(ndev);
mdp              3377 drivers/net/ethernet/renesas/sh_eth.c 			sh_eth_tsu_init(mdp);
mdp              3381 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->rmiimode)
mdp              3385 drivers/net/ethernet/renesas/sh_eth.c 	ret = sh_mdio_init(mdp, pd);
mdp              3392 drivers/net/ethernet/renesas/sh_eth.c 	netif_napi_add(ndev, &mdp->napi, sh_eth_poll, 64);
mdp              3399 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->cd->magic)
mdp              3412 drivers/net/ethernet/renesas/sh_eth.c 	netif_napi_del(&mdp->napi);
mdp              3413 drivers/net/ethernet/renesas/sh_eth.c 	sh_mdio_release(mdp);
mdp              3427 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              3430 drivers/net/ethernet/renesas/sh_eth.c 	netif_napi_del(&mdp->napi);
mdp              3431 drivers/net/ethernet/renesas/sh_eth.c 	sh_mdio_release(mdp);
mdp              3442 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              3446 drivers/net/ethernet/renesas/sh_eth.c 	napi_disable(&mdp->napi);
mdp              3457 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              3460 drivers/net/ethernet/renesas/sh_eth.c 	napi_enable(&mdp->napi);
mdp              3483 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              3491 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->wol_enabled)
mdp              3502 drivers/net/ethernet/renesas/sh_eth.c 	struct sh_eth_private *mdp = netdev_priv(ndev);
mdp              3508 drivers/net/ethernet/renesas/sh_eth.c 	if (mdp->wol_enabled)
mdp                57 drivers/pwm/pwm-mtk-disp.c static void mtk_disp_pwm_update_bits(struct mtk_disp_pwm *mdp, u32 offset,
mdp                60 drivers/pwm/pwm-mtk-disp.c 	void __iomem *address = mdp->base + offset;
mdp                72 drivers/pwm/pwm-mtk-disp.c 	struct mtk_disp_pwm *mdp = to_mtk_disp_pwm(chip);
mdp                87 drivers/pwm/pwm-mtk-disp.c 	rate = clk_get_rate(mdp->clk_main);
mdp               101 drivers/pwm/pwm-mtk-disp.c 	err = clk_enable(mdp->clk_main);
mdp               105 drivers/pwm/pwm-mtk-disp.c 	err = clk_enable(mdp->clk_mm);
mdp               107 drivers/pwm/pwm-mtk-disp.c 		clk_disable(mdp->clk_main);
mdp               111 drivers/pwm/pwm-mtk-disp.c 	mtk_disp_pwm_update_bits(mdp, mdp->data->con0,
mdp               114 drivers/pwm/pwm-mtk-disp.c 	mtk_disp_pwm_update_bits(mdp, mdp->data->con1,
mdp               118 drivers/pwm/pwm-mtk-disp.c 	if (mdp->data->has_commit) {
mdp               119 drivers/pwm/pwm-mtk-disp.c 		mtk_disp_pwm_update_bits(mdp, mdp->data->commit,
mdp               120 drivers/pwm/pwm-mtk-disp.c 					 mdp->data->commit_mask,
mdp               121 drivers/pwm/pwm-mtk-disp.c 					 mdp->data->commit_mask);
mdp               122 drivers/pwm/pwm-mtk-disp.c 		mtk_disp_pwm_update_bits(mdp, mdp->data->commit,
mdp               123 drivers/pwm/pwm-mtk-disp.c 					 mdp->data->commit_mask,
mdp               127 drivers/pwm/pwm-mtk-disp.c 	clk_disable(mdp->clk_mm);
mdp               128 drivers/pwm/pwm-mtk-disp.c 	clk_disable(mdp->clk_main);
mdp               135 drivers/pwm/pwm-mtk-disp.c 	struct mtk_disp_pwm *mdp = to_mtk_disp_pwm(chip);
mdp               138 drivers/pwm/pwm-mtk-disp.c 	err = clk_enable(mdp->clk_main);
mdp               142 drivers/pwm/pwm-mtk-disp.c 	err = clk_enable(mdp->clk_mm);
mdp               144 drivers/pwm/pwm-mtk-disp.c 		clk_disable(mdp->clk_main);
mdp               148 drivers/pwm/pwm-mtk-disp.c 	mtk_disp_pwm_update_bits(mdp, DISP_PWM_EN, mdp->data->enable_mask,
mdp               149 drivers/pwm/pwm-mtk-disp.c 				 mdp->data->enable_mask);
mdp               156 drivers/pwm/pwm-mtk-disp.c 	struct mtk_disp_pwm *mdp = to_mtk_disp_pwm(chip);
mdp               158 drivers/pwm/pwm-mtk-disp.c 	mtk_disp_pwm_update_bits(mdp, DISP_PWM_EN, mdp->data->enable_mask,
mdp               161 drivers/pwm/pwm-mtk-disp.c 	clk_disable(mdp->clk_mm);
mdp               162 drivers/pwm/pwm-mtk-disp.c 	clk_disable(mdp->clk_main);
mdp               174 drivers/pwm/pwm-mtk-disp.c 	struct mtk_disp_pwm *mdp;
mdp               178 drivers/pwm/pwm-mtk-disp.c 	mdp = devm_kzalloc(&pdev->dev, sizeof(*mdp), GFP_KERNEL);
mdp               179 drivers/pwm/pwm-mtk-disp.c 	if (!mdp)
mdp               182 drivers/pwm/pwm-mtk-disp.c 	mdp->data = of_device_get_match_data(&pdev->dev);
mdp               185 drivers/pwm/pwm-mtk-disp.c 	mdp->base = devm_ioremap_resource(&pdev->dev, r);
mdp               186 drivers/pwm/pwm-mtk-disp.c 	if (IS_ERR(mdp->base))
mdp               187 drivers/pwm/pwm-mtk-disp.c 		return PTR_ERR(mdp->base);
mdp               189 drivers/pwm/pwm-mtk-disp.c 	mdp->clk_main = devm_clk_get(&pdev->dev, "main");
mdp               190 drivers/pwm/pwm-mtk-disp.c 	if (IS_ERR(mdp->clk_main))
mdp               191 drivers/pwm/pwm-mtk-disp.c 		return PTR_ERR(mdp->clk_main);
mdp               193 drivers/pwm/pwm-mtk-disp.c 	mdp->clk_mm = devm_clk_get(&pdev->dev, "mm");
mdp               194 drivers/pwm/pwm-mtk-disp.c 	if (IS_ERR(mdp->clk_mm))
mdp               195 drivers/pwm/pwm-mtk-disp.c 		return PTR_ERR(mdp->clk_mm);
mdp               197 drivers/pwm/pwm-mtk-disp.c 	ret = clk_prepare(mdp->clk_main);
mdp               201 drivers/pwm/pwm-mtk-disp.c 	ret = clk_prepare(mdp->clk_mm);
mdp               205 drivers/pwm/pwm-mtk-disp.c 	mdp->chip.dev = &pdev->dev;
mdp               206 drivers/pwm/pwm-mtk-disp.c 	mdp->chip.ops = &mtk_disp_pwm_ops;
mdp               207 drivers/pwm/pwm-mtk-disp.c 	mdp->chip.base = -1;
mdp               208 drivers/pwm/pwm-mtk-disp.c 	mdp->chip.npwm = 1;
mdp               210 drivers/pwm/pwm-mtk-disp.c 	ret = pwmchip_add(&mdp->chip);
mdp               216 drivers/pwm/pwm-mtk-disp.c 	platform_set_drvdata(pdev, mdp);
mdp               222 drivers/pwm/pwm-mtk-disp.c 	if (!mdp->data->has_commit) {
mdp               223 drivers/pwm/pwm-mtk-disp.c 		mtk_disp_pwm_update_bits(mdp, mdp->data->bls_debug,
mdp               224 drivers/pwm/pwm-mtk-disp.c 					 mdp->data->bls_debug_mask,
mdp               225 drivers/pwm/pwm-mtk-disp.c 					 mdp->data->bls_debug_mask);
mdp               226 drivers/pwm/pwm-mtk-disp.c 		mtk_disp_pwm_update_bits(mdp, mdp->data->con0,
mdp               227 drivers/pwm/pwm-mtk-disp.c 					 mdp->data->con0_sel,
mdp               228 drivers/pwm/pwm-mtk-disp.c 					 mdp->data->con0_sel);
mdp               234 drivers/pwm/pwm-mtk-disp.c 	clk_unprepare(mdp->clk_mm);
mdp               236 drivers/pwm/pwm-mtk-disp.c 	clk_unprepare(mdp->clk_main);
mdp               242 drivers/pwm/pwm-mtk-disp.c 	struct mtk_disp_pwm *mdp = platform_get_drvdata(pdev);
mdp               245 drivers/pwm/pwm-mtk-disp.c 	ret = pwmchip_remove(&mdp->chip);
mdp               246 drivers/pwm/pwm-mtk-disp.c 	clk_unprepare(mdp->clk_mm);
mdp               247 drivers/pwm/pwm-mtk-disp.c 	clk_unprepare(mdp->clk_main);
mdp               448 drivers/scsi/advansys.c 		} mdp;
mdp              2281 drivers/scsi/lpfc/lpfc_init.c lpfc_get_hba_model_desc(struct lpfc_hba *phba, uint8_t *mdp, uint8_t *descp)
mdp              2294 drivers/scsi/lpfc/lpfc_init.c 	if (mdp && mdp[0] != '\0'
mdp              2512 drivers/scsi/lpfc/lpfc_init.c 	if (mdp && mdp[0] == '\0')
mdp              2513 drivers/scsi/lpfc/lpfc_init.c 		snprintf(mdp, 79,"%s", m.name);