Home
last modified time | relevance | path

Searched refs:count (Results 1 – 25 of 4277) sorted by relevance

12345678910>>...172

/linux/arch/alpha/kernel/
H A Dio.c277 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()
320 void ioread16_rep(const void __iomem *port, void *dst, unsigned long count) in ioread16_rep() argument
[all …]
/linux/drivers/pci/hotplug/
H A Dibmphp_pci.c342 int count; in configure_device()
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()
346 int count; configure_device() local
553 int count; configure_bridge() local
1060 int count, len[6]; scan_behind_bridge() local
1206 int count; unconfigure_boot_device() local
1317 int count; unconfigure_boot_bridge() local
1546 int count; ibmphp_unconfigure_card() local
[all...]
/linux/arch/riscv/include/asm/
H A Dio.h68 unsigned int count) \
71 if (count) { \
77 } while (--count); \
85 unsigned int count) \
88 if (count) { \
93 } while (--count); \
101 #define readsb(addr, buffer, count) __readsb(addr, buffer, count) argument
102 #define readsw(addr, buffer, count) __readsw(addr, buffer, count) argument
103 #define readsl(addr, buffer, count) __readsl(addr, buffer, count) argument
108 #define insb(addr, buffer, count) __insb(PCI_IOBASE + (addr), buffer, count) argument
[all …]
/linux/drivers/staging/media/av7110/
H A Dav7110_ipack.c19 p->count = 0; in av7110_ipack_reset()
51 if (p->count < 10) in send_ipack()
54 p->buf[4] = (u8)(((p->count - 6) & 0xff00) >> 8); in send_ipack()
55 p->buf[5] = (u8)((p->count - 6) & 0x00ff); in send_ipack()
63 if (ac3_off < p->count) in send_ipack()
65 p->count - ac3_off, &ai, 0); in send_ipack()
67 nframes = (p->count - off - 3 - ac3_off) / in send_ipack()
72 ac3_off += nframes * ai.framesize - p->count; in send_ipack()
76 p->func(p->buf, p->count, p->data); in send_ipack()
81 p->count = 9; in send_ipack()
[all …]
/linux/drivers/gpu/drm/xe/
H A Dxe_guc_db_mgr.c58 weight = bitmap_weight(dbm->bitmap, dbm->count); in __fini_dbm()
63 weight, dbm->count); in __fini_dbm()
69 dbm->count = 0; in __fini_dbm()
87 int xe_guc_db_mgr_init(struct xe_guc_db_mgr *dbm, unsigned int count) in xe_guc_db_mgr_init() argument
91 if (count == ~0) in xe_guc_db_mgr_init()
92 count = GUC_NUM_DOORBELLS; in xe_guc_db_mgr_init()
95 dbm_assert(dbm, count <= GUC_NUM_DOORBELLS); in xe_guc_db_mgr_init()
97 if (!count) in xe_guc_db_mgr_init()
100 dbm->bitmap = bitmap_zalloc(count, GFP_KERNEL); in xe_guc_db_mgr_init()
103 dbm->count = count; in xe_guc_db_mgr_init()
[all …]
H A Dxe_guc_id_mgr.c107 unsigned int count) in find_last_zero_area() argument
114 if (range < count) in find_last_zero_area()
116 found = rs + (range - count); in find_last_zero_area()
122 unsigned int count, unsigned int retain) in idm_reserve_chunk_locked() argument
126 idm_assert(idm, count); in idm_reserve_chunk_locked()
137 if (idm->used + count + retain > idm->total) in idm_reserve_chunk_locked()
142 id = find_last_zero_area(idm->bitmap, idm->total, count); in idm_reserve_chunk_locked()
148 id = bitmap_find_next_zero_area(idm->bitmap, idm->total, 0, count, 0); in idm_reserve_chunk_locked()
153 bitmap_set(idm->bitmap, id, count); in idm_reserve_chunk_locked()
154 idm->used += count; in idm_reserve_chunk_locked()
[all …]
/linux/lib/
H A Dpercpu_counter.c70 fbc->count = amount; in percpu_counter_set()
95 s64 count; in percpu_counter_add_batch() local
98 count = this_cpu_read(*fbc->counters); in percpu_counter_add_batch()
100 if (unlikely(abs(count + amount) >= batch)) { in percpu_counter_add_batch()
106 count = __this_cpu_read(*fbc->counters); in percpu_counter_add_batch()
107 fbc->count += count + amount; in percpu_counter_add_batch()
108 __this_cpu_sub(*fbc->counters, count); in percpu_counter_add_batch()
112 } while (!this_cpu_try_cmpxchg(*fbc->counters, &count, count + amount)); in percpu_counter_add_batch()
122 s64 count; in percpu_counter_add_batch() local
126 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch()
[all …]
H A Dstring.c92 char *strncpy(char *dest, const char *src, size_t count) in strncpy() argument
96 while (count) { in strncpy()
100 count--; in strncpy()
113 ssize_t sized_strscpy(char *dest, const char *src, size_t count) in sized_strscpy() argument
116 size_t max = count; in sized_strscpy()
119 if (count == 0 || WARN_ON_ONCE(count > INT_MAX)) in sized_strscpy()
163 count -= sizeof(unsigned long); in sized_strscpy()
164 if (unlikely(!count)) { in sized_strscpy()
174 while (count > 1) { in sized_strscpy()
182 count--; in sized_strscpy()
[all …]
H A Dlockref.c36 * 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 < in lockref_get_not_zero()
[all...]
H A Diomap.c42 static int count = 10; in bad_io_access() local
43 if (count) { in bad_io_access()
44 count--; in bad_io_access()
310 static inline void mmio_insb(const void __iomem *addr, u8 *dst, int count) in mmio_insb() argument
312 while (--count >= 0) { in mmio_insb()
318 static inline void mmio_insw(const void __iomem *addr, u16 *dst, int count) in mmio_insw() argument
320 while (--count >= 0) { in mmio_insw()
326 static inline void mmio_insl(const void __iomem *addr, u32 *dst, int count) in mmio_insl() argument
328 while (--count >= 0) { in mmio_insl()
337 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument
[all …]
/linux/drivers/scsi/pcmcia/
H A 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
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
99 nsp_multi_read_2(base, FIFODATA, buf, count); in nsp_fifo16_read()
108 unsigned long count) in nsp_multi_read_4() argument
110 insl(BaseAddr + Register, buf, count); in nsp_multi_read_4()
[all …]
/linux/drivers/video/fbdev/
H A Datafb_utils.h49 static inline void *fb_memclear_small(void *s, size_t count) in fb_memclear_small() argument
51 if (!count) in fb_memclear_small()
60 : "=a" (s), "=d" (count) in fb_memclear_small()
61 : "d" (0), "0" ((char *)s + count), "1" (count)); in fb_memclear_small()
69 : "=a" (s), "=d" (count) in fb_memclear_small()
70 : "d" (0), "0" (s), "1" (count) in fb_memclear_small()
78 static inline void *fb_memclear(void *s, size_t count) in fb_memclear() argument
80 if (!count) in fb_memclear()
83 if (count < 16) { in fb_memclear()
90 : "=a" (s), "=d" (count) in fb_memclear()
[all …]
/linux/kernel/irq/
H A Dtimings.c
/linux/arch/sparc/lib/
H A 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/drivers/net/wireless/broadcom/b43legacy/
H A 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/arch/csky/lib/
H A Dstring.c30 void *memcpy(void *dest, const void *src, size_t count) in memcpy() argument
36 if (count < MIN_THRESHOLD) in memcpy()
40 for (; d.as_uptr & WORD_MASK; count--) in memcpy()
57 for (; count >= BYTES_LONG; count -= BYTES_LONG) { in memcpy()
75 for (; count >= BYTES_LONG; count -= BYTES_LONG) in memcpy()
80 while (count--) in memcpy()
91 void *memmove(void *dest, const void *src, size_t count) in memmove() argument
93 if (dest < src || src + count <= dest) in memmove()
94 return memcpy(dest, src, count); in memmove()
97 const char *s = src + count; in memmove()
[all …]
/linux/drivers/acpi/acpica/
H A Dnsprepkg.c22 union acpi_operand_object **elements, u32 count);
33 union acpi_operand_object **elements, u32 count);
59 u32 count; in acpi_ns_check_package() local
71 return_object->package.count)); 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()
122 if (count < expected_count) { in acpi_ns_check_package()
124 } else if (count > expected_count) { in acpi_ns_check_package()
128 info->full_pathname, count, in acpi_ns_check_package()
[all …]
/linux/arch/nios2/lib/
H A Dmemmove.c13 void *memmove(void *d, const void *s, size_t count) in memmove() argument
17 if (!count) in memmove()
24 if ((count < 8) || ((dst ^ src) & 3)) in memmove()
29 count--; in memmove()
35 count -= 2; in memmove()
37 while (count > 3) { in memmove()
41 count -= 4; in memmove()
44 while (count--) in memmove()
47 dst = (unsigned long) d + count; in memmove()
48 src = (unsigned long) s + count; in memmove()
[all …]
/linux/arch/sh/kernel/
H A Ddwarf.c149 int shift, count; in dwarf_read_uleb128() local
153 count = 0; in dwarf_read_uleb128()
158 count++; in dwarf_read_uleb128()
169 return count; in dwarf_read_uleb128()
185 int count; in dwarf_read_leb128() local
189 count = 0; in dwarf_read_leb128()
196 count++; in dwarf_read_leb128()
210 return count; in dwarf_read_leb128()
227 int count = 0; in dwarf_read_encoded_value() local
246 count in dwarf_read_encoded_value()
270 int count; dwarf_entry_len() local
405 unsigned int count, delta, reg, expr_len, offset; dwarf_cfa_execute_insns() local
742 int count; dwarf_parse_cie() local
783 unsigned int length, count; dwarf_parse_cie() local
874 int count; dwarf_parse_fde() local
1029 int count, err = 0; dwarf_parse_section() local
[all...]
H A Dio.c16 void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) in memcpy_fromio() argument
23 if ((count >= 0x20) && in memcpy_fromio()
50 : "=&r" (to), "=&r" (count), in memcpy_fromio()
53 : "7"(from), "0" (to), "1" (count) in memcpy_fromio()
59 for (; count > 3; count -= 4) { in memcpy_fromio()
66 for (; count > 0; count--) { in memcpy_fromio()
79 void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) in memcpy_toio() argument
82 for ( ; count > 3; count -= 4) { in memcpy_toio()
89 for (; count > 0; count--) { in memcpy_toio()
103 void memset_io(volatile void __iomem *dst, int c, unsigned long count) in memset_io() argument
[all …]
/linux/drivers/net/ethernet/8390/
H A Dmac8390.c135 static void sane_block_input(struct net_device *dev, int count,
137 static void sane_block_output(struct net_device *dev, int count,
142 int from, int count);
144 const void *from, int count);
149 static void dayna_block_input(struct net_device *dev, int count,
151 static void dayna_block_output(struct net_device *dev, int count,
157 static void slow_sane_block_input(struct net_device *dev, int count,
159 static void slow_sane_block_output(struct net_device *dev, int count,
161 static void word_memcpy_tocard(unsigned long tp, const void *fp, int count);
162 static void word_memcpy_fromcard(void *tp, unsigned long fp, int count);
[all …]
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dgid.c45 dev->roce.reserved_gids.count = 0; in mlx5_init_reserved_gids()
52 dev->roce.reserved_gids.count = 0; in mlx5_cleanup_reserved_gids()
56 int mlx5_core_reserve_gids(struct mlx5_core_dev *dev, unsigned int count) in mlx5_core_reserve_gids() argument
58 if (dev->roce.reserved_gids.start < count) { in mlx5_core_reserve_gids()
60 count); in mlx5_core_reserve_gids()
63 if (dev->roce.reserved_gids.count + count > MLX5_MAX_RESERVED_GIDS) { in mlx5_core_reserve_gids()
64 mlx5_core_warn(dev, "Unable to reserve %d more GIDs\n", count); in mlx5_core_reserve_gids()
68 dev->roce.reserved_gids.start -= count; in mlx5_core_reserve_gids()
69 dev->roce.reserved_gids.count += count; in mlx5_core_reserve_gids()
71 dev->roce.reserved_gids.count, in mlx5_core_reserve_gids()
[all …]
/linux/drivers/gpu/drm/amd/display/dc/basics/
H A Dvector.c48 vector->count = 0; in dal_vector_construct()
55 uint32_t count, in dal_vector_presized_costruct() argument
63 if (!struct_size || !count) { in dal_vector_presized_costruct()
69 vector->container = kcalloc(count, struct_size, GFP_KERNEL); in dal_vector_presized_costruct()
78 for (i = 0; i < count; ++i) in dal_vector_presized_costruct()
85 vector->capacity = count; in dal_vector_presized_costruct()
87 vector->count = count; in dal_vector_presized_costruct()
133 vector->count = 0; in dal_vector_destruct()
150 return vector->count; in dal_vector_get_count()
245 uint32_t count; dal_vector_clone() local
[all...]
/linux/drivers/s390/cio/
H A Dqdio_main.c117 int start, int count, int auto_ack) in qdio_do_eqbs() argument
119 int tmp_count = count, tmp_start = start, nr = q->nr; in qdio_do_eqbs()
134 return count - tmp_count; in qdio_do_eqbs()
140 return count - tmp_count; in qdio_do_eqbs()
148 DBF_ERROR("%3d%3d%2d", count, tmp_count, nr); in qdio_do_eqbs()
150 q->first_to_check, count, q->irq_ptr->int_parm); in qdio_do_eqbs()
167 int count) in qdio_do_sqbs() argument
170 int tmp_count = count, tmp_start = start; in qdio_do_sqbs()
185 return count - tmp_count; in qdio_do_sqbs()
194 DBF_ERROR("%3d%3d%2d", count, tmp_count, nr); in qdio_do_sqbs()
[all …]
/linux/tools/testing/selftests/drivers/ntsync/
H A Dntsync.c17 static int read_sem_state(int sem, __u32 *count, __u32 *max) in read_sem_state() argument
24 *count = args.count; in read_sem_state()
29 #define check_sem_state(sem, count, max) \ argument
34 EXPECT_EQ((count), __count); \
38 static int release_sem(int sem, __u32 *count) in release_sem() argument
40 return ioctl(sem, NTSYNC_IOC_SEM_RELEASE, count); in release_sem()
43 static int read_mutex_state(int mutex, __u32 *count, __u32 *owner) in read_mutex_state() argument
50 *count = args.count; in read_mutex_state()
55 #define check_mutex_state(mutex, count, owner) \ argument
60 EXPECT_EQ((count), __count); \
[all …]

12345678910>>...172