| /kernel/linux/linux-5.10/lib/ |
| D | lockref.c | 37 * lockref_get - Increments reference count unconditionally 41 * to the object, so you know the count cannot be zero. 46 new.count++; in lockref_get() 52 lockref->count++; in lockref_get() 58 * lockref_get_not_zero - Increments count unless the count is 0 or dead 60 * Return: 1 if count updated successfully or 0 if count was zero 67 new.count++; in lockref_get_not_zero() 68 if (old.count <= 0) in lockref_get_not_zero() 76 if (lockref->count > 0) { in lockref_get_not_zero() 77 lockref->count++; in lockref_get_not_zero() [all …]
|
| /kernel/linux/linux-5.10/arch/alpha/kernel/ |
| D | io.c | 258 * Read COUNT 8-bit bytes from port PORT into memory starting at SRC. 260 void ioread8_rep(const void __iomem *port, void *dst, unsigned long count) in ioread8_rep() argument 263 if (!count) in ioread8_rep() 265 count--; in ioread8_rep() 270 while (count >= 4) { in ioread8_rep() 272 count -= 4; in ioread8_rep() 281 while (count) { in ioread8_rep() 282 --count; in ioread8_rep() 288 void insb(unsigned long port, void *dst, unsigned long count) in insb() argument 290 ioread8_rep(ioport_map(port, 1), dst, count); in insb() [all …]
|
| /kernel/linux/linux-6.6/arch/alpha/kernel/ |
| D | io.c | 275 * Read COUNT 8-bit bytes from port PORT into memory starting at SRC. 277 void ioread8_rep(const void __iomem *port, void *dst, unsigned long count) in ioread8_rep() argument 280 if (!count) in ioread8_rep() 282 count--; in ioread8_rep() 287 while (count >= 4) { in ioread8_rep() 289 count -= 4; in ioread8_rep() 298 while (count) { in ioread8_rep() 299 --count; in ioread8_rep() 305 void insb(unsigned long port, void *dst, unsigned long count) in insb() argument 307 ioread8_rep(ioport_map(port, 1), dst, count); in insb() [all …]
|
| /kernel/linux/linux-6.6/lib/ |
| D | lockref.c | 36 * lockref_get - Increments reference count unconditionally 40 * to the object, so you know the count cannot be zero. 45 new.count++; in lockref_get() 51 lockref->count++; in lockref_get() 57 * lockref_get_not_zero - Increments count unless the count is 0 or dead 59 * Return: 1 if count updated successfully or 0 if count was zero 66 new.count++; in lockref_get_not_zero() 67 if (old.count <= 0) in lockref_get_not_zero() 75 if (lockref->count > 0) { in lockref_get_not_zero() 76 lockref->count++; in lockref_get_not_zero() [all …]
|
| /kernel/linux/linux-5.10/Documentation/ABI/testing/ |
| D | sysfs-bus-counter | 1 What: /sys/bus/counter/devices/counterX/countY/count 5 Count data of Count Y represented as a string. 11 Count value ceiling for Count Y. This is the upper limit for the 18 Count value floor for Count Y. This is the lower limit for the 25 Count mode for channel Y. The ceiling and floor values for 26 Count Y are used by the count mode where required. The following 27 count modes are available: 35 the Count Y ceiling value, while the lower limit is set 36 to the Count Y floor value. The counter freezes at 37 count = ceiling when counting up, and at count = floor [all …]
|
| /kernel/linux/linux-6.6/drivers/tty/ |
| D | tty_ldsem.c | 12 * 1) Upper half of semaphore count is a wait count (differs from rwsem 67 atomic_long_set(&sem->count, LDSEM_UNLOCKED); in __init_ldsem() 78 long adjust, count; in __ldsem_wake_readers() local 82 * Note the 'active part' of the count is incremented by in __ldsem_wake_readers() 86 count = atomic_long_add_return(adjust, &sem->count); in __ldsem_wake_readers() 88 if (count > 0) in __ldsem_wake_readers() 90 if (atomic_long_try_cmpxchg(&sem->count, &count, count - adjust)) in __ldsem_wake_readers() 107 * Only wake this writer if the active part of the count can be in writer_trylock() 110 long count = atomic_long_add_return(LDSEM_ACTIVE_BIAS, &sem->count); in writer_trylock() local 112 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) in writer_trylock() [all …]
|
| /kernel/linux/linux-5.10/drivers/tty/ |
| D | tty_ldsem.c | 12 * 1) Upper half of semaphore count is a wait count (differs from rwsem 67 atomic_long_set(&sem->count, LDSEM_UNLOCKED); in __init_ldsem() 78 long adjust, count; in __ldsem_wake_readers() local 82 * Note the 'active part' of the count is incremented by in __ldsem_wake_readers() 86 count = atomic_long_add_return(adjust, &sem->count); in __ldsem_wake_readers() 88 if (count > 0) in __ldsem_wake_readers() 90 if (atomic_long_try_cmpxchg(&sem->count, &count, count - adjust)) in __ldsem_wake_readers() 107 * Only wake this writer if the active part of the count can be in writer_trylock() 110 long count = atomic_long_add_return(LDSEM_ACTIVE_BIAS, &sem->count); in writer_trylock() local 112 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) in writer_trylock() [all …]
|
| /kernel/linux/linux-5.10/drivers/pci/hotplug/ |
| D | ibmphp_pci.c | 343 int count; in configure_device() local 356 for (count = 0; address[count]; count++) { /* for 6 BARs */ in configure_device() 363 PCI_BASE_ADDRESS_0 + 4 * count, &tmp); in configure_device() 366 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFD); in configure_device() 369 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFF); in configure_device() 371 pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); in configure_device() 372 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device() 374 if (!bar[count]) /* This BAR is not implemented */ in configure_device() 377 debug("Device %x BAR %d wants %x\n", func->device, count, bar[count]); in configure_device() 379 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_device() [all …]
|
| /kernel/linux/linux-6.6/drivers/pci/hotplug/ |
| D | ibmphp_pci.c | 342 int count; in configure_device() local 355 for (count = 0; address[count]; count++) { /* for 6 BARs */ in configure_device() 362 PCI_BASE_ADDRESS_0 + 4 * count, &tmp); in configure_device() 365 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFD); in configure_device() 368 PCI_BASE_ADDRESS_0 + 4 * count, 0xFFFFFFFF); in configure_device() 370 pci_bus_write_config_dword(ibmphp_pci_bus, devfn, address[count], 0xFFFFFFFF); in configure_device() 371 pci_bus_read_config_dword(ibmphp_pci_bus, devfn, address[count], &bar[count]); in configure_device() 373 if (!bar[count]) /* This BAR is not implemented */ in configure_device() 376 debug("Device %x BAR %d wants %x\n", func->device, count, bar[count]); in configure_device() 378 if (bar[count] & PCI_BASE_ADDRESS_SPACE_IO) { in configure_device() [all …]
|
| /kernel/linux/linux-6.6/tools/usb/ |
| D | hcd-tests.sh | 32 declare -i COUNT BUFLEN 34 COUNT=50000 51 if ! ./testusb $TEST_ARGS -s $BUFLEN -c $COUNT $* 2>/dev/null 95 COUNT=5000 98 # FIXME automatically multiply COUNT by 10 when 101 # COUNT=50000 126 echo "test 1: $COUNT transfers, same size" 128 echo "test 3: $COUNT transfers, variable/short size" 131 COUNT=100 132 echo "test 17: $COUNT transfers, unaligned DMA map by core" [all …]
|
| /kernel/linux/linux-5.10/tools/usb/ |
| D | hcd-tests.sh | 32 declare -i COUNT BUFLEN 34 COUNT=50000 51 if ! ./testusb $TEST_ARGS -s $BUFLEN -c $COUNT $* 2>/dev/null 95 COUNT=5000 98 # FIXME automatically multiply COUNT by 10 when 101 # COUNT=50000 126 echo "test 1: $COUNT transfers, same size" 128 echo "test 3: $COUNT transfers, variable/short size" 131 COUNT=100 132 echo "test 17: $COUNT transfers, unaligned DMA map by core" [all …]
|
| /kernel/liteos_a/testsuites/unittest/process/lock/rwlock/smoke/ |
| D | pthread_rwlock_test_001.cpp | 34 static const int WRITE_THREAD_COUNT = 7; // 7, set w thread count. 35 static const int READ_THREAD_COUNT = 10; // 10, set read thread count. 36 static const int READ_LOOP_COUNT = 10; // 10, set read loop count. 52 int count; in RwlockWait() local 54 for (count = 0xFFFFFFF; count != 0; count--) { in RwlockWait() 60 int count = 0; in CheckReadThreadExit() local 64 count++; in CheckReadThreadExit() 68 if (count == READ_THREAD_COUNT) { in CheckReadThreadExit() 77 int count = 0; in CheckWriteThreadExit() local 81 count++; in CheckWriteThreadExit() [all …]
|
| /kernel/linux/linux-6.6/arch/parisc/lib/ |
| D | io.c | 19 void memcpy_toio(volatile void __iomem *dst, const void *src, int count) in memcpy_toio() argument 26 count--; in memcpy_toio() 28 while (count > 3) { in memcpy_toio() 32 count -= 4; in memcpy_toio() 35 while (count--) { in memcpy_toio() 54 void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) in memcpy_fromio() argument 57 if ( (((unsigned long)dst ^ (unsigned long)src) & 1) || (count < 2) ) in memcpy_fromio() 60 if ( (((unsigned long)dst ^ (unsigned long)src) & 2) || (count < 4) ) in memcpy_fromio() 68 count--; in memcpy_fromio() 69 if (count < 2) goto bytecopy; in memcpy_fromio() [all …]
|
| /kernel/linux/linux-5.10/arch/parisc/lib/ |
| D | io.c | 19 void memcpy_toio(volatile void __iomem *dst, const void *src, int count) in memcpy_toio() argument 26 count--; in memcpy_toio() 28 while (count > 3) { in memcpy_toio() 32 count -= 4; in memcpy_toio() 35 while (count--) { in memcpy_toio() 54 void memcpy_fromio(void *dst, const volatile void __iomem *src, int count) in memcpy_fromio() argument 57 if ( (((unsigned long)dst ^ (unsigned long)src) & 1) || (count < 2) ) in memcpy_fromio() 60 if ( (((unsigned long)dst ^ (unsigned long)src) & 2) || (count < 4) ) in memcpy_fromio() 68 count--; in memcpy_fromio() 69 if (count < 2) goto bytecopy; in memcpy_fromio() [all …]
|
| /kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/icelakex/ |
| D | floating-point.json | 11 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 14 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 19 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 22 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 27 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 30 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 35 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 38 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 43 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 46 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/icelake/ |
| D | floating-point.json | 11 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 14 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 19 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 22 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 27 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 30 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 35 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 38 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 43 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 46 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/rocketlake/ |
| D | floating-point.json | 11 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 14 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 19 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 22 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 27 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 30 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 35 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 38 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 43 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 46 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/tigerlake/ |
| D | floating-point.json | 11 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 14 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 19 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 22 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 27 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 30 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 35 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 38 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 43 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 46 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /kernel/liteos_a/testsuites/unittest/process/lock/rwlock/full/ |
| D | pthread_rwlock_test_002.cpp | 34 static const int WRITE_THREAD_COUNT = 5; // 5, set w thread count. 35 static const int READ_THREAD_COUNT = 5; // 5, set read thread count. 37 static const int READ_LOOP_COUNT = 10; // 10, set read loop count. 51 int count; in RwlockWait() local 53 for (count = 0xFFFFFFF; count != 0; count--) { in RwlockWait() 59 int count = 0; in CheckReadThreadExit() local 63 count++; in CheckReadThreadExit() 67 if (count == READ_THREAD_COUNT) { in CheckReadThreadExit() 76 int count = 0; in CheckWriteThreadExit() local 80 count++; in CheckWriteThreadExit() [all …]
|
| /kernel/linux/linux-5.10/arch/mips/include/asm/mach-generic/ |
| D | ide.h | 60 unsigned int count) in __ide_insw() argument 63 insw(port, addr, count); in __ide_insw() 64 __ide_flush_dcache_range((unsigned long)addr, count * 2); in __ide_insw() 68 static inline void __ide_insl(unsigned long port, void *addr, unsigned int count) in __ide_insl() argument 71 insl(port, addr, count); in __ide_insl() 72 __ide_flush_dcache_range((unsigned long)addr, count * 4); in __ide_insl() 77 unsigned long count) in __ide_outsw() argument 80 outsw(port, addr, count); in __ide_outsw() 81 __ide_flush_dcache_range((unsigned long)addr, count * 2); in __ide_outsw() 86 unsigned long count) in __ide_outsl() argument [all …]
|
| /kernel/linux/linux-6.6/include/trace/events/ |
| D | cma.h | 14 unsigned long count), 16 TP_ARGS(name, pfn, page, count), 22 __field(unsigned long, count) 29 __entry->count = count; 32 TP_printk("name=%s pfn=0x%lx page=%p count=%lu", 36 __entry->count) 41 TP_PROTO(const char *name, unsigned long count, unsigned int align), 43 TP_ARGS(name, count, align), 47 __field(unsigned long, count) 53 __entry->count = count; [all …]
|
| /kernel/linux/linux-6.6/tools/perf/pmu-events/arch/x86/sapphirerapids/ |
| D | floating-point.json | 47 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 50 …count twice as noted below. Each count represents 2 computation operations, one for each element.… 55 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 58 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 63 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 66 …count twice as noted below. Each count represents 4 computation operations, one for each element.… 71 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 74 …count twice as noted below. Each count represents 8 computation operations, one for each element.… 79 …count twice as noted below. Each count represents 2 or/and 4 computation operations, 1 for each e… 82 …count twice as noted below. Each count represents 2 or/and 4 computation operations, one for each… [all …]
|
| /kernel/linux/linux-6.6/arch/riscv/include/asm/ |
| D | io.h | 64 unsigned int count) \ 67 if (count) { \ 73 } while (--count); \ 81 unsigned int count) \ 84 if (count) { \ 89 } while (--count); \ 97 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument 98 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument 99 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument 104 #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) argument [all …]
|
| /kernel/linux/linux-6.6/drivers/staging/media/av7110/ |
| D | av7110_ipack.c | 20 p->count = 0; in av7110_ipack_reset() 56 if (p->count < 10) in send_ipack() 59 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); in send_ipack() 60 p->buf[5] = (u8)((p->count - 6) & 0x00ff); in send_ipack() 68 if (ac3_off < p->count) in send_ipack() 70 p->count - ac3_off, &ai, 0); in send_ipack() 72 nframes = (p->count - off - 3 - ac3_off) / in send_ipack() 77 ac3_off += nframes * ai.framesize - p->count; in send_ipack() 81 p->func(p->buf, p->count, p->data); in send_ipack() 86 p->count = 9; in send_ipack() [all …]
|
| /kernel/linux/linux-5.10/drivers/media/pci/ttpci/ |
| D | av7110_ipack.c | 20 p->count = 0; in av7110_ipack_reset() 56 if (p->count < 10) in send_ipack() 59 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); in send_ipack() 60 p->buf[5] = (u8)((p->count - 6) & 0x00ff); in send_ipack() 68 if (ac3_off < p->count) in send_ipack() 70 p->count - ac3_off, &ai, 0); in send_ipack() 72 nframes = (p->count - off - 3 - ac3_off) / in send_ipack() 77 ac3_off += nframes * ai.framesize - p->count; in send_ipack() 81 p->func(p->buf, p->count, p->data); in send_ipack() 86 p->count = 9; in send_ipack() [all …]
|