Home
last modified time | relevance | path

Searched refs:addr (Results 1 – 25 of 158) sorted by relevance

1234567

/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
32 (void)addr; 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/framework/support/platform/src/i3c/
Di3c_core.c28 int I3cCheckReservedAddr(uint16_t addr) in I3cCheckReservedAddr() argument
30 if ((addr == I3C_RESERVED_ADDR_7H00) || (addr == I3C_RESERVED_ADDR_7H01) || in I3cCheckReservedAddr()
31 (addr == I3C_RESERVED_ADDR_7H02) || (addr == I3C_RESERVED_ADDR_7H3E) || in I3cCheckReservedAddr()
32 (addr == I3C_RESERVED_ADDR_7H5E) || (addr == I3C_RESERVED_ADDR_7H6E) || in I3cCheckReservedAddr()
33 (addr == I3C_RESERVED_ADDR_7H76) || (addr == I3C_RESERVED_ADDR_7H78) || in I3cCheckReservedAddr()
34 (addr == I3C_RESERVED_ADDR_7H79) || (addr == I3C_RESERVED_ADDR_7H7A) || in I3cCheckReservedAddr()
35 (addr == I3C_RESERVED_ADDR_7H7B) || (addr == I3C_RESERVED_ADDR_7H7C) || in I3cCheckReservedAddr()
36 (addr == I3C_RESERVED_ADDR_7H7D) || (addr == I3C_RESERVED_ADDR_7H7E) || in I3cCheckReservedAddr()
37 (addr == I3C_RESERVED_ADDR_7H7F)) { in I3cCheckReservedAddr()
97 static int32_t GetAddrStatus(const struct I3cCntlr *cntlr, uint16_t addr) in GetAddrStatus() argument
[all …]
Di3c_if.c66 int32_t I3cRequestIbi(DevHandle handle, uint16_t addr, I3cIbiFunc func, uint32_t payload) in I3cRequestIbi() argument
68 return I3cCntlrRequestIbi((struct I3cCntlr *)handle, addr, func, payload); in I3cRequestIbi()
71 int32_t I3cFreeIbi(DevHandle handle, uint16_t addr) in I3cFreeIbi() argument
73 return I3cCntlrFreeIbi((struct I3cCntlr *)handle, addr); in I3cFreeIbi()
/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/framework/model/storage/include/mtd/
Dmtd_core.h58 off_t addr; member
81 off_t addr; member
103 int32_t (*erase)(struct MtdDevice *mtdDevice, off_t addr, size_t len, off_t *faddr);
105 bool (*isBadBlock)(struct MtdDevice *mtdDevice, off_t addr);
106 int32_t (*markBadBlock)(struct MtdDevice *mtdDevice, off_t addr);
331 bool MtdDeviceIsBadBlock(struct MtdDevice *mtdDevice, off_t addr);
341 int32_t MtdDeviceMarkBadBlock(struct MtdDevice *mtdDevice, off_t addr);
368 static inline bool MtdDeviceIsPageAligned(struct MtdDevice *mtdDevice, off_t addr) in MtdDeviceIsPageAligned() argument
370 return (((uint64_t)addr & (mtdDevice->writeSize - 1)) == 0); in MtdDeviceIsPageAligned()
377 static inline size_t MtdDeviceAddrToPage(struct MtdDevice *mtdDevice, off_t addr) in MtdDeviceAddrToPage() argument
[all …]
/drivers/hdf_core/adapter/khdf/liteos_m/osal/include/
Dosal_atomic_def.h53 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
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
76 unsigned long *p = ((unsigned long *)addr) + OSAL_BIT_WORD(nr); in OsalTestClearBitWrapper()
84 static inline void OsalClearBitWrapper(unsigned long nr, volatile unsigned long *addr) in OsalClearBitWrapper() argument
89 unsigned long *p = ((unsigned long *)addr) + OSAL_BIT_WORD(nr); in OsalClearBitWrapper()
/drivers/hdf_core/adapter/khdf/uniproton/osal/include/
Dosal_atomic_def.h53 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
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
76 unsigned long *p = ((unsigned long *)addr) + OSAL_BIT_WORD(nr); in OsalTestClearBitWrapper()
84 static inline void OsalClearBitWrapper(unsigned long nr, volatile unsigned long *addr) in OsalClearBitWrapper() argument
89 unsigned long *p = ((unsigned long *)addr) + OSAL_BIT_WORD(nr); in OsalClearBitWrapper()
/drivers/hdf_core/framework/model/storage/src/mtd/
Dmtd_core.c233 static int32_t MtdDeviceEraseUnlock(struct MtdDevice *mtdDevice, off_t addr, size_t len, off_t *fad… in MtdDeviceEraseUnlock() argument
247 ret = mtdDevice->ops->erase(mtdDevice, addr, len, faddr); in MtdDeviceEraseUnlock()
249 HDF_LOGE("MtdDeviceEraseUnlock: erase mtd device fail, addr: %jx, ret: %d!", addr, ret); in MtdDeviceEraseUnlock()
254 ssize_t MtdDeviceErase(struct MtdDevice *mtdDevice, off_t addr, size_t len, off_t *failAddr) in MtdDeviceErase() argument
262 ret = MtdDeviceEraseUnlock(mtdDevice, addr, len, failAddr); in MtdDeviceErase()
267 static bool MtdDeviceIsBadBlockUnlocked(struct MtdDevice *mtdDevice, off_t addr) in MtdDeviceIsBadBlockUnlocked() argument
270 return mtdDevice->ops->isBadBlock(mtdDevice, addr); in MtdDeviceIsBadBlockUnlocked()
275 static int32_t MtdDeviceMarkBadBlockUnlocked(struct MtdDevice *mtdDevice, off_t addr) in MtdDeviceMarkBadBlockUnlocked() argument
287 ret = mtdDevice->ops->markBadBlock(mtdDevice, addr); in MtdDeviceMarkBadBlockUnlocked()
289 … HDF_LOGE("MtdDeviceMarkBadBlockUnlocked: mark bad block fail, addr: %jx, ret: %d!", addr, ret); in MtdDeviceMarkBadBlockUnlocked()
[all …]
/drivers/hdf_core/adapter/khdf/liteos/osal/include/
Dosal_atomic_def.h53 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
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
76 unsigned long *p = ((unsigned long *)addr) + OSAL_BIT_WORD(nr); in OsalTestClearBitWrapper()
84 static inline void OsalClearBitWrapper(unsigned long nr, volatile unsigned long *addr) in OsalClearBitWrapper() argument
89 unsigned long *p = ((unsigned long *)addr) + OSAL_BIT_WORD(nr); in OsalClearBitWrapper()
/drivers/hdf_core/framework/model/input/driver/input_bus_ops/
Dinput_i2c_ops.c22 msg[0].addr = client->i2cCfg.addr; in InputI2cRead()
27 msg[1].addr = client->i2cCfg.addr; in InputI2cRead()
44 msg[0].addr = client->i2cCfg.addr; in InputI2cWrite()
/drivers/peripheral/codec/hal/v1.0/share_mem/src/
Dashmem_wrapper.cpp55 …uint8_t *addr = static_cast<uint8_t *>(mmap(nullptr, size, PROT_READ | PROT_WRITE, MAP_SHARED, fd,… in MapAshmemFd() local
56 return addr; in MapAshmemFd()
59 void UnmapAshmemFd(uint8_t *addr, int32_t size) in UnmapAshmemFd() argument
61 if (addr == nullptr) { in UnmapAshmemFd()
65 munmap(static_cast<void *>(addr), size); in UnmapAshmemFd()
/drivers/peripheral/usb/ddk/host/src/
Dddk_uevent_handle.c55 struct sockaddr_nl addr; in DdkUeventOpen() local
56 if (memset_s(&addr, sizeof(addr), 0, sizeof(addr)) != HDF_SUCCESS) { in DdkUeventOpen()
60 addr.nl_family = AF_NETLINK; in DdkUeventOpen()
61 addr.nl_pid = (uint32_t)getpid(); in DdkUeventOpen()
62 addr.nl_groups = UEVENT_SOCKET_GROUPS; in DdkUeventOpen()
84 if (bind(socketfd, (struct sockaddr *)&addr, sizeof(addr)) < 0) { in DdkUeventOpen()
188 struct sockaddr_nl addr; in DdkReadUeventMsg() local
189 (void)memset_s(&addr, sizeof(addr), 0, sizeof(addr)); in DdkReadUeventMsg()
192 msghdr.msg_name = &addr; in DdkReadUeventMsg()
193 msghdr.msg_namelen = sizeof(addr); in DdkReadUeventMsg()
/drivers/hdf_core/framework/test/unittest/platform/common/
Dsdio_test.c63 const uint32_t addr = TEST_SDIO_BASE_ADDR * TEST_FUNC_NUM + TEST_ADDR_OFFSET + TEST_ADDR_ADD; in TestSdioIncrAddrReadAndWriteOtherBytes() local
65 ret = SdioReadBytes(tester->handle, &data[0], addr, 1); in TestSdioIncrAddrReadAndWriteOtherBytes()
71 ret = SdioWriteBytes(tester->handle, &data[0], addr, 1); in TestSdioIncrAddrReadAndWriteOtherBytes()
84 uint32_t addr; in TestSdioIncrAddrReadAndWriteOneByte() local
86 addr = TEST_SDIO_BASE_ADDR * TEST_FUNC_NUM + TEST_ADDR_OFFSET; in TestSdioIncrAddrReadAndWriteOneByte()
88 ret = SdioReadBytes(tester->handle, &val, addr, 1); in TestSdioIncrAddrReadAndWriteOneByte()
95 ret = SdioWriteBytes(tester->handle, &val, addr, 1); in TestSdioIncrAddrReadAndWriteOneByte()
102 addr++; in TestSdioIncrAddrReadAndWriteOneByte()
103 ret = SdioReadBytes(tester->handle, &val, addr, 1); in TestSdioIncrAddrReadAndWriteOneByte()
110 addr++; in TestSdioIncrAddrReadAndWriteOneByte()
[all …]
/drivers/hdf_core/framework/model/network/wifi/bus/
Dhdf_usb_intf.c94 static int32_t HdfUsbReadN(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfUsbReadN() argument
97 (void)addr; in HdfUsbReadN()
104 static int32_t HdfUsbReadFunc0(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfUsbReadFunc0() argument
107 (void)addr; in HdfUsbReadFunc0()
114 static int32_t HdfUsbReadSpcReg(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint… in HdfUsbReadSpcReg() argument
117 (void)addr; in HdfUsbReadSpcReg()
125 static int32_t HdfUsbWriteN(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfUsbWriteN() argument
128 (void)addr; in HdfUsbWriteN()
135 static int32_t HdfUsbWriteFunc0(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf) in HdfUsbWriteFunc0() argument
138 (void)addr; in HdfUsbWriteFunc0()
[all …]
/drivers/hdf_core/framework/include/wifi/
Dhdf_ibus_intf.h52 int32_t (*readData)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf);
53 int32_t (*writeData)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf);
55 …int32_t (*bulkRead)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_len…
56 …int32_t (*bulkWrite)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf, uint32_t sg_le…
58 int32_t (*readFunc0)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf);
59 int32_t (*writeFunc0)(struct BusDev *dev, uint32_t addr, uint32_t cnt, uint8_t *buf);
/drivers/peripheral/bluetooth/audio/hal/hdi_passthrough/src/
Dbluetooth_a2dp_audio_src_observer_stub.cpp62 std::string addr = data.ReadString(); in OnConnectionStateChangedInner() local
65 OnConnectionStateChanged(RawAddress(addr), state); in OnConnectionStateChangedInner()
72 std::string addr = data.ReadString(); in OnPlayingStatusChangedInner() local
76 OnPlayingStatusChanged(RawAddress(addr), playingState, error); in OnPlayingStatusChangedInner()
83 std::string addr = data.ReadString(); in OnConfigurationChangedInner() local
87 OnConfigurationChanged(RawAddress(addr), info, error); in OnConfigurationChangedInner()
/drivers/hdf_core/framework/include/platform/
Dsdio_if.h158 int32_t SdioReadBytes(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size);
175 int32_t SdioWriteBytes(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size);
195 uint32_t addr, uint32_t size, uint32_t scatterLen);
215 uint32_t addr, uint32_t size, uint32_t scatterLen);
231 int32_t SdioReadBytesFromFunc0(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size);
247 int32_t SdioWriteBytesToFunc0(DevHandle handle, uint8_t *data, uint32_t addr, uint32_t size);
/drivers/hdf_core/framework/model/storage/src/mmc/
Dmmc_sdio.c15 uint8_t *data, uint32_t addr, uint32_t size) in SdioDeviceDefaultIncrAddrReadBytes() argument
37 return SdioReadWriteByte(cntlr, false, func->funcNum, addr, data); in SdioDeviceDefaultIncrAddrReadBytes()
39 info.addr = addr; in SdioDeviceDefaultIncrAddrReadBytes()
51 uint8_t *data, uint32_t addr, uint32_t size) in SdioDeviceDefaultIncrAddrWriteBytes() argument
73 return SdioReadWriteByte(cntlr, true, func->funcNum, addr, data); in SdioDeviceDefaultIncrAddrWriteBytes()
75 info.addr = addr; in SdioDeviceDefaultIncrAddrWriteBytes()
87 uint8_t *data, uint32_t addr, uint32_t size, uint32_t scatterLen) in SdioDeviceDefaultFixedAddrReadBytes() argument
108 info.addr = addr; in SdioDeviceDefaultFixedAddrReadBytes()
121 uint8_t *data, uint32_t addr, uint32_t size, uint32_t scatterLen) in SdioDeviceDefaultFixedAddrWriteBytes() argument
142 info.addr = addr; in SdioDeviceDefaultFixedAddrWriteBytes()
[all …]
/drivers/hdf_core/adapter/khdf/linux/model/camera/include/
Dcontig_dma.h21 struct dma_addr_t *addr = NULL; in ContigDmaGetAddr() local
28 addr = queue->memOps->getCookie(buffer->planes[planeId].memPriv); in ContigDmaGetAddr()
31 return addr; in ContigDmaGetAddr()
/drivers/peripheral/usb/ddk_service/src/
Dusb_ddk_hash.cpp36 hashVal = static_cast<uint64_t>(std::hash<uint64_t> {}(info.addr)); in UsbDdkHash()
41 int32_t UsbDdkUnHash(uint64_t hashVal, uint64_t &addr) in UsbDdkUnHash() argument
48 addr = mappedVal.addr; in UsbDdkUnHash()
/drivers/hdf_core/framework/support/platform/src/pcie/
Dpcie_if_u.c34 uintptr_t addr; member
206 param->dmaData = dma->addr; in PcieRegListener()
222 DevHandle handle, PcieCallbackFunc cb, struct HdfSBuf *data, uintptr_t addr, uint32_t len) in DmaToDevice() argument
232 if (!HdfSbufWriteBuffer(data, (const void *)addr, len)) { in DmaToDevice()
238 .addr = addr, in DmaToDevice()
246 DevHandle handle, PcieCallbackFunc cb, struct HdfSBuf *data, uintptr_t addr, uint32_t len) in DeviceToDma() argument
258 .addr = addr, in DeviceToDma()
265 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaMap() argument
276 if (addr == 0) { in PcieDmaMap()
287 ret = DeviceToDma(handle, cb, data, addr, len); in PcieDmaMap()
[all …]
Dpcie_if.c49 int32_t PcieDmaMap(DevHandle handle, PcieCallbackFunc cb, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaMap() argument
51 return PcieCntlrDmaMap((struct PcieCntlr *)handle, cb, addr, len, dir); in PcieDmaMap()
54 void PcieDmaUnmap(DevHandle handle, uintptr_t addr, uint32_t len, uint8_t dir) in PcieDmaUnmap() argument
56 PcieCntlrDmaUnmap((struct PcieCntlr *)handle, addr, len, dir); in PcieDmaUnmap()
/drivers/hdf_core/adapter/khdf/linux/model/storage/
Dsdio_adapter.c53 uint8_t *data, uint32_t addr, uint32_t size) in LinuxSdioIncrAddrReadBytes() argument
70 *data = sdio_readb(func, addr, &ret); in LinuxSdioIncrAddrReadBytes()
75 *output16 = sdio_readw(func, addr, &ret); in LinuxSdioIncrAddrReadBytes()
80 *output32 = sdio_readl(func, addr, &ret); in LinuxSdioIncrAddrReadBytes()
83 return sdio_memcpy_fromio(func, data, addr, size); in LinuxSdioIncrAddrReadBytes()
87 uint8_t *data, uint32_t addr, uint32_t size) in LinuxSdioIncrAddrWriteBytes() argument
102 sdio_writeb(func, *data, addr, &ret); in LinuxSdioIncrAddrWriteBytes()
106 sdio_writew(func, *(uint16_t *)data, addr, &ret); in LinuxSdioIncrAddrWriteBytes()
110 sdio_writel(func, *(uint32_t *)data, addr, &ret); in LinuxSdioIncrAddrWriteBytes()
113 return sdio_memcpy_toio(func, addr, data, size); in LinuxSdioIncrAddrWriteBytes()
[all …]
/drivers/hdf_core/framework/model/storage/include/mmc/
Dmmc_sdio.h74 uint8_t *data, uint32_t addr, uint32_t size);
76 uint8_t *data, uint32_t addr, uint32_t size);
78 uint8_t *data, uint32_t addr, uint32_t size, uint32_t scatterLen);
80 uint8_t *data, uint32_t addr, uint32_t size, uint32_t scatterLen);
82 uint8_t *data, uint32_t addr, uint32_t size);
84 uint8_t *data, uint32_t addr, uint32_t size);

1234567