/Linux-v4.19/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 …]
|
/Linux-v4.19/arch/alpha/kernel/ |
D | io.c | 214 void ioread8_rep(void __iomem *port, void *dst, unsigned long count) in ioread8_rep() argument 217 if (!count) in ioread8_rep() 219 count--; in ioread8_rep() 224 while (count >= 4) { in ioread8_rep() 226 count -= 4; in ioread8_rep() 235 while (count) { in ioread8_rep() 236 --count; in ioread8_rep() 242 void insb(unsigned long port, void *dst, unsigned long count) in insb() argument 244 ioread8_rep(ioport_map(port, 1), dst, count); in insb() 257 void ioread16_rep(void __iomem *port, void *dst, unsigned long count) in ioread16_rep() argument [all …]
|
/Linux-v4.19/drivers/media/tuners/ |
D | tuner-types.c | 73 .count = ARRAY_SIZE(tuner_temic_pal_ranges), 89 .count = ARRAY_SIZE(tuner_philips_pal_i_ranges), 105 .count = ARRAY_SIZE(tuner_philips_ntsc_ranges), 122 .count = ARRAY_SIZE(tuner_philips_secam_ranges), 139 .count = ARRAY_SIZE(tuner_philips_pal_ranges), 156 .count = ARRAY_SIZE(tuner_temic_ntsc_ranges), 172 .count = ARRAY_SIZE(tuner_temic_pal_i_ranges), 188 .count = ARRAY_SIZE(tuner_temic_4036fy5_ntsc_ranges), 204 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), 215 .count = ARRAY_SIZE(tuner_alps_tsb_1_ranges), [all …]
|
/Linux-v4.19/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() 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() 383 len[count] = bar[count] & 0xFFFFFFFC; in configure_device() 384 len[count] = ~len[count] + 1; in configure_device() 386 debug("len[count] in IO %x, count %d\n", len[count], count); in configure_device() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/tty/ |
D | tty_ldsem.c | 90 atomic_long_set(&sem->count, LDSEM_UNLOCKED); in __init_ldsem() 101 long adjust, count; in __ldsem_wake_readers() local 109 count = atomic_long_add_return(adjust, &sem->count); in __ldsem_wake_readers() 111 if (count > 0) in __ldsem_wake_readers() 113 if (atomic_long_try_cmpxchg(&sem->count, &count, count - adjust)) in __ldsem_wake_readers() 134 long count = atomic_long_add_return(LDSEM_ACTIVE_BIAS, &sem->count); in writer_trylock() local 136 if ((count & LDSEM_ACTIVE_MASK) == LDSEM_ACTIVE_BIAS) in writer_trylock() 138 if (atomic_long_try_cmpxchg(&sem->count, &count, count - LDSEM_ACTIVE_BIAS)) in writer_trylock() 180 down_read_failed(struct ld_semaphore *sem, long count, long timeout) in down_read_failed() argument 194 if (atomic_long_try_cmpxchg(&sem->count, &count, count + adjust)) { in down_read_failed() [all …]
|
/Linux-v4.19/drivers/platform/chrome/ |
D | cros_ec_sysfs.c | 42 int count = 0; in reboot_show() local 44 count += scnprintf(buf + count, PAGE_SIZE - count, in reboot_show() 46 count += scnprintf(buf + count, PAGE_SIZE - count, in reboot_show() 48 return count; in reboot_show() 53 const char *buf, size_t count) in reboot_store() argument 108 count = -EINVAL; in reboot_store() 118 count = ret; in reboot_store() 121 return count; in reboot_store() 133 int count = 0; in version_show() local 147 count = ret; in version_show() [all …]
|
/Linux-v4.19/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 …]
|
/Linux-v4.19/drivers/scsi/pcmcia/ |
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 …]
|
/Linux-v4.19/arch/arm64/kernel/ |
D | io.c | 26 void __memcpy_fromio(void *to, const volatile void __iomem *from, size_t count) in __memcpy_fromio() argument 28 while (count && !IS_ALIGNED((unsigned long)from, 8)) { in __memcpy_fromio() 32 count--; in __memcpy_fromio() 35 while (count >= 8) { in __memcpy_fromio() 39 count -= 8; in __memcpy_fromio() 42 while (count) { in __memcpy_fromio() 46 count--; in __memcpy_fromio() 54 void __memcpy_toio(volatile void __iomem *to, const void *from, size_t count) in __memcpy_toio() argument 56 while (count && !IS_ALIGNED((unsigned long)to, 8)) { in __memcpy_toio() 60 count--; in __memcpy_toio() [all …]
|
/Linux-v4.19/lib/ |
D | lockref.c | 44 new.count++; in lockref_get() 50 lockref->count++; in lockref_get() 65 new.count++; in lockref_get_not_zero() 66 if (old.count <= 0) in lockref_get_not_zero() 74 if (lockref->count > 0) { in lockref_get_not_zero() 75 lockref->count++; in lockref_get_not_zero() 93 new.count--; in lockref_put_not_zero() 94 if (old.count <= 1) in lockref_put_not_zero() 102 if (lockref->count > 1) { in lockref_put_not_zero() 103 lockref->count--; in lockref_put_not_zero() [all …]
|
D | iomap.c | 41 static int count = 10; in bad_io_access() local 42 if (count) { in bad_io_access() 43 count--; in bad_io_access() 146 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument 148 while (--count >= 0) { in mmio_insb() 154 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument 156 while (--count >= 0) { in mmio_insw() 162 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument 164 while (--count >= 0) { in mmio_insl() 173 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument [all …]
|
/Linux-v4.19/arch/alpha/include/asm/ |
D | rwsem.h | 29 oldcount = sem->count.counter; in ___down_read() 30 sem->count.counter += RWSEM_ACTIVE_READ_BIAS; in ___down_read() 42 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in ___down_read() 43 :"Ir" (RWSEM_ACTIVE_READ_BIAS), "m" (sem->count) : "memory"); in ___down_read() 70 res = atomic_long_read(&sem->count); in __down_read_trylock() 76 res = atomic_long_cmpxchg(&sem->count, old, new); in __down_read_trylock() 85 oldcount = sem->count.counter; in ___down_write() 86 sem->count.counter += RWSEM_ACTIVE_WRITE_BIAS; in ___down_write() 98 :"=&r" (oldcount), "=m" (sem->count), "=&r" (temp) in ___down_write() 99 :"Ir" (RWSEM_ACTIVE_WRITE_BIAS), "m" (sem->count) : "memory"); in ___down_write() [all …]
|
/Linux-v4.19/drivers/video/fbdev/ |
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 …]
|
/Linux-v4.19/arch/sparc/lib/ |
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 …]
|
/Linux-v4.19/drivers/gpu/drm/msm/disp/mdp5/ |
D | mdp5_cfg.c | 28 .count = 1, 42 .count = 5, 47 .count = 3, 56 .count = 3, 64 .count = 2, 71 .count = 5, 90 .count = 3, 94 .count = 3, 112 .count = 1, 126 .count = 5, [all …]
|
/Linux-v4.19/drivers/net/wireless/broadcom/b43legacy/ |
D | sysfs.c | 38 static int get_integer(const char *buf, size_t count) in get_integer() argument 43 if (count == 0) in get_integer() 45 count = min_t(size_t, count, 10); in get_integer() 46 memcpy(tmp, buf, count); in get_integer() 52 static int get_boolean(const char *buf, size_t count) in get_boolean() argument 54 if (count != 0) { in get_boolean() 59 if (count >= 4 && memcmp(buf, "true", 4) == 0) in get_boolean() 61 if (count >= 5 && memcmp(buf, "false", 5) == 0) in get_boolean() 63 if (count >= 3 && memcmp(buf, "yes", 3) == 0) in get_boolean() 65 if (count >= 2 && memcmp(buf, "no", 2) == 0) in get_boolean() [all …]
|
/Linux-v4.19/arch/nios2/lib/ |
D | memmove.c | 13 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-v4.19/arch/sh/kernel/ |
D | iomap.c | 80 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument 82 while (--count >= 0) { in mmio_insb() 89 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument 91 while (--count >= 0) { in mmio_insw() 98 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument 100 while (--count >= 0) { in mmio_insl() 107 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument 109 while (--count >= 0) { in mmio_outsb() 115 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument 117 while (--count >= 0) { in mmio_outsw() [all …]
|
D | io.c | 19 void memcpy_fromio(void *to, const volatile void __iomem *from, unsigned long count) in memcpy_fromio() argument 26 if ((count >= 0x20) && in memcpy_fromio() 53 : "=&r" (to), "=&r" (count), in memcpy_fromio() 56 : "7"(from), "0" (to), "1" (count) in memcpy_fromio() 62 for (; count > 3; count -= 4) { in memcpy_fromio() 69 for (; count > 0; count--) { in memcpy_fromio() 82 void memcpy_toio(volatile void __iomem *to, const void *from, unsigned long count) in memcpy_toio() argument 85 for ( ; count > 3; count -= 4) { in memcpy_toio() 92 for (; count > 0; count--) { in memcpy_toio() 106 void memset_io(volatile void __iomem *dst, int c, unsigned long count) in memset_io() argument [all …]
|
/Linux-v4.19/arch/arm64/lib/ |
D | memset.S | 42 count .req x2 label 66 cmp count, #15 69 tbz count, #3, 1f 72 tbz count, #2, 2f 75 tbz count, #1, 3f 78 tbz count, #0, 4f 95 sub count, count, tmp2 102 cmp count, #64 105 ands tmp1, count, #0x30 120 ands count, count, #15 [all …]
|
/Linux-v4.19/drivers/acpi/acpica/ |
D | nsprepkg.c | 22 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-v4.19/include/linux/ |
D | vt_buffer.h | 29 static inline void scr_memsetw(u16 *s, u16 c, unsigned int count) in scr_memsetw() argument 32 count /= 2; in scr_memsetw() 33 while (count--) in scr_memsetw() 36 memset16(s, c, count / 2); in scr_memsetw() 42 static inline void scr_memcpyw(u16 *d, const u16 *s, unsigned int count) in scr_memcpyw() argument 45 count /= 2; in scr_memcpyw() 46 while (count--) in scr_memcpyw() 49 memcpy(d, s, count); in scr_memcpyw() 55 static inline void scr_memmovew(u16 *d, const u16 *s, unsigned int count) in scr_memmovew() argument 59 scr_memcpyw(d, s, count); in scr_memmovew() [all …]
|
/Linux-v4.19/arch/mips/lib/ |
D | iomap.c | 105 static inline void mmio_insb(void __iomem *addr, u8 *dst, int count) in mmio_insb() argument 107 while (--count >= 0) { in mmio_insb() 114 static inline void mmio_insw(void __iomem *addr, u16 *dst, int count) in mmio_insw() argument 116 while (--count >= 0) { in mmio_insw() 123 static inline void mmio_insl(void __iomem *addr, u32 *dst, int count) in mmio_insl() argument 125 while (--count >= 0) { in mmio_insl() 132 static inline void mmio_outsb(void __iomem *addr, const u8 *src, int count) in mmio_outsb() argument 134 while (--count >= 0) { in mmio_outsb() 140 static inline void mmio_outsw(void __iomem *addr, const u16 *src, int count) in mmio_outsw() argument 142 while (--count >= 0) { in mmio_outsw() [all …]
|
/Linux-v4.19/fs/sysv/ |
D | balloc.c | 48 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 …]
|