/openbmc/linux/arch/parisc/lib/ |
H A D | iomap.c | 106 static void ioport_read8r(const void __iomem *addr, void *dst, unsigned long count) in ioport_read8r() argument 108 insb(ADDR2PORT(addr), dst, count); in ioport_read8r() 111 static void ioport_read16r(const void __iomem *addr, void *dst, unsigned long count) in ioport_read16r() argument 113 insw(ADDR2PORT(addr), dst, count); in ioport_read16r() 116 static void ioport_read32r(const void __iomem *addr, void *dst, unsigned long count) in ioport_read32r() argument 118 insl(ADDR2PORT(addr), dst, count); in ioport_read32r() 231 static void iomem_read8r(const void __iomem *addr, void *dst, unsigned long count) in iomem_read8r() argument 233 while (count--) { in iomem_read8r() 239 static void iomem_read16r(const void __iomem *addr, void *dst, unsigned long count) in iomem_read16r() argument 241 while (count--) { in iomem_read16r() [all …]
|
H A D | checksum.c | 39 int odd, count; in do_csum() local 50 count = len >> 1; /* nr of 16-bit words.. */ in do_csum() 51 if (count) { in do_csum() 54 count--; in do_csum() 58 count >>= 1; /* nr of 32-bit words.. */ in do_csum() 59 if (count) { in do_csum() 60 while (count >= 4) { in do_csum() 70 count -= 4; in do_csum() 73 while (count) { in do_csum() 75 count--; in do_csum()
|
/openbmc/linux/arch/arm64/lib/ |
H A D | copy_template.S | 26 count .req x2 label 43 cmp count, #16 50 sub count, count, tmp2 74 cmp count, #64 85 ands tmp1, count, #0x30 110 tbz count, #3, 1f 114 tbz count, #2, 2f 118 tbz count, #1, 3f 122 tbz count, #0, .Lexitfunc 129 subs count, count, #128 [all …]
|
/openbmc/linux/drivers/gpu/drm/tests/ |
H A D | drm_mm_test.c | 50 unsigned long count; in assert_no_holes() local 52 count = 0; in assert_no_holes() 54 count++; in assert_no_holes() 55 if (count) { in assert_no_holes() 57 "Expected to find no holes (after reserve), found %lu instead\n", count); in assert_no_holes() 75 unsigned long count; in assert_one_hole() local 81 count = 0; in assert_one_hole() 90 count++; in assert_one_hole() 92 if (count != 1) { in assert_one_hole() 93 KUNIT_FAIL(test, "Expected to find one hole, found %lu instead\n", count); in assert_one_hole() [all …]
|
/openbmc/linux/drivers/misc/eeprom/ |
H A D | at24.c | 88 void (*read_post)(unsigned int off, char *buf, size_t count); 123 void (*read_post)(unsigned int off, char *buf, size_t count); 143 static void at24_read_post_vaio(unsigned int off, char *buf, size_t count) in at24_read_post_vaio() argument 156 for (i = 0; i < count; i++) { in at24_read_post_vaio() 306 unsigned int offset, size_t count) in at24_adjust_read_count() argument 319 if (count > remainder) in at24_adjust_read_count() 320 count = remainder; in at24_adjust_read_count() 323 if (count > at24_io_limit) in at24_adjust_read_count() 324 count = at24_io_limit; in at24_adjust_read_count() 326 return count; in at24_adjust_read_count() [all …]
|
/openbmc/linux/net/ethtool/ |
H A D | strset.c | 11 unsigned int count; member 27 .count = ARRAY_SIZE(netdev_features_strings), 32 .count = ARRAY_SIZE(rss_hash_func_strings), 37 .count = ARRAY_SIZE(tunable_strings), 45 .count = ARRAY_SIZE(phy_tunable_strings), 50 .count = __ETHTOOL_LINK_MODE_MASK_NBITS, 55 .count = NETIF_MSG_CLASS_COUNT, 60 .count = WOL_MODE_COUNT, 65 .count = __SOF_TIMESTAMPING_CNT, 70 .count = __HWTSTAMP_TX_CNT, [all …]
|
/openbmc/linux/drivers/acpi/acpica/ |
H A D | utbuffer.c | 34 void acpi_ut_dump_buffer(u8 *buffer, u32 count, u32 display, u32 base_offset) in acpi_ut_dump_buffer() argument 48 if ((count < 4) || (count & 0x01)) { in acpi_ut_dump_buffer() 54 while (i < count) { in acpi_ut_dump_buffer() 65 if (i + j >= count) { in acpi_ut_dump_buffer() 119 if (i + j >= count) { in acpi_ut_dump_buffer() 170 acpi_ut_debug_dump_buffer(u8 *buffer, u32 count, u32 display, u32 component_id) in acpi_ut_debug_dump_buffer() argument 180 acpi_ut_dump_buffer(buffer, count, display, 0); in acpi_ut_debug_dump_buffer() 206 u8 *buffer, u32 count, u32 display, u32 base_offset) in acpi_ut_dump_buffer_to_file() argument 218 if ((count < 4) || (count & 0x01)) { in acpi_ut_dump_buffer_to_file() 224 while (i < count) { in acpi_ut_dump_buffer_to_file() [all …]
|
/openbmc/linux/fs/afs/ |
H A D | vlclient.c | 185 u32 uniquifier, nentries, count; in afs_deliver_vl_get_addrs_u() local 189 call->unmarshall, iov_iter_count(call->iter), call->count); in afs_deliver_vl_get_addrs_u() 208 count = ntohl(*bp); in afs_deliver_vl_get_addrs_u() 210 nentries = min(nentries, count); in afs_deliver_vl_get_addrs_u() 216 call->count = count; in afs_deliver_vl_get_addrs_u() 221 count = min(call->count, 4U); in afs_deliver_vl_get_addrs_u() 222 afs_extract_to_buf(call, count * sizeof(__be32)); in afs_deliver_vl_get_addrs_u() 226 ret = afs_extract_data(call, call->count > 4); in afs_deliver_vl_get_addrs_u() 232 count = min(call->count, 4U); in afs_deliver_vl_get_addrs_u() 233 for (i = 0; i < count; i++) in afs_deliver_vl_get_addrs_u() [all …]
|
/openbmc/linux/security/selinux/ss/ |
H A D | sidtab.c | 44 s->count = 0; in sidtab_init() 148 static u32 sidtab_level_from_count(u32 count) in sidtab_level_from_count() argument 153 while (count > capacity) { in sidtab_level_from_count() 225 u32 count = smp_load_acquire(&s->count); in sidtab_lookup() local 227 if (index >= count) in sidtab_lookup() 269 u32 count, hash = context_compute_hash(context); in sidtab_context_to_sid() local 295 count = s->count; in sidtab_context_to_sid() 299 if (count >= SIDTAB_MAX) in sidtab_context_to_sid() 304 dst = sidtab_do_lookup(s, count, 1); in sidtab_context_to_sid() 308 dst->sid = index_to_sid(count); in sidtab_context_to_sid() [all …]
|
/openbmc/linux/drivers/mfd/ |
H A D | aat2870-core.c | 219 ssize_t count = 0; in aat2870_dump_reg() local 222 count += sprintf(buf, "aat2870 registers\n"); in aat2870_dump_reg() 224 count += snprintf(buf + count, PAGE_SIZE - count, "0x%02x: ", addr); in aat2870_dump_reg() 225 if (count >= PAGE_SIZE - 1) in aat2870_dump_reg() 230 count += snprintf(buf + count, PAGE_SIZE - count, in aat2870_dump_reg() 233 count += snprintf(buf + count, PAGE_SIZE - count, in aat2870_dump_reg() 236 if (count >= PAGE_SIZE - 1) in aat2870_dump_reg() 239 count += snprintf(buf + count, PAGE_SIZE - count, "\n"); in aat2870_dump_reg() 240 if (count >= PAGE_SIZE - 1) in aat2870_dump_reg() 245 if (count >= PAGE_SIZE) in aat2870_dump_reg() [all …]
|
/openbmc/qemu/target/i386/hvf/ |
H A D | x86_emu.c | 49 int direction, int size, uint32_t count); 976 uint8_t count; in exec_shl() local 981 count = decode->op[1].val; in exec_shl() 982 count &= 0x1f; /* count is masked to 5 bits*/ in exec_shl() 983 if (!count) { in exec_shl() 991 if (count <= 8) { in exec_shl() 992 res = (decode->op[0].val << count); in exec_shl() 993 cf = (decode->op[0].val >> (8 - count)) & 0x1; in exec_shl() 1007 if (count <= 16) { in exec_shl() 1008 res = (decode->op[0].val << count); in exec_shl() [all …]
|
/openbmc/linux/kernel/locking/ |
H A D | rwsem.c | 71 #c, atomic_long_read(&(sem)->count), \ 193 long count = atomic_long_read(&sem->count); in is_rwsem_reader_owned() local 195 if (count & RWSEM_WRITER_MASK) in is_rwsem_reader_owned() 243 *cntp = atomic_long_add_return_acquire(RWSEM_READER_BIAS, &sem->count); in rwsem_read_trylock() 260 if (atomic_long_try_cmpxchg_acquire(&sem->count, &tmp, RWSEM_WRITER_LOCKED)) { in rwsem_write_trylock() 323 atomic_long_set(&sem->count, RWSEM_UNLOCKED_VALUE); in __init_rwsem() 393 atomic_long_andnot(RWSEM_FLAG_HANDOFF | RWSEM_FLAG_WAITERS, &sem->count); in rwsem_del_waiter() 446 if (unlikely(atomic_long_read(&sem->count) < 0)) in rwsem_mark_wake() 458 oldcount = atomic_long_fetch_add(adjustment, &sem->count); in rwsem_mark_wake() 473 atomic_long_add(-adjustment, &sem->count); in rwsem_mark_wake() [all …]
|
/openbmc/linux/drivers/acpi/ |
H A D | custom_method.c | 23 size_t count, loff_t *ppos) in cm_write() argument 39 if (count <= sizeof(struct acpi_table_header)) in cm_write() 56 (*ppos + count > max_size) || in cm_write() 57 (*ppos + count < count) || in cm_write() 58 (count > uncopied_bytes)) { in cm_write() 64 if (copy_from_user(buf + (*ppos), user_buf, count)) { in cm_write() 70 uncopied_bytes -= count; in cm_write() 71 *ppos += count; in cm_write() 82 return count; in cm_write()
|
/openbmc/linux/drivers/firmware/tegra/ |
H A D | ivc.c | 57 u32 count; member 66 u32 count; member 102 u32 tx = tegra_ivc_header_read_field(map, tx.count); in tegra_ivc_empty() 103 u32 rx = tegra_ivc_header_read_field(map, rx.count); in tegra_ivc_empty() 123 u32 tx = tegra_ivc_header_read_field(map, tx.count); in tegra_ivc_full() 124 u32 rx = tegra_ivc_header_read_field(map, rx.count); in tegra_ivc_full() 135 u32 tx = tegra_ivc_header_read_field(map, tx.count); in tegra_ivc_available() 136 u32 rx = tegra_ivc_header_read_field(map, rx.count); in tegra_ivc_available() 149 unsigned int count = tegra_ivc_header_read_field(&ivc->tx.map, tx.count); in tegra_ivc_advance_tx() local 151 tegra_ivc_header_write_field(&ivc->tx.map, tx.count, count + 1); in tegra_ivc_advance_tx() [all …]
|
/openbmc/linux/drivers/char/ |
H A D | mem.c | 53 static inline int valid_phys_addr_range(phys_addr_t addr, size_t count) in valid_phys_addr_range() argument 55 return addr + count <= __pa(high_memory); in valid_phys_addr_range() 106 size_t count, loff_t *ppos) in read_mem() argument 117 if (!valid_phys_addr_range(p, count)) in read_mem() 123 sz = size_inside_page(p, count); in read_mem() 129 count -= sz; in read_mem() 139 while (count > 0) { in read_mem() 143 sz = size_inside_page(p, count); in read_mem() 177 count -= sz; in read_mem() 193 size_t count, loff_t *ppos) in write_mem() argument [all …]
|
/openbmc/linux/drivers/w1/slaves/ |
H A D | w1_ds2408.c | 69 size_t count) in state_read() argument 73 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in state_read() 74 if (count != 1 || off != 0) in state_read() 81 loff_t off, size_t count) in output_read() argument 85 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in output_read() 86 if (count != 1 || off != 0) in output_read() 94 loff_t off, size_t count) in activity_read() argument 98 bin_attr->attr.name, kobj, (unsigned int)off, count, buf); in activity_read() 99 if (count != 1 || off != 0) in activity_read() 107 loff_t off, size_t count) in cond_search_mask_read() argument [all …]
|
H A D | w1_ds2438.c | 66 size_t count; in w1_ds2438_get_page() local 81 count = w1_read_block(sl->master, buf, DS2438_PAGE_SIZE + 1); in w1_ds2438_get_page() 82 if (count == DS2438_PAGE_SIZE + 1) { in w1_ds2438_get_page() 292 loff_t off, size_t count) in iad_write() argument 297 if (count != 1 || off != 0) in iad_write() 314 loff_t off, size_t count) in iad_read() argument 326 ret = snprintf(buf, count, "%i\n", voltage); in iad_read() 335 loff_t off, size_t count) in page0_read() argument 349 if (count > DS2438_PAGE_SIZE) in page0_read() 350 count = DS2438_PAGE_SIZE; in page0_read() [all …]
|
/openbmc/linux/arch/mips/kernel/ |
H A D | rtlx.c | 242 ssize_t rtlx_read(int index, void __user *buff, size_t count) in rtlx_read() argument 258 count = min(count, in rtlx_read() 263 fl = min(count, (size_t)lx->buffer_size - lx->lx_read); in rtlx_read() 270 if (count - fl) in rtlx_read() 271 failed = copy_to_user(buff + fl, lx->lx_buffer, count - fl); in rtlx_read() 274 count -= failed; in rtlx_read() 277 lx->lx_read = (lx->lx_read + count) % lx->buffer_size; in rtlx_read() 281 return count; in rtlx_read() 284 ssize_t rtlx_write(int index, const void __user *buffer, size_t count) in rtlx_write() argument 301 count = min_t(size_t, count, write_spacefree(rt_read, rt->rt_write, in rtlx_write() [all …]
|
/openbmc/linux/drivers/ata/pata_parport/ |
H A D | epat.c | 85 static void epat_read_block(struct pi_adapter *pi, char *buf, int count) in epat_read_block() argument 94 for (k = 0; k < count; k++) { in epat_read_block() 95 if (k == count-1) in epat_read_block() 112 for (k = 0; k < count; k++) { in epat_read_block() 113 if (k == count - 1) in epat_read_block() 126 for (k = 0; k < count - 1; k++) { in epat_read_block() 132 buf[count - 1] = r0(); in epat_read_block() 138 for (k = 0; k < count - 1; k++) in epat_read_block() 141 buf[count - 1] = r4(); in epat_read_block() 147 for (k = 0; k < count / 2 - 1; k++) in epat_read_block() [all …]
|
/openbmc/linux/drivers/clocksource/ |
H A D | i8253.c | 41 int count; in i8253_read() local 60 count = inb_p(PIT_CH0); /* read the latched count */ in i8253_read() 61 count |= inb_p(PIT_CH0) << 8; in i8253_read() 64 if (count > PIT_LATCH) { in i8253_read() 68 count = PIT_LATCH - 1; in i8253_read() 84 if (count > old_count && jifs == old_jifs) in i8253_read() 85 count = old_count; in i8253_read() 87 old_count = count; in i8253_read() 92 count = (PIT_LATCH - 1) - count; in i8253_read() 94 return (u64)(jifs * PIT_LATCH) + count; in i8253_read()
|
/openbmc/linux/drivers/media/usb/au0828/ |
H A D | au0828-i2c.c | 35 int count; in i2c_wait_read_ack() local 37 for (count = 0; count < I2C_WAIT_RETRY; count++) { in i2c_wait_read_ack() 43 if (I2C_WAIT_RETRY == count) in i2c_wait_read_ack() 58 int count; in i2c_wait_read_done() local 60 for (count = 0; count < I2C_WAIT_RETRY; count++) { in i2c_wait_read_done() 66 if (I2C_WAIT_RETRY == count) in i2c_wait_read_done() 81 int count; in i2c_wait_write_done() local 83 for (count = 0; count < I2C_WAIT_RETRY; count++) { in i2c_wait_write_done() 89 if (I2C_WAIT_RETRY == count) in i2c_wait_write_done() 104 int count; in i2c_wait_done() local [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/map_tests/ |
H A D | htab_map_batch_ops.c | 79 __u32 batch, count, total, total_success; in __test_map_lookup_and_delete_batch() local 108 count = max_entries; in __test_map_lookup_and_delete_batch() 110 values, &count, &opts); in __test_map_lookup_and_delete_batch() 118 count = 0; in __test_map_lookup_and_delete_batch() 120 values, &count, &opts); in __test_map_lookup_and_delete_batch() 126 count = max_entries; in __test_map_lookup_and_delete_batch() 128 values, &count, &opts); in __test_map_lookup_and_delete_batch() 131 CHECK(count != max_entries, "count = max_entries", in __test_map_lookup_and_delete_batch() 132 "count = %u, max_entries = %u\n", count, max_entries); in __test_map_lookup_and_delete_batch() 149 count = step; in __test_map_lookup_and_delete_batch() [all …]
|
/openbmc/linux/drivers/vfio/pci/ |
H A D | vfio_pci_rdwr.c | 100 loff_t off, size_t count, size_t x_start, in do_io_rw() argument 106 while (count) { in do_io_rw() 110 fillable = min(count, (size_t)(x_start - off)); in do_io_rw() 112 fillable = count; in do_io_rw() 184 filled = min(count, (size_t)(x_end - off)); in do_io_rw() 195 count -= filled; in do_io_rw() 229 size_t count, loff_t *ppos, bool iswrite) in vfio_pci_bar_rw() argument 251 count = min(count, (size_t)(end - pos)); in vfio_pci_bar_rw() 281 count, x_start, x_end, iswrite); in vfio_pci_bar_rw() 294 size_t count, loff_t *ppos, bool iswrite) in vfio_pci_vga_rw() argument [all …]
|
/openbmc/linux/arch/ia64/include/asm/ |
H A D | io.h | 92 extern int valid_phys_addr_range (phys_addr_t addr, size_t count); /* efi.c */ 93 extern int valid_mmap_phys_addr_range (unsigned long pfn, size_t count); 188 static inline void insb(unsigned long port, void *dst, unsigned long count) in insb() argument 192 while (count--) in insb() 197 static inline void insw(unsigned long port, void *dst, unsigned long count) in insw() argument 201 while (count--) in insw() 206 static inline void insl(unsigned long port, void *dst, unsigned long count) in insl() argument 210 while (count--) in insl() 216 unsigned long count) in outsb() argument 220 while (count--) in outsb() [all …]
|
/openbmc/linux/include/xen/ |
H A D | mem-reservation.h | 29 void __xenmem_reservation_va_mapping_update(unsigned long count, 33 void __xenmem_reservation_va_mapping_reset(unsigned long count, 37 static inline void xenmem_reservation_va_mapping_update(unsigned long count, in xenmem_reservation_va_mapping_update() argument 43 __xenmem_reservation_va_mapping_update(count, pages, frames); in xenmem_reservation_va_mapping_update() 47 static inline void xenmem_reservation_va_mapping_reset(unsigned long count, in xenmem_reservation_va_mapping_reset() argument 52 __xenmem_reservation_va_mapping_reset(count, pages); in xenmem_reservation_va_mapping_reset() 56 int xenmem_reservation_increase(int count, xen_pfn_t *frames); 58 int xenmem_reservation_decrease(int count, xen_pfn_t *frames);
|