~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

TOMOYO Linux Cross Reference
Linux/include/linux/soc/mediatek/mtk-mutex.h

Version: ~ [ linux-6.12-rc7 ] ~ [ linux-6.11.7 ] ~ [ linux-6.10.14 ] ~ [ linux-6.9.12 ] ~ [ linux-6.8.12 ] ~ [ linux-6.7.12 ] ~ [ linux-6.6.60 ] ~ [ linux-6.5.13 ] ~ [ linux-6.4.16 ] ~ [ linux-6.3.13 ] ~ [ linux-6.2.16 ] ~ [ linux-6.1.116 ] ~ [ linux-6.0.19 ] ~ [ linux-5.19.17 ] ~ [ linux-5.18.19 ] ~ [ linux-5.17.15 ] ~ [ linux-5.16.20 ] ~ [ linux-5.15.171 ] ~ [ linux-5.14.21 ] ~ [ linux-5.13.19 ] ~ [ linux-5.12.19 ] ~ [ linux-5.11.22 ] ~ [ linux-5.10.229 ] ~ [ linux-5.9.16 ] ~ [ linux-5.8.18 ] ~ [ linux-5.7.19 ] ~ [ linux-5.6.19 ] ~ [ linux-5.5.19 ] ~ [ linux-5.4.285 ] ~ [ linux-5.3.18 ] ~ [ linux-5.2.21 ] ~ [ linux-5.1.21 ] ~ [ linux-5.0.21 ] ~ [ linux-4.20.17 ] ~ [ linux-4.19.323 ] ~ [ linux-4.18.20 ] ~ [ linux-4.17.19 ] ~ [ linux-4.16.18 ] ~ [ linux-4.15.18 ] ~ [ linux-4.14.336 ] ~ [ linux-4.13.16 ] ~ [ linux-4.12.14 ] ~ [ linux-4.11.12 ] ~ [ linux-4.10.17 ] ~ [ linux-4.9.337 ] ~ [ linux-4.4.302 ] ~ [ linux-3.10.108 ] ~ [ linux-2.6.32.71 ] ~ [ linux-2.6.0 ] ~ [ linux-2.4.37.11 ] ~ [ unix-v6-master ] ~ [ ccs-tools-1.8.12 ] ~ [ policy-sample ] ~
Architecture: ~ [ i386 ] ~ [ alpha ] ~ [ m68k ] ~ [ mips ] ~ [ ppc ] ~ [ sparc ] ~ [ sparc64 ] ~

Diff markup

Differences between /include/linux/soc/mediatek/mtk-mutex.h (Architecture ppc) and /include/linux/soc/mediatek/mtk-mutex.h (Architecture i386)


  1 /* SPDX-License-Identifier: GPL-2.0-only */         1 /* SPDX-License-Identifier: GPL-2.0-only */
  2 /*                                                  2 /*
  3  * Copyright (c) 2015 MediaTek Inc.                 3  * Copyright (c) 2015 MediaTek Inc.
  4  */                                                 4  */
  5                                                     5 
  6 #ifndef MTK_MUTEX_H                                 6 #ifndef MTK_MUTEX_H
  7 #define MTK_MUTEX_H                                 7 #define MTK_MUTEX_H
  8                                                     8 
  9 struct regmap;                                      9 struct regmap;
 10 struct device;                                     10 struct device;
 11 struct mtk_mutex;                                  11 struct mtk_mutex;
 12                                                    12 
 13 enum mtk_mutex_mod_index {                         13 enum mtk_mutex_mod_index {
 14         /* MDP table index */                      14         /* MDP table index */
 15         MUTEX_MOD_IDX_MDP_RDMA0,                   15         MUTEX_MOD_IDX_MDP_RDMA0,
 16         MUTEX_MOD_IDX_MDP_RSZ0,                    16         MUTEX_MOD_IDX_MDP_RSZ0,
 17         MUTEX_MOD_IDX_MDP_RSZ1,                    17         MUTEX_MOD_IDX_MDP_RSZ1,
 18         MUTEX_MOD_IDX_MDP_TDSHP0,                  18         MUTEX_MOD_IDX_MDP_TDSHP0,
 19         MUTEX_MOD_IDX_MDP_WROT0,                   19         MUTEX_MOD_IDX_MDP_WROT0,
 20         MUTEX_MOD_IDX_MDP_WDMA,                    20         MUTEX_MOD_IDX_MDP_WDMA,
 21         MUTEX_MOD_IDX_MDP_AAL0,                    21         MUTEX_MOD_IDX_MDP_AAL0,
 22         MUTEX_MOD_IDX_MDP_CCORR0,                  22         MUTEX_MOD_IDX_MDP_CCORR0,
 23         MUTEX_MOD_IDX_MDP_HDR0,                    23         MUTEX_MOD_IDX_MDP_HDR0,
 24         MUTEX_MOD_IDX_MDP_COLOR0,                  24         MUTEX_MOD_IDX_MDP_COLOR0,
 25         MUTEX_MOD_IDX_MDP_RDMA1,                   25         MUTEX_MOD_IDX_MDP_RDMA1,
 26         MUTEX_MOD_IDX_MDP_RDMA2,                   26         MUTEX_MOD_IDX_MDP_RDMA2,
 27         MUTEX_MOD_IDX_MDP_RDMA3,                   27         MUTEX_MOD_IDX_MDP_RDMA3,
 28         MUTEX_MOD_IDX_MDP_STITCH0,                 28         MUTEX_MOD_IDX_MDP_STITCH0,
 29         MUTEX_MOD_IDX_MDP_FG0,                     29         MUTEX_MOD_IDX_MDP_FG0,
 30         MUTEX_MOD_IDX_MDP_FG1,                     30         MUTEX_MOD_IDX_MDP_FG1,
 31         MUTEX_MOD_IDX_MDP_FG2,                     31         MUTEX_MOD_IDX_MDP_FG2,
 32         MUTEX_MOD_IDX_MDP_FG3,                     32         MUTEX_MOD_IDX_MDP_FG3,
 33         MUTEX_MOD_IDX_MDP_HDR1,                    33         MUTEX_MOD_IDX_MDP_HDR1,
 34         MUTEX_MOD_IDX_MDP_HDR2,                    34         MUTEX_MOD_IDX_MDP_HDR2,
 35         MUTEX_MOD_IDX_MDP_HDR3,                    35         MUTEX_MOD_IDX_MDP_HDR3,
 36         MUTEX_MOD_IDX_MDP_AAL1,                    36         MUTEX_MOD_IDX_MDP_AAL1,
 37         MUTEX_MOD_IDX_MDP_AAL2,                    37         MUTEX_MOD_IDX_MDP_AAL2,
 38         MUTEX_MOD_IDX_MDP_AAL3,                    38         MUTEX_MOD_IDX_MDP_AAL3,
 39         MUTEX_MOD_IDX_MDP_RSZ2,                    39         MUTEX_MOD_IDX_MDP_RSZ2,
 40         MUTEX_MOD_IDX_MDP_RSZ3,                    40         MUTEX_MOD_IDX_MDP_RSZ3,
 41         MUTEX_MOD_IDX_MDP_MERGE2,                  41         MUTEX_MOD_IDX_MDP_MERGE2,
 42         MUTEX_MOD_IDX_MDP_MERGE3,                  42         MUTEX_MOD_IDX_MDP_MERGE3,
 43         MUTEX_MOD_IDX_MDP_TDSHP1,                  43         MUTEX_MOD_IDX_MDP_TDSHP1,
 44         MUTEX_MOD_IDX_MDP_TDSHP2,                  44         MUTEX_MOD_IDX_MDP_TDSHP2,
 45         MUTEX_MOD_IDX_MDP_TDSHP3,                  45         MUTEX_MOD_IDX_MDP_TDSHP3,
 46         MUTEX_MOD_IDX_MDP_COLOR1,                  46         MUTEX_MOD_IDX_MDP_COLOR1,
 47         MUTEX_MOD_IDX_MDP_COLOR2,                  47         MUTEX_MOD_IDX_MDP_COLOR2,
 48         MUTEX_MOD_IDX_MDP_COLOR3,                  48         MUTEX_MOD_IDX_MDP_COLOR3,
 49         MUTEX_MOD_IDX_MDP_OVL0,                    49         MUTEX_MOD_IDX_MDP_OVL0,
 50         MUTEX_MOD_IDX_MDP_OVL1,                    50         MUTEX_MOD_IDX_MDP_OVL1,
 51         MUTEX_MOD_IDX_MDP_PAD0,                    51         MUTEX_MOD_IDX_MDP_PAD0,
 52         MUTEX_MOD_IDX_MDP_PAD1,                    52         MUTEX_MOD_IDX_MDP_PAD1,
 53         MUTEX_MOD_IDX_MDP_PAD2,                    53         MUTEX_MOD_IDX_MDP_PAD2,
 54         MUTEX_MOD_IDX_MDP_PAD3,                    54         MUTEX_MOD_IDX_MDP_PAD3,
 55         MUTEX_MOD_IDX_MDP_TCC0,                    55         MUTEX_MOD_IDX_MDP_TCC0,
 56         MUTEX_MOD_IDX_MDP_TCC1,                    56         MUTEX_MOD_IDX_MDP_TCC1,
 57         MUTEX_MOD_IDX_MDP_WROT1,                   57         MUTEX_MOD_IDX_MDP_WROT1,
 58         MUTEX_MOD_IDX_MDP_WROT2,                   58         MUTEX_MOD_IDX_MDP_WROT2,
 59         MUTEX_MOD_IDX_MDP_WROT3,                   59         MUTEX_MOD_IDX_MDP_WROT3,
 60                                                    60 
 61         MUTEX_MOD_IDX_MAX               /* ALW     61         MUTEX_MOD_IDX_MAX               /* ALWAYS keep at the end */
 62 };                                                 62 };
 63                                                    63 
 64 enum mtk_mutex_sof_index {                         64 enum mtk_mutex_sof_index {
 65         MUTEX_SOF_IDX_SINGLE_MODE,                 65         MUTEX_SOF_IDX_SINGLE_MODE,
 66                                                    66 
 67         MUTEX_SOF_IDX_MAX               /* ALW     67         MUTEX_SOF_IDX_MAX               /* ALWAYS keep at the end */
 68 };                                                 68 };
 69                                                    69 
 70 struct mtk_mutex *mtk_mutex_get(struct device      70 struct mtk_mutex *mtk_mutex_get(struct device *dev);
 71 int mtk_mutex_prepare(struct mtk_mutex *mutex)     71 int mtk_mutex_prepare(struct mtk_mutex *mutex);
 72 void mtk_mutex_add_comp(struct mtk_mutex *mute     72 void mtk_mutex_add_comp(struct mtk_mutex *mutex,
 73                         enum mtk_ddp_comp_id i     73                         enum mtk_ddp_comp_id id);
 74 void mtk_mutex_enable(struct mtk_mutex *mutex)     74 void mtk_mutex_enable(struct mtk_mutex *mutex);
 75 int mtk_mutex_enable_by_cmdq(struct mtk_mutex      75 int mtk_mutex_enable_by_cmdq(struct mtk_mutex *mutex,
 76                              void *pkt);           76                              void *pkt);
 77 void mtk_mutex_disable(struct mtk_mutex *mutex     77 void mtk_mutex_disable(struct mtk_mutex *mutex);
 78 void mtk_mutex_remove_comp(struct mtk_mutex *m     78 void mtk_mutex_remove_comp(struct mtk_mutex *mutex,
 79                            enum mtk_ddp_comp_i     79                            enum mtk_ddp_comp_id id);
 80 void mtk_mutex_unprepare(struct mtk_mutex *mut     80 void mtk_mutex_unprepare(struct mtk_mutex *mutex);
 81 void mtk_mutex_put(struct mtk_mutex *mutex);       81 void mtk_mutex_put(struct mtk_mutex *mutex);
 82 void mtk_mutex_acquire(struct mtk_mutex *mutex     82 void mtk_mutex_acquire(struct mtk_mutex *mutex);
 83 void mtk_mutex_release(struct mtk_mutex *mutex     83 void mtk_mutex_release(struct mtk_mutex *mutex);
 84 int mtk_mutex_write_mod(struct mtk_mutex *mute     84 int mtk_mutex_write_mod(struct mtk_mutex *mutex,
 85                         enum mtk_mutex_mod_ind     85                         enum mtk_mutex_mod_index idx,
 86                         bool clear);               86                         bool clear);
 87 int mtk_mutex_write_sof(struct mtk_mutex *mute     87 int mtk_mutex_write_sof(struct mtk_mutex *mutex,
 88                         enum mtk_mutex_sof_ind     88                         enum mtk_mutex_sof_index idx);
 89                                                    89 
 90 #endif /* MTK_MUTEX_H */                           90 #endif /* MTK_MUTEX_H */
 91                                                    91 

~ [ source navigation ] ~ [ diff markup ] ~ [ identifier search ] ~

kernel.org | git.kernel.org | LWN.net | Project Home | SVN repository | Mail admin

Linux® is a registered trademark of Linus Torvalds in the United States and other countries.
TOMOYO® is a registered trademark of NTT DATA CORPORATION.

sflogo.php