Home
last modified time | relevance | path

Searched refs:nr (Results 1 – 19 of 19) sorted by relevance

/drivers/hdf_core/adapter/khdf/liteos_m/osal/include/
Dosal_atomic_def.h49 #define OSAL_BIT_MASK(nr) (1UL << ((nr) % OSAL_BITS_PER_LONG)) argument
50 #define OSAL_BIT_WORD(nr) ((nr) / OSAL_BITS_PER_LONG) argument
51 #define OSAL_BITOP_WORD(nr) ((nr) / OSAL_BITS_PER_LONG) argument
53 static inline int32_t OsalTestBitWrapper(unsigned long nr, const volatile unsigned long *addr) in OsalTestBitWrapper() argument
55 return (1UL & (addr[OSAL_BIT_WORD(nr)] >> (nr & (OSAL_BITS_PER_LONG - 1)))); in OsalTestBitWrapper()
58 static inline int32_t OsalTestSetBitWrapper(unsigned long nr, volatile unsigned long *addr) in OsalTestSetBitWrapper() argument
62 const unsigned long mask = OSAL_BIT_MASK(nr); in OsalTestSetBitWrapper()
63 unsigned long *p = ((unsigned long *)addr) + OSAL_BIT_WORD(nr); in OsalTestSetBitWrapper()
71 static inline int32_t OsalTestClearBitWrapper(unsigned long nr, volatile unsigned long *addr) in OsalTestClearBitWrapper() argument
75 const unsigned long mask = OSAL_BIT_MASK(nr); in OsalTestClearBitWrapper()
[all …]
/drivers/hdf_core/adapter/khdf/uniproton/osal/include/
Dosal_atomic_def.h49 #define OSAL_BIT_MASK(nr) (1UL << ((nr) % OSAL_BITS_PER_LONG)) argument
50 #define OSAL_BIT_WORD(nr) ((nr) / OSAL_BITS_PER_LONG) argument
51 #define OSAL_BITOP_WORD(nr) ((nr) / OSAL_BITS_PER_LONG) argument
53 static inline int32_t OsalTestBitWrapper(unsigned long nr, const volatile unsigned long *addr) in OsalTestBitWrapper() argument
55 return (1UL & (addr[OSAL_BIT_WORD(nr)] >> (nr & (OSAL_BITS_PER_LONG - 1)))); in OsalTestBitWrapper()
58 static inline int32_t OsalTestSetBitWrapper(unsigned long nr, volatile unsigned long *addr) in OsalTestSetBitWrapper() argument
62 const unsigned long mask = OSAL_BIT_MASK(nr); in OsalTestSetBitWrapper()
63 unsigned long *p = ((unsigned long *)addr) + OSAL_BIT_WORD(nr); in OsalTestSetBitWrapper()
71 static inline int32_t OsalTestClearBitWrapper(unsigned long nr, volatile unsigned long *addr) in OsalTestClearBitWrapper() argument
75 const unsigned long mask = OSAL_BIT_MASK(nr); in OsalTestClearBitWrapper()
[all …]
/drivers/hdf_core/adapter/khdf/liteos/osal/include/
Dosal_atomic_def.h49 #define OSAL_BIT_MASK(nr) (1UL << ((nr) % OSAL_BITS_PER_LONG)) argument
50 #define OSAL_BIT_WORD(nr) ((nr) / OSAL_BITS_PER_LONG) argument
51 #define OSAL_BITOP_WORD(nr) ((nr) / OSAL_BITS_PER_LONG) argument
53 static inline int32_t OsalTestBitWrapper(unsigned long nr, const volatile unsigned long *addr) in OsalTestBitWrapper() argument
55 return (1UL & (addr[OSAL_BIT_WORD(nr)] >> (nr & (OSAL_BITS_PER_LONG - 1)))); in OsalTestBitWrapper()
58 static inline int32_t OsalTestSetBitWrapper(unsigned long nr, volatile unsigned long *addr) in OsalTestSetBitWrapper() argument
62 const unsigned long mask = OSAL_BIT_MASK(nr); in OsalTestSetBitWrapper()
63 unsigned long *p = ((unsigned long *)addr) + OSAL_BIT_WORD(nr); in OsalTestSetBitWrapper()
71 static inline int32_t OsalTestClearBitWrapper(unsigned long nr, volatile unsigned long *addr) in OsalTestClearBitWrapper() argument
75 const unsigned long mask = OSAL_BIT_MASK(nr); in OsalTestClearBitWrapper()
[all …]
/drivers/hdf_core/interfaces/inner_api/osal/uhdf/
Dosal_atomic_def.h29 static inline int32_t BitDoNotSupport(int nr, unsigned long *addr) in BitDoNotSupport() argument
31 (void)nr; in BitDoNotSupport()
35 #define OsalTestBitWrapper(nr, addr) BitDoNotSupport(nr, addr) argument
36 #define OsalTestSetBitWrapper(nr, addr) BitDoNotSupport(nr, addr) argument
37 #define OsalTestClearBitWrapper(nr, addr) BitDoNotSupport(nr, addr) argument
38 #define OsalClearBitWrapper(nr, addr) BitDoNotSupport(nr, addr) argument
/drivers/hdf_core/interfaces/inner_api/osal/shared/
Dosal_atomic.h136 #define OsalTestBit(nr, addr) OsalTestBitWrapper(nr, addr) argument
149 #define OsalTestSetBit(nr, addr) OsalTestSetBitWrapper(nr, addr) argument
162 #define OsalTestClearBit(nr, addr) OsalTestClearBitWrapper(nr, addr) argument
173 #define OsalClearBit(nr, addr) OsalClearBitWrapper(nr, addr) argument
/drivers/hdf_core/adapter/khdf/linux/osal/include/
Dosal_atomic_def.h35 #define OsalTestBitWrapper(nr, addr) test_bit(nr, addr) argument
36 #define OsalTestSetBitWrapper(nr, addr) test_and_change_bit(nr, addr) argument
37 #define OsalTestClearBitWrapper(nr, addr) test_and_clear_bit(nr, addr) argument
38 #define OsalClearBitWrapper(nr, addr) clear_bit(nr, addr) argument
/drivers/hdf_core/adapter/uhdf2/security/src/
Dhdf_security.c47 #define BIT_MASK(nr) (1UL << ((nr) % BITS_PER_LONG)) argument
48 #define BIT_WORD(nr) ((nr) / BITS_PER_LONG) argument
96 static void HdfSetBit(uint32_t nr, volatile uint64_t *addr) in HdfSetBit() argument
98 unsigned long mask = BIT_MASK(nr); in HdfSetBit()
99 unsigned long *p = ((unsigned long *)addr) + BIT_WORD(nr); in HdfSetBit()
/drivers/hdf_core/framework/core/sec/include/
Dhdf_sec.h37 #define HDF_BITS_TO_LONGS(nr) HDF_DIV_ROUND_UP(nr, HDF_BITS_PER_BYTE * sizeof(uint64_t)) argument
/drivers/hdf_core/framework/model/input/driver/
Dhdf_input_device_manager.h32 #define DIV_ROUND_UP(nr, d) (((nr) + (d) - 1) / (d)) argument
40 #define SET_BIT(nr) (1UL << ((nr) % BITS_PER_LONG)) argument
Dhdf_hid_adapter.h17 #define DIV_ROUND_UP(nr, d) (((nr) + (d) - 1) / (d)) argument
/drivers/peripheral/input/interfaces/include/
Dinput_type.h71 #define DIV_ROUND_UP(nr, d) (((nr) + (d) - 1) / (d)) argument
/drivers/hdf_core/adapter/khdf/linux/platform/i2c/
Di2c_adapter.c107 cntlr = I2cCntlrGet(adapter->nr); in LinuxI2cRemove()
143 cntlr->busId = adapter->nr; in LinuxI2cProbe()
/drivers/interface/ril/v1_2/
DTypes.idl185 struct CellListRatNr_1_2 nr;
292 struct CellRatNr_1_2 nr;
DIRil.idl104 * @brief Get nr ssbid info.
DIRilCallback.idl94 * @brief Callback for the response of querying nr ssd id information.
/drivers/interface/ril/v1_1/
DTypes.idl2217 struct NrRssi nr;
2644 struct CellListRatNr nr;
2976 struct CellRatNr nr;
3053 struct CellRatNr_1_1 nr;
DIRil.idl1719 * @brief Set nr option mode.
1733 * @brief Get nr option mode.
DIRilCallback.idl1731 * @brief Callback for the response of set nr option mode.
1742 * @brief Callback for the response of get nr option mode.
/drivers/interface/ril/v1_0/
DTypes.idl2177 struct NrRssi nr;
2604 struct CellListRatNr nr;
2936 struct CellRatNr nr;