Home
last modified time | relevance | path

Searched full:count (Results 1 – 25 of 6412) sorted by relevance

12345678910>>...257

/linux-5.10/lib/
Dlockref.c38 * lockref_get - Increments reference count unconditionally
42 * to the object, so you know the count cannot be zero.
47 new.count++; in lockref_get()
53 lockref->count++; in lockref_get()
59 * lockref_get_not_zero - Increments count unless the count is 0 or dead
61 * Return: 1 if count updated successfully or 0 if count was zero
68 new.count++; in lockref_get_not_zero()
69 if (old.count <= 0) in lockref_get_not_zero()
77 if (lockref->count > 0) { in lockref_get_not_zero()
78 lockref->count++; in lockref_get_not_zero()
[all …]
/linux-5.10/arch/alpha/kernel/
Dio.c258 * 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 …]
/linux-5.10/Documentation/ABI/testing/
Dsysfs-bus-counter1 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 …]
/linux-5.10/drivers/tty/
Dtty_ldsem.c12 * 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 …]
/linux-5.10/drivers/pci/hotplug/
Dibmphp_pci.c343 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 …]
/linux-5.10/tools/usb/
Dhcd-tests.sh32 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 …]
/linux-5.10/arch/parisc/lib/
Dio.c19 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 …]
/linux-5.10/arch/mips/include/asm/mach-generic/
Dide.h60 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 …]
/linux-5.10/drivers/media/pci/ttpci/
Dav7110_ipack.c20 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 …]
/linux-5.10/Documentation/driver-api/
Dgeneric-counter.rst33 Association of a Signal, and evaluation trigger, with a Count.
35 * Count:
41 evaluated by the counter to determine the count data; e.g. a quadrature
58 A Synapse represents the association of a Signal with a Count. Signal
59 data affects respective Count data, and the Synapse represents this
63 triggers the respective Count's count function evaluation to update the
64 count data. The Generic Counter interface provides the following
68 Signal does not trigger the count function. In Pulse-Direction count
80 A counter is defined as a set of input signals associated with count
82 input signals as defined by the respective count functions. Within the
[all …]
/linux-5.10/tools/perf/pmu-events/arch/x86/icelake/
Dfloating-point.json16count twice as noted below. Each count represents 1 computational operation. Applies to SSE* and …
23count twice as noted below. Each count represents 1 computation. Applies to SSE* and AVX* scalar …
27count twice as noted below. Each count represents 1 computational operation. Applies to SSE* and …
34count twice as noted below. Each count represents 1 computation. Applies to SSE* and AVX* scalar …
38count twice as noted below. Each count represents 2 computation operations, one for each element.…
45count twice as noted below. Each count represents 2 computation operations, one for each element.…
49count twice as noted below. Each count represents 4 computation operations, one for each element.…
56count twice as noted below. Each count represents 4 computation operations, one for each element.…
60count twice as noted below. Each count represents 4 computation operations, one for each element.…
67count twice as noted below. Each count represents 4 computation operations, one for each element.…
[all …]
/linux-5.10/drivers/gpu/drm/msm/disp/mdp5/
Dmdp5_cfg.c20 .count = 1,
34 .count = 5,
39 .count = 3,
48 .count = 3,
56 .count = 2,
63 .count = 5,
82 .count = 3,
86 .count = 3,
104 .count = 1,
118 .count = 5,
[all …]
/linux-5.10/drivers/platform/chrome/
Dcros_ec_sysfs.c28 int count = 0; in reboot_show() local
30 count += scnprintf(buf + count, PAGE_SIZE - count, in reboot_show()
32 count += scnprintf(buf + count, PAGE_SIZE - count, in reboot_show()
34 return count; in reboot_show()
39 const char *buf, size_t count) in reboot_store() argument
94 count = -EINVAL; in reboot_store()
104 count = ret; in reboot_store()
107 return count; in reboot_store()
119 int count = 0; in version_show() local
133 count = ret; in version_show()
[all …]
/linux-5.10/arch/riscv/include/asm/
Dio.h77 unsigned int count) \
80 if (count) { \
86 } while (--count); \
94 unsigned int count) \
97 if (count) { \
102 } while (--count); \
110 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument
111 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument
112 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument
117 #define insb(addr, buffer, count) __insb((void __iomem *)(long)addr, buffer, count) argument
[all …]
/linux-5.10/arch/arm64/kernel/
Dio.c15 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) in __memcpy_fromio() argument
17 while (count && !IS_ALIGNED((unsigned long)from, 8)) { in __memcpy_fromio()
21 count--; in __memcpy_fromio()
24 while (count >= 8) { in __memcpy_fromio()
28 count -= 8; in __memcpy_fromio()
31 while (count) { in __memcpy_fromio()
35 count--; in __memcpy_fromio()
43 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) in __memcpy_toio() argument
45 while (count && !IS_ALIGNED((unsigned long)to, 8)) { in __memcpy_toio()
49 count--; in __memcpy_toio()
[all …]
/linux-5.10/drivers/scsi/pcmcia/
Dnsp_io.h70 unsigned long count) in nsp_multi_read_1() argument
72 insb(BaseAddr + Register, buf, count); in nsp_multi_read_1()
77 unsigned long count) in nsp_fifo8_read() argument
79 /*nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx", buf, count);*/ in nsp_fifo8_read()
80 nsp_multi_read_1(base, FIFODATA, buf, count); in nsp_fifo8_read()
89 unsigned long count) in nsp_multi_read_2() argument
91 insw(BaseAddr + Register, buf, count); in nsp_multi_read_2()
96 unsigned long count) in nsp_fifo16_read() argument
98 //nsp_dbg(NSP_DEBUG_DATA_IO, "buf=0x%p, count=0x%lx*2", buf, count); in nsp_fifo16_read()
99 nsp_multi_read_2(base, FIFODATA, buf, count); in nsp_fifo16_read()
[all …]
/linux-5.10/arch/arm64/lib/
Dmemset.S30 count .req x2 label
53 cmp count, #15
56 tbz count, #3, 1f
59 tbz count, #2, 2f
62 tbz count, #1, 3f
65 tbz count, #0, 4f
76 * The count is not less than 16, we can use stp to store the start 16 bytes,
82 sub count, count, tmp2
89 cmp count, #64
92 ands tmp1, count, #0x30
[all …]
/linux-5.10/drivers/net/wireless/broadcom/b43legacy/
Dsysfs.c25 static int get_integer(const char *buf, size_t count) in get_integer() argument
30 if (count == 0) in get_integer()
32 count = min_t(size_t, count, 10); in get_integer()
33 memcpy(tmp, buf, count); in get_integer()
41 static int get_boolean(const char *buf, size_t count) in get_boolean() argument
43 if (count != 0) { in get_boolean()
48 if (count >= 4 && memcmp(buf, "true", 4) == 0) in get_boolean()
50 if (count >= 5 && memcmp(buf, "false", 5) == 0) in get_boolean()
52 if (count >= 3 && memcmp(buf, "yes", 3) == 0) in get_boolean()
54 if (count >= 2 && memcmp(buf, "no", 2) == 0) in get_boolean()
[all …]
/linux-5.10/arch/sh/kernel/
Diomap.c77 static inline void mmio_insb(const void __iomem *addr, u8 *dst, int count) in mmio_insb() argument
79 while (--count >= 0) { in mmio_insb()
86 static inline void mmio_insw(const void __iomem *addr, u16 *dst, int count) in mmio_insw() argument
88 while (--count >= 0) { in mmio_insw()
95 static inline void mmio_insl(const void __iomem *addr, u32 *dst, int count) in mmio_insl() argument
97 while (--count >= 0) { in mmio_insl()
104 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument
106 while (--count >= 0) { in mmio_outsb()
112 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument
114 while (--count >= 0) { in mmio_outsw()
[all …]
/linux-5.10/arch/sparc/lib/
DPeeCeeI.c13 void outsb(unsigned long __addr, const void *src, unsigned long count) in outsb() argument
18 while (count--) in outsb()
23 void outsw(unsigned long __addr, const void *src, unsigned long count) in outsw() argument
27 while (count--) { in outsw()
34 void outsl(unsigned long __addr, const void *src, unsigned long count) in outsl() argument
39 if (!count) in outsl()
45 while (count--) { in outsl()
52 while (count--) { in outsl()
64 while (count--) { in outsl()
76 while (count--) { in outsl()
[all …]
/linux-5.10/drivers/acpi/acpica/
Dnsprepkg.c22 union acpi_operand_object **elements, u32 count);
33 union acpi_operand_object **elements, u32 count);
45 * DESCRIPTION: Check a returned package object for the correct count and
59 u32 count; in acpi_ns_check_package() local
69 "%s Validating return Package of Type %X, Count %X\n", in acpi_ns_check_package()
71 return_object->package.count)); in acpi_ns_check_package()
80 /* Extract package count and elements array */ in acpi_ns_check_package()
83 count = return_object->package.count; in acpi_ns_check_package()
89 if (!count) { in acpi_ns_check_package()
110 status = acpi_ns_custom_package(info, elements, count); in acpi_ns_check_package()
[all …]
/linux-5.10/arch/powerpc/boot/
Ddiv64.S64 * R5 has shift count
74 srw r4,r4,r5 # LSW = count > 31 ? 0 : LSW >> count
76 slw r6,r3,r6 # t1 = count > 31 ? 0 : MSW << (32-count)
77 rlwinm r8,r7,0,32 # t3 = (count < 32) ? 32 : 0
78 sraw r7,r3,r7 # t2 = MSW >> (count-32)
80 slw r7,r7,r8 # t2 = (count < 32) ? 0 : t2
81 sraw r3,r3,r5 # MSW = MSW >> count
88 slw r3,r3,r5 # MSW = count > 31 ? 0 : MSW << count
90 srw r6,r4,r6 # t1 = count > 31 ? 0 : LSW >> (32-count)
91 slw r7,r4,r7 # t2 = count < 32 ? 0 : LSW << (count-32)
[all …]
/linux-5.10/drivers/media/usb/pvrusb2/
Dpvrusb2-debugifc.c19 unsigned int count) in debugifc_count_whitespace() argument
24 for (scnt = 0; scnt < count; scnt++) { in debugifc_count_whitespace()
36 unsigned int count) in debugifc_count_nonwhitespace() argument
41 for (scnt = 0; scnt < count; scnt++) { in debugifc_count_nonwhitespace()
51 static unsigned int debugifc_isolate_word(const char *buf,unsigned int count, in debugifc_isolate_word() argument
62 scnt = debugifc_count_whitespace(buf,count); in debugifc_isolate_word()
63 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word()
64 if (!count) goto done; in debugifc_isolate_word()
66 scnt = debugifc_count_nonwhitespace(buf,count); in debugifc_isolate_word()
70 consume_cnt += scnt; count -= scnt; buf += scnt; in debugifc_isolate_word()
[all …]
/linux-5.10/fs/sysv/
Dballoc.c48 unsigned count; in sysv_free_block() local
65 count = fs16_to_cpu(sbi, *sbi->s_bcache_count); in sysv_free_block()
67 if (count > sbi->s_flc_size) { in sysv_free_block()
76 if (count == sbi->s_flc_size || count == 0) { in sysv_free_block()
85 *(__fs16*)bh->b_data = cpu_to_fs16(sbi, count); in sysv_free_block()
86 memcpy(get_chunk(sb,bh), blocks, count * sizeof(sysv_zone_t)); in sysv_free_block()
90 count = 0; in sysv_free_block()
92 sbi->s_bcache[count++] = nr; in sysv_free_block()
94 *sbi->s_bcache_count = cpu_to_fs16(sbi, count); in sysv_free_block()
106 unsigned count; in sysv_new_block() local
[all …]
/linux-5.10/drivers/oprofile/
Doprofile_files.c31 size_t count, loff_t *offset) in timeout_read() argument
34 buf, count, offset); in timeout_read()
39 size_t count, loff_t *offset) in timeout_write() argument
47 retval = oprofilefs_ulong_from_user(&val, buf, count); in timeout_write()
55 return count; in timeout_write()
68 static ssize_t depth_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in depth_read() argument
70 return oprofilefs_ulong_to_user(oprofile_backtrace_depth, buf, count, in depth_read()
75 static ssize_t depth_write(struct file *file, char const __user *buf, size_t count, loff_t *offset) in depth_write() argument
86 retval = oprofilefs_ulong_from_user(&val, buf, count); in depth_write()
94 return count; in depth_write()
[all …]

12345678910>>...257