/openbmc/linux/tools/testing/selftests/net/forwarding/ |
H A D | bridge_locked_port.sh | 102 bridge link set dev $swp1 locked on 112 bridge link set dev $swp1 locked off 118 log_test "Locked port ipv4" 133 bridge link set dev $swp1 locked on 142 bridge link set dev $swp1 locked off 150 log_test "Locked port vlan" 161 bridge link set dev $swp1 locked on 170 bridge link set dev $swp1 locked off 176 log_test "Locked port ipv6" 187 bridge link set dev $swp1 learning on locked on [all …]
|
/openbmc/linux/tools/testing/selftests/drivers/net/dsa/ |
H A D | bridge_locked_port.sh | 102 bridge link set dev $swp1 locked on 112 bridge link set dev $swp1 locked off 118 log_test "Locked port ipv4" 133 bridge link set dev $swp1 locked on 142 bridge link set dev $swp1 locked off 150 log_test "Locked port vlan" 161 bridge link set dev $swp1 locked on 170 bridge link set dev $swp1 locked off 176 log_test "Locked port ipv6" 187 bridge link set dev $swp1 learning on locked on [all …]
|
/openbmc/linux/Documentation/i2c/ |
H A D | i2c-topology.rst | 40 mux-locked or parent-locked muxes. 43 Mux-locked muxes 46 Mux-locked muxes does not lock the entire parent adapter during the 48 adapter are locked. Mux-locked muxes are mostly interesting if the 50 their tasks. Since the parent adapter is not fully locked during the 55 Mux-locked Example 62 | root |--+--| locked | '--------' 87 Mux-locked caveats 90 When using a mux-locked mux, be aware of the following restrictions: 93 If you build a topology with a mux-locked mux being the parent [all …]
|
/openbmc/qemu/tests/qemu-iotests/ |
H A D | 172.out | 65 Removable device: not locked, tray closed 70 Removable device: not locked, tray closed 73 Removable device: not locked, tray closed 118 Removable device: not locked, tray closed 123 Removable device: not locked, tray closed 127 Removable device: not locked, tray closed 130 Removable device: not locked, tray closed 175 Removable device: not locked, tray closed 180 Removable device: not locked, tray closed 185 Removable device: not locked, tray closed [all …]
|
H A D | 186.out | 11 Removable device: not locked, tray closed 19 Removable device: not locked, tray closed 27 Removable device: not locked, tray closed 35 Removable device: not locked, tray closed 43 Removable device: not locked, tray closed 51 Removable device: not locked, tray closed 110 Removable device: not locked, tray closed 119 Removable device: not locked, tray closed 128 Removable device: not locked, tray closed 137 Removable device: not locked, tray closed [all …]
|
/openbmc/openbmc/poky/bitbake/lib/bb/ |
H A D | remotedata.py | 19 self.locked = [] 34 def store(self, d, locked=False): argument 36 Put a datastore into the collection. If locked=True then the datastore 42 if locked: 43 self.locked.append(idx) 47 def check_store(self, d, locked=False): argument 57 idx = self.store(d, locked) 62 if idx in self.locked: 63 raise Exception('Tried to release locked datastore %d' % idx)
|
/openbmc/linux/include/drm/ |
H A D | drm_exec.h | 29 * @num_objects: number of objects locked 39 * @objects: array of the locked objects 49 * @prelocked: already locked GEM object due to contention 59 * Return: Pointer to the locked object corresponding to @index if 60 * index is within the number of locked objects. NULL otherwise. 69 * drm_exec_for_each_locked_object - iterate over all the locked objects 74 * Iterate over all the locked GEM objects inside the drm_exec object. 80 * drm_exec_for_each_locked_object_reverse - iterate over all the locked 86 * Iterate over all the locked GEM objects inside the drm_exec object in 95 * drm_exec_until_all_locked - loop until all GEM objects are locked [all …]
|
/openbmc/linux/kernel/locking/ |
H A D | qspinlock_paravirt.h | 91 (cmpxchg_acquire(&lock->locked, 0, _Q_LOCKED_VAL) == 0)) { in pv_hybrid_queued_unfair_trylock() 121 return !READ_ONCE(lock->locked) && in trylock_clear_pending() 142 * Try to clear pending bit & set locked bit in trylock_clear_pending() 289 * Wait for node->locked to become true, halt the vcpu after a short spin. 302 if (READ_ONCE(node->locked)) in pv_wait_node() 312 * Order pn->state vs pn->locked thusly: in pv_wait_node() 314 * [S] pn->state = vcpu_halted [S] next->locked = 1 in pv_wait_node() 316 * [L] pn->locked [RmW] pn->state = vcpu_hashed in pv_wait_node() 322 if (!READ_ONCE(node->locked)) { in pv_wait_node() 336 * If the locked flag is still not set after wakeup, it is a in pv_wait_node() [all …]
|
H A D | mcs_spinlock.h | 20 int locked; /* 1 if lock acquired */ member 61 * on this node->locked until the previous lock holder sets the node->locked 70 node->locked = 0; in mcs_spin_lock() 82 * Lock acquired, don't need to set node->locked to 1. Threads in mcs_spin_lock() 83 * only spin on its own node->locked value for lock acquisition. in mcs_spin_lock() 85 * and does not proceed to spin on its own node->locked, this in mcs_spin_lock() 87 * audit lock status, then set node->locked value here. in mcs_spin_lock() 94 arch_mcs_spin_lock_contended(&node->locked); in mcs_spin_lock() 118 arch_mcs_spin_unlock_contended(&next->locked); in mcs_spin_unlock()
|
/openbmc/linux/arch/x86/kernel/cpu/resctrl/ |
H A D | pseudo_lock.c | 44 * pseudo-locked regions. 69 * pseudo-locking. This includes testing to ensure pseudo-locked regions 71 * as well as that these pseudo-locked regions can maintain their low cache 154 * @minor: The minor number of the device representing pseudo-locked region 157 * pseudo-locked region it belongs to. This is done by matching the minor 158 * number of the device to the pseudo-locked region it belongs. 160 * Minor numbers are assigned at the time a pseudo-locked region is associated 163 * Return: On success return pointer to resource group owning the pseudo-locked 181 * @list: Entry within the @pm_reqs list for a pseudo-locked region 202 * @plr: Pseudo-locked region [all …]
|
/openbmc/linux/scripts/coccinelle/locks/ |
H A D | double_lock.cocci | 17 @locked@ 42 position p1 != locked.p1; 43 position locked.p; 45 expression x <= locked.E1; 46 expression E,locked.E1; 65 expression x <= locked.E1; 66 expression locked.E1; 69 position locked.p,p1,p2;
|
H A D | call_kern.cocci | 39 @locked exists@ 74 @depends on locked && patch@ 81 @depends on locked && !patch@ 90 p1 << locked.p1; 91 p2 << locked.p2; 101 p1 << locked.p1; 102 p2 << locked.p2;
|
/openbmc/qemu/scripts/ |
H A D | analyse-locks-simpletrace.py | 18 self.locked = 0 27 "locked": 0, 42 self.locked += 1 44 rec["locked"] += 1 74 print ("Total locks: %d, locked: %d, unlocked: %d" % 75 (analyser.locks, analyser.locked, analyser.unlocks)) 80 print ("Lock: %#x locks: %d, locked: %d, unlocked: %d" % 81 (key, val["locks"], val["locked"], val["unlocked"])) 96 if val["locks"] > val["locked"]:
|
/openbmc/u-boot/arch/powerpc/include/asm/ |
H A D | e300.h | 83 #define HID2_IWLCK_000 0x00000000 /* no ways locked */ 84 #define HID2_IWLCK_001 0x00002000 /* way 0 locked */ 85 #define HID2_IWLCK_010 0x00004000 /* way 0 through way 1 locked */ 86 #define HID2_IWLCK_011 0x00006000 /* way 0 through way 2 locked */ 87 #define HID2_IWLCK_100 0x00008000 /* way 0 through way 3 locked */ 88 #define HID2_IWLCK_101 0x0000A000 /* way 0 through way 4 locked */ 89 #define HID2_IWLCK_110 0x0000C000 /* way 0 through way 5 locked */
|
/openbmc/linux/drivers/thermal/intel/ |
H A D | intel_quark_dts_thermal.c | 96 /* If DTS not locked, all trip points are configurable */ 98 /* If DTS locked, all trip points are not configurable */ 104 bool locked; member 134 if (!aux_entry->locked) { in soc_dts_enable() 141 pr_info("DTS is locked. Cannot enable DTS\n"); in soc_dts_enable() 162 if (!aux_entry->locked) { in soc_dts_disable() 170 pr_info("DTS is locked. Cannot disable DTS\n"); in soc_dts_disable() 211 if (aux_entry->locked) { in update_trip_temp() 305 if (!aux_entry->locked) { in free_soc_dts() 334 /* Check if DTS register is locked */ in alloc_soc_dts() [all …]
|
/openbmc/linux/drivers/mtd/spi-nor/ |
H A D | otp.c | 188 /* no need to write the register if region is already locked */ in spi_nor_otp_lock_sr2() 253 int ret, locked; in spi_nor_mtd_otp_info() local 266 locked = ops->is_locked(nor, i); in spi_nor_mtd_otp_info() 267 if (locked < 0) { in spi_nor_mtd_otp_info() 268 ret = locked; in spi_nor_mtd_otp_info() 272 buf->locked = !!locked; in spi_nor_mtd_otp_info() 289 int locked; in spi_nor_mtd_otp_range_is_locked() local 292 * If any of the affected OTP regions are locked the entire range is in spi_nor_mtd_otp_range_is_locked() 293 * considered locked. in spi_nor_mtd_otp_range_is_locked() 298 locked = ops->is_locked(nor, region); in spi_nor_mtd_otp_range_is_locked() [all …]
|
H A D | swp.c | 84 * Return true if the entire region is locked (if @locked is true) or unlocked 85 * (if @locked is false); false otherwise. 88 uint64_t len, u8 sr, bool locked) in spi_nor_check_lock_status_sr() argument 101 if (locked) in spi_nor_check_lock_status_sr() 102 /* Requested range is a sub-range of locked range */ in spi_nor_check_lock_status_sr() 105 /* Requested range does not overlap with locked range */ in spi_nor_check_lock_status_sr() 191 /* lock_len: length of region that should end up locked */ in spi_nor_sr_lock() 262 /* If nothing in our range is locked, we don't need to do anything */ in spi_nor_sr_unlock() 266 /* If anything below us is locked, we can't use 'top' protection */ in spi_nor_sr_unlock() 270 /* If anything above us is locked, we can't use 'bottom' protection */ in spi_nor_sr_unlock() [all …]
|
/openbmc/linux/drivers/gpu/drm/ |
H A D | drm_exec.c | 15 * unlocks all previously locked GEM objects and locks the contended one first 18 * After an object is locked fences slots can optionally be reserved on the 73 * Initialize the object and make sure that we can track locked objects. 92 * Unlock all locked objects, drop the references to objects and free all memory 112 * objects locked. 133 /* Track the locked object in the array */ 155 /* Make sure the contended object is locked first */ 198 * already locked (can be suppressed by setting the DRM_EXEC_IGNORE_DUPLICATES 250 * Unlock the GEM object and remove it from the collection of locked objects. 251 * Should only be used to unlock the most recently locked objects. It's not time [all …]
|
/openbmc/skeleton/flashbios/ |
H A D | flash_bios_obj.c | 73 gboolean locked = shared_resource_get_lock(lock); in on_lock() local 74 if(locked) in on_lock() 77 printf("ERROR: BIOS Flash is already locked: %s\n",name); in on_lock() 94 gboolean locked = shared_resource_get_lock(lock); in on_is_locked() local 96 shared_resource_complete_is_locked(lock,invocation,locked,name); in on_is_locked() 120 gboolean locked = shared_resource_get_lock(lock); in on_update_via_tftp() local 122 if(locked) in on_update_via_tftp() 125 printf("BIOS Flash is locked: %s\n",name); in on_update_via_tftp() 185 gboolean locked = shared_resource_get_lock(lock); in on_update() local 188 if(locked) in on_update() [all …]
|
/openbmc/linux/drivers/net/ethernet/intel/ice/ |
H A D | ice_dcb_lib.h | 18 int ice_dcb_sw_dflt_cfg(struct ice_pf *pf, bool ets_willing, bool locked); 24 ice_pf_dcb_cfg(struct ice_pf *pf, struct ice_dcbx_cfg *new_cfg, bool locked); 26 void ice_pf_dcb_recfg(struct ice_pf *pf, bool locked); 28 int ice_init_pf_dcb(struct ice_pf *pf, bool locked); 93 ice_init_pf_dcb(struct ice_pf *pf, bool __always_unused locked) in ice_init_pf_dcb() argument 102 bool __always_unused locked) in ice_pf_dcb_cfg() argument 131 static inline void ice_pf_dcb_recfg(struct ice_pf *pf, bool locked) { } in ice_pf_dcb_recfg() argument
|
/openbmc/linux/include/linux/ |
H A D | hwspinlock.h | 178 * immediately fail if the hwspinlock is already locked. 185 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 199 * immediately fail if the hwspinlock is already locked. 205 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 224 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 241 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 261 * Returns 0 if we successfully locked the hwspinlock, -EBUSY if 271 * @hwlock: the hwspinlock to be locked 295 * @hwlock: the hwspinlock to be locked 318 * @hwlock: the hwspinlock to be locked [all …]
|
/openbmc/linux/drivers/media/dvb-frontends/ |
H A D | lgs8gxx.c | 295 static int lgs8gxx_is_locked(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_is_locked() argument 308 *locked = ((t & 0x80) == 0x80) ? 1 : 0; in lgs8gxx_is_locked() 310 *locked = ((t & 0xC0) == 0xC0) ? 1 : 0; in lgs8gxx_is_locked() 315 static int lgs8gxx_wait_ca_lock(struct lgs8gxx_state *priv, u8 *locked) in lgs8gxx_wait_ca_lock() argument 331 *locked = (ret == 0) ? 1 : 0; in lgs8gxx_wait_ca_lock() 359 u8 *locked) in lgs8gxx_autolock_gi() argument 384 err = lgs8gxx_wait_ca_lock(priv, locked); in lgs8gxx_autolock_gi() 385 if (err || !(*locked)) in lgs8gxx_autolock_gi() 393 *locked = 0; in lgs8gxx_autolock_gi() 403 u8 locked = 0, tmp_gi; in lgs8gxx_auto_detect() local [all …]
|
/openbmc/linux/include/asm-generic/ |
H A D | qspinlock_types.h | 25 u8 locked; member 40 u8 locked; member 55 * 0- 7: locked byte 62 * 0- 7: locked byte 71 #define _Q_LOCKED_MASK _Q_SET_MASK(LOCKED)
|
/openbmc/linux/mm/ |
H A D | gup.c | 826 * FOLL_NOWAIT, the mmap_lock may be released. If it is, *@locked will be set 831 int *locked) in faultin_page() argument 876 *locked = 0; in faultin_page() 898 *locked = 0; in faultin_page() 1051 * @locked: whether we're still with the mmap_lock held 1086 * be released. If this happens *@locked will be set to 0 on return. 1099 int *locked) in __get_user_pages() argument 1168 PTR_ERR(page) == -EMLINK, locked); in __get_user_pages() 1379 * Locking: (*locked == 1) means that the mmap_lock has already been acquired by 1381 * set (*locked = 0). [all …]
|
/openbmc/openbmc/poky/meta/lib/oeqa/selftest/cases/ |
H A D | signing.py | 181 Summary: Test locked signature mechanism 182 Expected: Locked signatures will prevent task to run 191 locked_sigs_file = 'locked-sigs.inc' 194 # Generate locked sigs include file 201 # Build a locked recipe 208 # Make a change that should cause the locked task signature to change 212 feature = 'SUMMARY:${PN} = "test locked signature%s"\n' % uuid.uuid4() 225 …# Verify you get the warning and that the real task *isn't* run (i.e. the locked signature has wor… 226 …patt = r'The %s:do_package sig is computed to be \S+, but the sig is locked to \S+ in SIGGEN_LOCKE…
|