Home
last modified time | relevance | path

Searched refs:lock (Results 1 – 25 of 114) sorted by relevance

12345

/rk3399_rockchip-uboot/arch/arm/cpu/armv8/
H A Duspinlock.c11 void __spin_lock(uspinlock_t *lock);
12 void __spin_unlock(uspinlock_t *lock);
14 void u_spin_lock(uspinlock_t *lock) in u_spin_lock() argument
19 __spin_lock(lock); in u_spin_lock()
22 void u_spin_unlock(uspinlock_t *lock) in u_spin_unlock() argument
27 __spin_unlock(lock); in u_spin_unlock()
/rk3399_rockchip-uboot/arch/arm/include/asm/
H A Duspinlock.h6 volatile uint32_t lock; member
10 void u_spin_lock(uspinlock_t *lock);
11 void u_spin_unlock(uspinlock_t *lock);
13 static inline void u_spin_lock(uspinlock_t *lock) {} in u_spin_lock() argument
14 static inline void u_spin_unlock(uspinlock_t *lock) {} in u_spin_unlock() argument
/rk3399_rockchip-uboot/arch/arm/mach-mvebu/
H A Defuse.c76 val.lock = readl(&efuse->bit64); in do_prog_efuse()
78 if (val.lock & 1) in do_prog_efuse()
83 val.lock |= new_val->lock; in do_prog_efuse()
89 writel(val.lock, &efuse->bit64); in do_prog_efuse()
112 if (!new_val->lock) in prog_efuse()
167 val->lock = readl(&efuse->bit64); in mvebu_read_efuse()
179 .lock = 1, in mvebu_lock_efuse()
213 *val = fuse_line.lock; in fuse_read()
252 prog_val.lock = val != 0; in fuse_prog()
/rk3399_rockchip-uboot/drivers/usb/gadget/
H A Dat91_udc.c85 spin_unlock(&udc->lock); in done()
87 spin_lock(&udc->lock); in done()
336 spin_lock_irqsave(&udc->lock, flags); in at91_ep_enable()
357 spin_unlock_irqrestore(&udc->lock, flags); in at91_ep_enable()
370 spin_lock_irqsave(&udc->lock, flags); in at91_ep_disable()
385 spin_unlock_irqrestore(&udc->lock, flags); in at91_ep_disable()
449 spin_lock_irqsave(&udc->lock, flags); in at91_ep_queue()
512 spin_unlock_irqrestore(&udc->lock, flags); in at91_ep_queue()
526 spin_lock_irqsave(&udc->lock, flags); in at91_ep_dequeue()
534 spin_unlock_irqrestore(&udc->lock, flags); in at91_ep_dequeue()
[all …]
H A Datmel_usba_udc.c130 spin_lock(&udc->lock); in receive_data()
132 spin_unlock(&udc->lock); in receive_data()
249 spin_lock_irqsave(&ep->udc->lock, flags); in usba_ep_enable()
261 spin_unlock_irqrestore(&udc->lock, flags); in usba_ep_enable()
280 spin_lock_irqsave(&udc->lock, flags); in usba_ep_disable()
283 spin_unlock_irqrestore(&udc->lock, flags); in usba_ep_disable()
304 spin_unlock_irqrestore(&udc->lock, flags); in usba_ep_disable()
360 spin_lock_irqsave(&udc->lock, flags); in usba_ep_queue()
373 spin_unlock_irqrestore(&udc->lock, flags); in usba_ep_queue()
421 spin_lock_irqsave(&udc->lock, flags); in usba_ep_set_halt()
[all …]
H A Ddwc2_udc_otg.c257 spin_lock_irqsave(&dev->lock, flags); in usb_gadget_register_driver()
260 spin_unlock_irqrestore(&dev->lock, flags); in usb_gadget_register_driver()
298 spin_lock_irqsave(&dev->lock, flags); in usb_gadget_unregister_driver()
301 spin_unlock_irqrestore(&dev->lock, flags); in usb_gadget_unregister_driver()
401 spin_unlock(&ep->dev->lock); in done()
403 spin_lock(&ep->dev->lock); in done()
445 spin_unlock(&dev->lock); in stop_activity()
447 spin_lock(&dev->lock); in stop_activity()
670 spin_lock_irqsave(&ep->dev->lock, flags); in dwc2_ep_enable()
672 spin_unlock_irqrestore(&ep->dev->lock, flags); in dwc2_ep_enable()
[all …]
/rk3399_rockchip-uboot/drivers/usb/musb-new/
H A Dmusb_gadget.c176 __releases(ep->musb->lock) in musb_g_giveback()
177 __acquires(ep->musb->lock) in musb_g_giveback()
191 spin_unlock(&musb->lock); in musb_g_giveback()
203 spin_lock(&musb->lock); in musb_g_giveback()
1051 spin_lock_irqsave(&musb->lock, flags); in musb_gadget_enable()
1205 spin_unlock_irqrestore(&musb->lock, flags); in musb_gadget_enable()
1226 spin_lock_irqsave(&musb->lock, flags); in musb_gadget_disable()
1252 spin_unlock_irqrestore(&(musb->lock), flags); in musb_gadget_disable()
1349 spin_lock_irqsave(&musb->lock, lockflags); in musb_gadget_queue()
1367 spin_unlock_irqrestore(&musb->lock, lockflags); in musb_gadget_queue()
[all …]
H A Dmusb_gadget_ep0.c209 __releases(musb->lock) in service_zero_data_request()
210 __acquires(musb->lock) in service_zero_data_request()
629 __releases(musb->lock) in forward_to_driver()
630 __acquires(musb->lock) in forward_to_driver()
635 spin_unlock(&musb->lock); in forward_to_driver()
637 spin_lock(&musb->lock); in forward_to_driver()
932 spin_lock_irqsave(&musb->lock, lockflags); in musb_g_ep0_queue()
987 spin_unlock_irqrestore(&musb->lock, lockflags); in musb_g_ep0_queue()
1015 spin_lock_irqsave(&musb->lock, flags); in musb_g_ep0_halt()
1053 spin_unlock_irqrestore(&musb->lock, flags); in musb_g_ep0_halt()
H A Dmusb_host.c295 __releases(musb->lock) in musb_giveback()
296 __acquires(musb->lock) in musb_giveback()
308 spin_unlock(&musb->lock); in musb_giveback()
310 spin_lock(&musb->lock); in musb_giveback()
1932 spin_lock_irqsave(&musb->lock, flags);
1937 spin_unlock_irqrestore(&musb->lock, flags);
1958 spin_lock_irqsave(&musb->lock, flags);
1960 spin_unlock_irqrestore(&musb->lock, flags);
2087 spin_lock_irqsave(&musb->lock, flags);
2105 spin_unlock_irqrestore(&musb->lock, flags);
[all …]
/rk3399_rockchip-uboot/drivers/usb/dwc3/
H A Dgadget.c262 spin_unlock(&dwc->lock); in dwc3_gadget_giveback()
264 spin_lock(&dwc->lock); in dwc3_gadget_giveback()
635 spin_lock_irqsave(&dwc->lock, flags); in dwc3_gadget_ep_enable()
637 spin_unlock_irqrestore(&dwc->lock, flags); in dwc3_gadget_ep_enable()
665 spin_lock_irqsave(&dwc->lock, flags); in dwc3_gadget_ep_disable()
667 spin_unlock_irqrestore(&dwc->lock, flags); in dwc3_gadget_ep_disable()
1083 spin_lock_irqsave(&dwc->lock, flags); in dwc3_gadget_ep_queue()
1104 spin_unlock_irqrestore(&dwc->lock, flags); in dwc3_gadget_ep_queue()
1121 spin_lock_irqsave(&dwc->lock, flags); in dwc3_gadget_ep_dequeue()
1149 spin_unlock_irqrestore(&dwc->lock, flags); in dwc3_gadget_ep_dequeue()
[all …]
/rk3399_rockchip-uboot/drivers/usb/cdns3/
H A Dgadget.c665 spin_unlock(&priv_dev->lock); in cdns3_gadget_giveback()
668 spin_lock(&priv_dev->lock); in cdns3_gadget_giveback()
698 spin_lock_irqsave(&priv_dev->lock, flags); in cdns3_free_aligned_request_buf()
709 spin_unlock_irqrestore(&priv_dev->lock, flags); in cdns3_free_aligned_request_buf()
712 spin_lock_irqsave(&priv_dev->lock, flags); in cdns3_free_aligned_request_buf()
716 spin_unlock_irqrestore(&priv_dev->lock, flags); in cdns3_free_aligned_request_buf()
1279 spin_unlock(&priv_dev->lock); in cdns3_disconnect_gadget()
1281 spin_lock(&priv_dev->lock); in cdns3_disconnect_gadget()
1326 spin_unlock(&priv_dev->lock); in cdns3_check_usb_interrupt_proceed()
1328 spin_lock(&priv_dev->lock); in cdns3_check_usb_interrupt_proceed()
[all …]
H A Dep0.c97 spin_unlock(&priv_dev->lock); in cdns3_ep0_delegate_req()
101 spin_lock(&priv_dev->lock); in cdns3_ep0_delegate_req()
550 spin_lock_irqsave(&priv_dev->lock, flags); in cdns3_pending_setup_status_handler()
552 spin_unlock_irqrestore(&priv_dev->lock, flags); in cdns3_pending_setup_status_handler()
736 spin_lock_irqsave(&priv_dev->lock, flags); in cdns3_gadget_ep0_queue()
750 spin_unlock_irqrestore(&priv_dev->lock, flags); in cdns3_gadget_ep0_queue()
765 spin_lock_irqsave(&priv_dev->lock, flags); in cdns3_gadget_ep0_queue()
769 spin_unlock_irqrestore(&priv_dev->lock, flags); in cdns3_gadget_ep0_queue()
776 spin_unlock_irqrestore(&priv_dev->lock, flags); in cdns3_gadget_ep0_queue()
790 spin_unlock_irqrestore(&priv_dev->lock, flags); in cdns3_gadget_ep0_queue()
/rk3399_rockchip-uboot/include/linux/
H A Dcompat.h218 #define spin_lock_init(lock) do {} while (0) argument
219 #define spin_lock(lock) do {} while (0) argument
220 #define spin_unlock(lock) do {} while (0) argument
221 #define spin_lock_irqsave(lock, flags) do { debug("%lu\n", flags); } while (0) argument
222 #define spin_unlock_irqrestore(lock, flags) do { flags = 0; } while (0) argument
/rk3399_rockchip-uboot/fs/ubifs/
H A Dio.c535 spin_lock(&wbuf->lock); in ubifs_wbuf_sync_nolock()
556 spin_unlock(&wbuf->lock); in ubifs_wbuf_sync_nolock()
585 spin_lock(&wbuf->lock); in ubifs_wbuf_seek_nolock()
596 spin_unlock(&wbuf->lock); in ubifs_wbuf_seek_nolock()
728 spin_lock(&wbuf->lock); in ubifs_wbuf_write_nolock()
737 spin_unlock(&wbuf->lock); in ubifs_wbuf_write_nolock()
739 spin_lock(&wbuf->lock); in ubifs_wbuf_write_nolock()
742 spin_unlock(&wbuf->lock); in ubifs_wbuf_write_nolock()
810 spin_lock(&wbuf->lock); in ubifs_wbuf_write_nolock()
826 spin_unlock(&wbuf->lock); in ubifs_wbuf_write_nolock()
[all …]
/rk3399_rockchip-uboot/drivers/spi/
H A Dich.c202 int lock = 0; in spi_lock_status() local
207 lock = readw(&ich7_spi->spis) & SPIS_LOCK; in spi_lock_status()
211 lock = readw(&ich9_spi->hsfs) & HSFS_FLOCKDN; in spi_lock_status()
214 return lock != 0; in spi_lock_status()
251 bool lock) in spi_setup_opcode() argument
258 if (!lock) { in spi_setup_opcode()
383 bool lock = spi_lock_status(plat, ctlr->base); in ich_spi_xfer() local
447 opcode_index = spi_setup_opcode(ctlr, trans, lock); in ich_spi_xfer()
460 if (!lock) in ich_spi_xfer()
579 if (!lock) in ich_spi_xfer()
/rk3399_rockchip-uboot/arch/arm/mach-tegra/
H A Dpinmux-common.c35 #define pmux_pin_lock_isvalid(lock) \ argument
36 (((lock) >= PMUX_PIN_LOCK_DISABLE) && ((lock) <= PMUX_PIN_LOCK_ENABLE))
255 static void pinmux_set_lock(enum pmux_pingrp pin, enum pmux_pin_lock lock) in pinmux_set_lock() argument
260 if (lock == PMUX_PIN_LOCK_DEFAULT) in pinmux_set_lock()
265 assert(pmux_pin_lock_isvalid(lock)); in pinmux_set_lock()
268 if (lock == PMUX_PIN_LOCK_ENABLE) { in pinmux_set_lock()
441 pinmux_set_lock(pin, config->lock); in pinmux_config_pingrp()
/rk3399_rockchip-uboot/drivers/mtd/nand/spi/
H A Dcore.c491 static int spinand_lock_block(struct spinand_device *spinand, u8 lock) in spinand_lock_block() argument
493 return spinand_write_reg_op(spinand, REG_BLOCK_LOCK, lock); in spinand_lock_block()
600 mutex_lock(&spinand->lock); in spinand_mtd_read()
646 mutex_unlock(&spinand->lock); in spinand_mtd_read()
669 mutex_lock(&spinand->lock); in spinand_mtd_write()
690 mutex_unlock(&spinand->lock); in spinand_mtd_write()
727 mutex_lock(&spinand->lock); in spinand_mtd_block_isbad()
731 mutex_unlock(&spinand->lock); in spinand_mtd_block_isbad()
771 mutex_lock(&spinand->lock); in spinand_mtd_block_markbad()
775 mutex_unlock(&spinand->lock); in spinand_mtd_block_markbad()
[all …]
/rk3399_rockchip-uboot/tools/env/
H A DREADME62 drivers, a lock file at /var/lock/fw_printenv.lock is used to serialize access
/rk3399_rockchip-uboot/drivers/mtd/
H A Dstm32_flash.c24 static void stm32_flash_lock(u8 lock) in stm32_flash_lock() argument
26 if (lock) { in stm32_flash_lock()
/rk3399_rockchip-uboot/include/linux/usb/
H A Drockchip_phy_typec.h37 struct mutex lock; member
/rk3399_rockchip-uboot/arch/arm/mach-mvebu/include/mach/
H A Defuse.h24 u32 lock; member
/rk3399_rockchip-uboot/arch/arm/mach-at91/arm920t/
H A Dlowlevel_init.S65 lock: label
67 bhi lock
/rk3399_rockchip-uboot/drivers/phy/
H A Dphy-rockchip-typec.c261 mutex_lock(&tcphy->lock); in _rockchip_usb3_phy_power_on()
293 mutex_unlock(&tcphy->lock); in _rockchip_usb3_phy_power_on()
321 mutex_lock(&tcphy->lock); in rockchip_usb3_phy_power_off()
330 mutex_unlock(&tcphy->lock); in rockchip_usb3_phy_power_off()
508 mutex_init(&tcphy->lock); in rockchip_typec_phy_probe()
/rk3399_rockchip-uboot/include/linux/mtd/
H A Dflashchip.h98 struct mutex lock; member
/rk3399_rockchip-uboot/arch/x86/cpu/
H A Dsipi_vector.S108 lock cmpxchg %ecx, ap_count
140 lock bts $0, microcode_lock

12345