Home
last modified time | relevance | path

Searched refs:ops (Results 1 – 25 of 784) sorted by relevance

12345678910>>...32

/bsp/nxp/imx/imxrt/libraries/drivers/
A Ddrv_rtl8211f.c131 if (4 != bus->ops->read(bus, addr, reg_id, value, 4)) in read_reg()
140 if (4 != bus->ops->write(bus, addr, reg_id, &value, 4)) in write_reg()
149 return phy_rtl8211f.ops->write(PHY_MMD_ACCESS_DATA_REG, data); in PHY_RTL8211F_MMD_WriteData()
159 result = phy_rtl8211f.ops->write(PHY_MMD_ACCESS_CONTROL_REG, device); in PHY_RTL8211F_MMD_SetDevice()
166 result = phy_rtl8211f.ops->write(PHY_MMD_ACCESS_DATA_REG, addr); in PHY_RTL8211F_MMD_SetDevice()
210 ret = mdio_bus->ops->init(mdio_bus, src_clock_hz); in rt_phy_init()
219 result = phy_rtl8211f.ops->read(NULL, PHY_ID1_REG, &regValue); in rt_phy_init()
280 result = phy_rtl8211f.ops->write(PHY_PAGE_SELECT_REG, 0x0); in rt_phy_init()
294 result = phy_rtl8211f.ops->write(PHY_AUTONEG_ADVERTISE_REG, in rt_phy_init()
383 result = phy_rtl8211f.ops->read(PHY_SPECIFIC_STATUS_REG, &regValue); in get_link_status()
[all …]
A Ddrv_ksz8081.c96 if (4 != bus->ops->read(bus, addr, reg_id, value, 4)) in read_reg()
105 if (4 != bus->ops->write(bus, addr, reg_id, &value, 4)) in write_reg()
135 ret = mdio_bus->ops->init(mdio_bus, src_clock_hz); in rt_phy_init()
144 phy_ksz8081.ops->read(NULL, PHY_ID1_REG, &id_reg); in rt_phy_init()
160 result = phy_ksz8081.ops->read(NULL, PHY_CONTROL2_REG, &data); in rt_phy_init()
173 result = phy_ksz8081.ops->write(NULL, PHY_AUTONEG_ADVERTISE_REG, in rt_phy_init()
259 result = phy_ksz8081.ops->read(NULL, PHY_CONTROL2_REG, &data); in rt_phy_loopback()
282 result = phy_ksz8081.ops->read(NULL, PHY_CONTROL2_REG, &data); in rt_phy_loopback()
298 result = phy_ksz8081.ops->read(NULL, PHY_BASICSTATUS_REG, &data); in get_link_status()
320 result = phy_ksz8081.ops->read(NULL, PHY_CONTROL1_REG, &ctl_reg); in get_link_speed_duplex()
[all …]
/bsp/allwinner/libraries/sunxi-hal/hal/source/ccmu/
A Dhal_reset.c92 if (rcdev->ops && rcdev->ops->assert) in hal_reset_control_assert()
94 return rcdev->ops->assert(rcdev, reset->id); in hal_reset_control_assert()
111 if (rcdev->ops && rcdev->ops->deassert) in hal_reset_control_deassert()
113 return rcdev->ops->deassert(rcdev, reset->id); in hal_reset_control_deassert()
130 if (rcdev->ops && rcdev->ops->deassert) in hal_reset_control_reset()
132 return rcdev->ops->reset(rcdev, reset->id); in hal_reset_control_reset()
151 if (rcdev->ops && rcdev->ops->deassert) in hal_reset_control_status()
153 return rcdev->ops->status(rcdev, reset->id); in hal_reset_control_status()
/bsp/rockchip/common/drivers/
A Ddrv_cache.c130 void rt_hw_cpu_icache_ops(int ops, void *addr, int size) in rt_hw_cpu_icache_ops() argument
132 if (ops & RT_HW_CACHE_INVALIDATE) in rt_hw_cpu_icache_ops()
175 void rt_hw_cpu_dcache_ops(int ops, void *addr, int size) in rt_hw_cpu_dcache_ops() argument
177 if ((ops & RT_HW_CACHE_FLUSH) && (ops & RT_HW_CACHE_INVALIDATE)) in rt_hw_cpu_dcache_ops()
181 else if (ops & RT_HW_CACHE_FLUSH) in rt_hw_cpu_dcache_ops()
185 else if (ops & RT_HW_CACHE_INVALIDATE) in rt_hw_cpu_dcache_ops()
264 rt_weak void rt_hw_cpu_icache_ops(int ops, void *addr, int size) in rt_hw_cpu_icache_ops() argument
281 rt_weak void rt_hw_cpu_dcache_ops(int ops, void *addr, int size) in rt_hw_cpu_dcache_ops() argument
/bsp/allwinner/libraries/sunxi-hal/include/hal/
A Dsunxi_hal_regulator.h24 struct regulator_ops *ops; member
163 if(rdev && rdev->ops && rdev->ops->get_voltage) in hal_regulator_get_voltage()
165 return rdev->ops->get_voltage(rdev, vol_uV); in hal_regulator_get_voltage()
178 if(rdev && rdev->ops && rdev->ops->set_voltage) in hal_regulator_set_voltage()
180 return rdev->ops->set_voltage(rdev, target_uV); in hal_regulator_set_voltage()
192 if(rdev && rdev->ops && rdev->ops->enable) in hal_regulator_enable()
194 return rdev->ops->enable(rdev); in hal_regulator_enable()
206 if(rdev && rdev->ops && rdev->ops->disable) in hal_regulator_disable()
208 return rdev->ops->disable(rdev); in hal_regulator_disable()
/bsp/allwinner/libraries/sunxi-hal/hal/source/sound/core/
A Dsnd_core.c289 if (cpu_dai->ops->startup) { in soc_pcm_open()
296 if (platform->ops->open) { in soc_pcm_open()
325 if (dai->ops->set_sysclk) in soc_dai_set_sysclk()
335 if (dai->ops->set_pll) in soc_dai_set_pll()
344 if (dai->ops->set_fmt) in snd_soc_dai_set_fmt()
353 if (dai->ops->set_clkdiv) in soc_dai_set_clkdiv()
452 if (cpu_dai->ops->hw_free) in soc_pcm_hw_params()
594 if (cpu_dai->ops->shutdown) in soc_pcm_close()
598 if (platform->ops->close) in soc_pcm_close()
632 if (platform->ops && platform->ops->ioctl) in soc_pcm_ioctl()
[all …]
/bsp/stm32/stm32mp157a-st-discovery/board/ports/OpenAMP/libmetal/lib/
A Dio.c15 const struct metal_io_ops *ops) in metal_io_init() argument
29 io->ops = ops ? *ops : nops; in metal_io_init()
45 if (io->ops.block_read) { in metal_io_block_read()
46 retlen = (*io->ops.block_read)( in metal_io_block_read()
82 if (io->ops.block_write) { in metal_io_block_write()
83 retlen = (*io->ops.block_write)( in metal_io_block_write()
118 if (io->ops.block_set) { in metal_io_block_set()
119 (*io->ops.block_set)( in metal_io_block_set()
A Dst_device.c33 if (bus->ops.bus_close) in metal_bus_unregister()
34 bus->ops.bus_close(bus); in metal_bus_unregister()
70 if (!bus->ops.dev_open) in metal_device_open()
73 error = (*bus->ops.dev_open)(bus, dev_name, device); in metal_device_open()
83 if (device->bus->ops.dev_close) in metal_device_close()
84 device->bus->ops.dev_close(device->bus, device); in metal_device_close()
159 .ops = {
A Ddma.c24 if (!dev->bus->ops.dev_dma_map) in metal_dma_map()
35 nents_out = dev->bus->ops.dev_dma_map(dev->bus, in metal_dma_map()
54 if (!dev || !dev->bus->ops.dev_dma_unmap || !sg) in metal_dma_unmap()
56 dev->bus->ops.dev_dma_unmap(dev->bus, in metal_dma_unmap()
/bsp/stm32/stm32mp157a-st-ev1/board/ports/OpenAMP/libmetal/lib/
A Dio.c15 const struct metal_io_ops *ops) in metal_io_init() argument
29 io->ops = ops ? *ops : nops; in metal_io_init()
45 if (io->ops.block_read) { in metal_io_block_read()
46 retlen = (*io->ops.block_read)( in metal_io_block_read()
82 if (io->ops.block_write) { in metal_io_block_write()
83 retlen = (*io->ops.block_write)( in metal_io_block_write()
118 if (io->ops.block_set) { in metal_io_block_set()
119 (*io->ops.block_set)( in metal_io_block_set()
A Dst_device.c33 if (bus->ops.bus_close) in metal_bus_unregister()
34 bus->ops.bus_close(bus); in metal_bus_unregister()
70 if (!bus->ops.dev_open) in metal_device_open()
73 error = (*bus->ops.dev_open)(bus, dev_name, device); in metal_device_open()
83 if (device->bus->ops.dev_close) in metal_device_close()
84 device->bus->ops.dev_close(device->bus, device); in metal_device_close()
159 .ops = {
A Ddma.c24 if (!dev->bus->ops.dev_dma_map) in metal_dma_map()
35 nents_out = dev->bus->ops.dev_dma_map(dev->bus, in metal_dma_map()
54 if (!dev || !dev->bus->ops.dev_dma_unmap || !sg) in metal_dma_unmap()
56 dev->bus->ops.dev_dma_unmap(dev->bus, in metal_dma_unmap()
/bsp/allwinner/libraries/sunxi-hal/hal/source/ccmu/sunxi-ng/
A Dccu.c194 if (core->ops->determine_rate) in clk_core_determine_round_nolock()
198 else if (core->ops->round_rate) in clk_core_determine_round_nolock()
242 return core->ops->determine_rate || core->ops->round_rate; in clk_core_can_round()
456 if (core->ops->init) in __clk_core_init()
477 if (core->ops->recalc_rate) in __clk_core_init()
629 core->ops = hw->init->ops; in clk_hw_register()
729 if (!core->ops->is_enabled) in clk_core_is_enabled()
755 if (core->ops->enable) in clk_core_enable()
788 if (core->ops->disable) in clk_core_disable()
838 if (core->ops->recalc_rate) in clk_core_recalc_rate()
[all …]
/bsp/airm2m/air105/libraries/rt_drivers/
A Ddrv_wdt.c21 static struct rt_watchdog_ops ops; variable
54 ops.init = &wdt_init; in rt_wdt_init()
55 ops.control = &wdt_control; in rt_wdt_init()
56 watchdog.ops = &ops; in rt_wdt_init()
/bsp/xuantie/virt64/c906/libcpu/
A Dcache.c17 void rt_hw_cpu_icache_ops(int ops, void *addr, int size) in rt_hw_cpu_icache_ops() argument
19 if (ops == RT_HW_CACHE_INVALIDATE) in rt_hw_cpu_icache_ops()
25 void rt_hw_cpu_dcache_ops(int ops, void *addr, int size) in rt_hw_cpu_dcache_ops() argument
27 if (ops == RT_HW_CACHE_FLUSH) in rt_hw_cpu_dcache_ops()
/bsp/ultrarisc/arch/ur-cp100/
A Dcache.c18 void rt_hw_cpu_icache_ops(int ops, void *addr, int size) in rt_hw_cpu_icache_ops() argument
20 if (ops == RT_HW_CACHE_INVALIDATE) in rt_hw_cpu_icache_ops()
27 void rt_hw_cpu_dcache_ops(int ops, void *addr, int size) in rt_hw_cpu_dcache_ops() argument
29 if (ops == RT_HW_CACHE_FLUSH) in rt_hw_cpu_dcache_ops()
/bsp/renesas/libraries/HAL_Drivers/
A Ddrv_wdt.c25 static struct rt_watchdog_ops ops; variable
96 ops.init = &wdt_init; in rt_wdt_init()
97 ops.control = &wdt_control; in rt_wdt_init()
98 ra_wdt_dev.ops = &ops; in rt_wdt_init()
/bsp/nxp/imx/imxrt/imxrt1170-nxp-evk/video/display/fbdev/
A Dfsl_fbdev.c41 status = dc->ops->init(dc); in FBDEV_Open()
50 status = dc->ops->getLayerDefaultConfig(dc, layer, &fbdev->fbInfo.bufInfo); in FBDEV_Open()
65 dc->ops->setCallback(dc, layer, FBDEV_BufferSwitchOffCallback, (void *)fbdev); in FBDEV_Open()
74 (void)dc->ops->deinit(dc); in FBDEV_Close()
100 if ((dc->ops->getProperty(dc) & (uint32_t)kDC_FB_ReserveFrameBuffer) == 0U) in FBDEV_Enable()
113 status = dc->ops->enableLayer(dc, fbdev->layer); in FBDEV_Enable()
143 (void)dc->ops->disableLayer(dc, fbdev->layer); in FBDEV_Disable()
170 status = dc->ops->setLayerConfig(dc, fbdev->layer, &fbdev->fbInfo.bufInfo); in FBDEV_SetFrameBufferInfo()
226 return dc->ops->setFrameBuffer(dc, fbdev->layer, frameBuffer); in FBDEV_SetFrameBuffer()
/bsp/bluetrum/libraries/hal_drivers/
A Ddrv_wdt.c26 static struct rt_watchdog_ops ops; variable
137 ops.init = &wdt_init; in rt_wdt_init()
138 ops.control = &wdt_control; in rt_wdt_init()
139 ab32_wdt.watchdog.ops = &ops; in rt_wdt_init()
/bsp/nrf5x/libraries/drivers/
A Ddrv_wdt.c29 static struct rt_watchdog_ops ops; variable
69 ops.init = &wdt_init; in rt_wdt_init()
70 ops.control = &wdt_control; in rt_wdt_init()
71 nrf5x_wdt.watchdog.ops = &ops; in rt_wdt_init()
/bsp/n32g452xx/Libraries/rt_drivers/
A Ddrv_wdt.c32 static struct rt_watchdog_ops ops; variable
112 ops.init = &wdt_init; in rt_hw_wdt_init()
113 ops.control = &wdt_control; in rt_hw_wdt_init()
114 watchdog.ops = &ops; in rt_hw_wdt_init()
/bsp/cvitek/c906_little/board/
A Dcache.c32 inline void rt_hw_cpu_dcache_ops(int ops, void* addr, int size) in rt_hw_cpu_dcache_ops() argument
34 switch (ops) in rt_hw_cpu_dcache_ops()
61 inline void rt_hw_cpu_icache_ops(int ops, void* addr, int size) in rt_hw_cpu_icache_ops() argument
63 switch (ops) in rt_hw_cpu_icache_ops()
/bsp/at32/libraries/rt_drivers/
A Ddrv_wdt.c30 static struct rt_watchdog_ops ops; variable
112 ops.init = &wdt_init; in rt_hw_wdt_init()
113 ops.control = &wdt_control; in rt_hw_wdt_init()
114 watchdog.ops = &ops; in rt_hw_wdt_init()
/bsp/nxp/imx/imxrt/imxrt1170-nxp-evk/video/display/
A Dfsl_display.h76 const display_operations_t *ops; member
100 return handle->ops->init(handle, config); in DISPLAY_Init()
111 return handle->ops->deinit(handle); in DISPLAY_Deinit()
122 return handle->ops->start(handle); in DISPLAY_Start()
133 return handle->ops->stop(handle); in DISPLAY_Stop()
/bsp/stm32/libraries/HAL_Drivers/drivers/
A Ddrv_wdt.c28 static struct rt_watchdog_ops ops; variable
119 ops.init = &wdt_init; in rt_wdt_init()
120 ops.control = &wdt_control; in rt_wdt_init()
121 stm32_wdt.watchdog.ops = &ops; in rt_wdt_init()

Completed in 39 milliseconds

12345678910>>...32