/openbmc/linux/arch/parisc/lib/ |
H A 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 …]
|
/openbmc/linux/drivers/media/tuners/ |
H A D | tuner-types.c | 74 .count = ARRAY_SIZE(tuner_temic_pal_ranges), 90 .count = ARRAY_SIZE(tuner_philips_pal_i_ranges), 106 .count = ARRAY_SIZE(tuner_philips_ntsc_ranges), 123 .count = ARRAY_SIZE(tuner_philips_secam_ranges), 140 .count = ARRAY_SIZE(tuner_philips_pal_ranges), 157 .count = ARRAY_SIZE(tuner_temic_ntsc_ranges), 173 .count = ARRAY_SIZE(tuner_temic_pal_i_ranges), 189 .count = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_ranges), 205 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), 216 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), [all …]
|
/openbmc/linux/drivers/pci/hotplug/ |
H A D | ibmphp_pci.c | 342 int count; in configure_device() local 355 for (count = 0; address[count]; count++) { /* for 6 BARs */ 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() 382 len[count] = bar[count] & 0xFFFFFFFC; in configure_device() 383 len[count] = ~len[count] + 1; in configure_device() 385 debug("len[count] in IO %x, count %d\n", len[count], count); in configure_device() [all …]
|
/openbmc/linux/arch/alpha/kernel/ |
H A D | io.c | 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() 320 void ioread16_rep(const void __iomem *port, void *dst, unsigned long count) in ioread16_rep() argument [all …]
|
/openbmc/linux/drivers/tty/ |
H A D | tty_ldsem.c | 67 atomic_long_set(&sem->count, LDSEM_UNLOCKED); in __init_ldsem() 78 long adjust, count; in __ldsem_wake_readers() local 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() 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() 114 if (atomic_long_try_cmpxchg(&sem->count, &count, count - LDSEM_ACTIVE_BIAS)) in writer_trylock() 156 down_read_failed(struct ld_semaphore *sem, long count, long timeout) in down_read_failed() argument 170 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) { in down_read_failed() [all …]
|
/openbmc/linux/drivers/gpu/drm/msm/disp/mdp5/ |
H A D | mdp5_cfg.c | 20 .count = 1, 34 .count = 5, 39 .count = 3, 48 .count = 3, 56 .count = 2, 63 .count = 5, 82 .count = 3, 86 .count = 3, 109 .count = 1, 123 .count = 2, [all …]
|
/openbmc/linux/arch/riscv/include/asm/ |
H A 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 …]
|
/openbmc/linux/drivers/staging/media/av7110/ |
H A 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 …]
|
/openbmc/linux/drivers/scsi/pcmcia/ |
H A D | nsp_io.h | 70 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 …]
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | atafb_utils.h | 49 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 …]
|
/openbmc/linux/arch/arm64/kernel/ |
H A D | io.c | 15 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 …]
|
/openbmc/linux/arch/loongarch/kernel/ |
H A D | io.c | 12 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) in __memcpy_fromio() argument 14 while (count && !IS_ALIGNED((unsigned long)from, 8)) { in __memcpy_fromio() 18 count--; in __memcpy_fromio() 21 while (count >= 8) { in __memcpy_fromio() 25 count -= 8; in __memcpy_fromio() 28 while (count) { in __memcpy_fromio() 32 count--; in __memcpy_fromio() 40 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) in __memcpy_toio() argument 42 while (count && !IS_ALIGNED((unsigned long)to, 8)) { in __memcpy_toio() 46 count--; in __memcpy_toio() [all …]
|
/openbmc/linux/arch/csky/kernel/ |
H A D | io.c | 10 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) in __memcpy_fromio() argument 12 while (count && !IS_ALIGNED((unsigned long)from, 4)) { in __memcpy_fromio() 16 count--; in __memcpy_fromio() 19 while (count >= 4) { in __memcpy_fromio() 23 count -= 4; in __memcpy_fromio() 26 while (count) { in __memcpy_fromio() 30 count--; in __memcpy_fromio() 38 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) in __memcpy_toio() argument 40 while (count && !IS_ALIGNED((unsigned long)to, 4)) { in __memcpy_toio() 44 count--; in __memcpy_toio() [all …]
|
/openbmc/qemu/tests/unit/ |
H A D | test-fifo.c | 27 uint32_t count; in test_fifo8_pop_bufptr_wrap() local 40 buf = fifo8_pop_bufptr(&fifo, 2, &count); in test_fifo8_pop_bufptr_wrap() 46 g_assert(count == 2); in test_fifo8_pop_bufptr_wrap() 54 buf = fifo8_pop_bufptr(&fifo, 8, &count); in test_fifo8_pop_bufptr_wrap() 60 g_assert(count == 6); in test_fifo8_pop_bufptr_wrap() 73 uint32_t count; in test_fifo8_pop_bufptr() local 86 buf = fifo8_pop_bufptr(&fifo, 2, &count); in test_fifo8_pop_bufptr() 92 g_assert(count == 2); in test_fifo8_pop_bufptr() 105 uint32_t count; in test_fifo8_peek_bufptr_wrap() local 118 buf = fifo8_peek_bufptr(&fifo, 2, &count); in test_fifo8_peek_bufptr_wrap() [all …]
|
/openbmc/qemu/hw/hyperv/ |
H A D | hv-balloon-page_range_tree.c | 38 uint64_t start, uint64_t count) in page_range_tree_insert_new() argument 43 assert(count > 0); in page_range_tree_insert_new() 46 range->count = count; in page_range_tree_insert_new() 52 uint64_t start, uint64_t count, in hvb_page_range_tree_insert() argument 60 assert(!SUM_OVERFLOW_U64(start, count)); in hvb_page_range_tree_insert() 61 if (count == 0) { in hvb_page_range_tree_insert() 75 intersection = page_range_intersection_size(range, start, count); in hvb_page_range_tree_insert() 76 joinable = page_range_joinable_right(range, start, count); in hvb_page_range_tree_insert() 88 node = page_range_tree_insert_new(tree, start, count); in hvb_page_range_tree_insert() 101 count += start - range->start; in hvb_page_range_tree_insert() [all …]
|
H A D | hv-balloon-page_range_tree.h | 17 uint64_t count; member 24 uint64_t endr = range->start + range->count; in page_range_part_before() 29 out->count = end - out->start; in page_range_part_before() 31 out->count = 0; in page_range_part_before() 37 uint64_t start, uint64_t count, in page_range_part_after() argument 40 uint64_t end = range->start + range->count; in page_range_part_after() 41 uint64_t ends = start + count; in page_range_part_after() 45 out->count = end - out->start; in page_range_part_after() 47 out->count = 0; in page_range_part_after() 52 uint64_t start, uint64_t count, in page_range_intersect() argument [all …]
|
/openbmc/qemu/include/fpu/ |
H A D | softfloat-macros.h | 128 static inline void shift32RightJamming(uint32_t a, int count, uint32_t *zPtr) in shift32RightJamming() argument 132 if ( count == 0 ) { in shift32RightJamming() 135 else if ( count < 32 ) { in shift32RightJamming() 136 z = ( a>>count ) | ( ( a<<( ( - count ) & 31 ) ) != 0 ); in shift32RightJamming() 154 static inline void shift64RightJamming(uint64_t a, int count, uint64_t *zPtr) in shift64RightJamming() argument 158 if ( count == 0 ) { in shift64RightJamming() 161 else if ( count < 64 ) { in shift64RightJamming() 162 z = ( a>>count ) | ( ( a<<( ( - count ) & 63 ) ) != 0 ); in shift64RightJamming() 190 uint64_t a0, uint64_t a1, int count, uint64_t *z0Ptr, uint64_t *z1Ptr) in shift64ExtraRightJamming() argument 193 int8_t negCount = ( - count ) & 63; in shift64ExtraRightJamming() [all …]
|
/openbmc/sdbusplus/test/ |
H A D | timer.cpp | 95 int count = 0; in TEST_F() local 96 while (count < 2 && !timer.isExpired()) in TEST_F() 100 if (!sd_event_run(events, sleepTime.count())) in TEST_F() 102 count++; in TEST_F() 106 EXPECT_EQ(1, count); in TEST_F() 123 int count = 0; in TEST_F() local 124 while (count < 2) in TEST_F() 128 if (!sd_event_run(events, sleepTime.count())) in TEST_F() 130 count++; in TEST_F() 136 EXPECT_EQ(2, count); in TEST_F() [all …]
|
/openbmc/linux/lib/ |
H A D | lockref.c | 45 new.count++; in lockref_get() 51 lockref->count++; in lockref_get() 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() 94 new.count--; in lockref_put_not_zero() 95 if (old.count <= 1) in lockref_put_not_zero() 103 if (lockref->count > 1) { in lockref_put_not_zero() 104 lockref->count--; in lockref_put_not_zero() [all …]
|
/openbmc/linux/arch/sparc/lib/ |
H A D | PeeCeeI.c | 13 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 …]
|
/openbmc/linux/kernel/irq/ |
H A D | timings.c | 282 for (i = irqts->count < IRQ_TIMINGS_SIZE ? \ 283 0 : irqts->count & IRQ_TIMINGS_MASK, \ 284 irqts->count = min(IRQ_TIMINGS_SIZE, \ 285 irqts->count); \ 286 irqts->count > 0; irqts->count--, \ 294 int count; member 384 int index, i, period_max, count, start, min = INT_MAX; in __irq_timings_next_event() local 387 irqs->count = irqs->last_ts = 0; in __irq_timings_next_event() 396 period_max = irqs->count > (3 * PREDICTION_PERIOD_MAX) ? in __irq_timings_next_event() 397 PREDICTION_PERIOD_MAX : irqs->count / 3; in __irq_timings_next_event() [all …]
|
/openbmc/linux/include/trace/events/ |
H A D | cma.h | 14 unsigned long count), 16 TP_ARGS(name, pfn, page, count), 22 __field(unsigned long, count) 29 __entry->count = count; 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; 59 __entry->count, [all …]
|
/openbmc/linux/drivers/net/wireless/broadcom/b43legacy/ |
H A D | sysfs.c | 25 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 …]
|
/openbmc/linux/arch/csky/lib/ |
H A D | string.c | 30 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 …]
|
/openbmc/linux/arch/sh/kernel/ |
H A D | iomap.c | 77 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 …]
|