Home
last modified time | relevance | path

Searched refs:count (Results 76 – 100 of 8922) sorted by relevance

12345678910>>...357

/openbmc/linux/tools/testing/selftests/drivers/net/mlxsw/
H A Dtc_flower_scale.sh70 local count=$1; shift
75 for ((i = 0; i < count; ++i)); do
92 local count=$1; shift
94 local last=$((count - 1))
96 tc_flower_rules_create $count $should_fail
101 [[ $((offload_count - 1)) -eq $count ]]
102 …check_err_fail $should_fail $? "Attempt to offload $count rules (actual result $((offload_count - …
107 local count=$1; shift
112 if ((count > 65536)); then
113 check_err 1 "Invalid count of $count. At most 65536 rules supported"
[all …]
/openbmc/linux/drivers/staging/sm750fb/
H A Dddk750_hwi2c.c87 unsigned char count, i; in hw_i2c_write_data() local
107 count = length - 1; in hw_i2c_write_data()
109 count = MAX_HWI2C_FIFO - 1; in hw_i2c_write_data()
110 poke32(I2C_BYTE_COUNT, count); in hw_i2c_write_data()
113 for (i = 0; i <= count; i++) in hw_i2c_write_data()
124 length -= (count + 1); in hw_i2c_write_data()
127 total_bytes += (count + 1); in hw_i2c_write_data()
152 unsigned char count, i; in hw_i2c_read_data() local
172 count = length - 1; in hw_i2c_read_data()
174 count = MAX_HWI2C_FIFO - 1; in hw_i2c_read_data()
[all …]
/openbmc/linux/lib/
H A Dpercpu_counter.c70 fbc->count = amount; in percpu_counter_set()
89 s64 count; in percpu_counter_add_batch() local
93 count = __this_cpu_read(*fbc->counters) + amount; in percpu_counter_add_batch()
94 if (abs(count) >= batch) { in percpu_counter_add_batch()
96 fbc->count += count; in percpu_counter_add_batch()
97 __this_cpu_sub(*fbc->counters, count - amount); in percpu_counter_add_batch()
115 s64 count; in percpu_counter_sync() local
118 count = __this_cpu_read(*fbc->counters); in percpu_counter_sync()
119 fbc->count += count; in percpu_counter_sync()
120 __this_cpu_sub(*fbc->counters, count); in percpu_counter_sync()
[all …]
/openbmc/linux/drivers/tty/
H A Dn_hdlc.c112 int count; member
118 int count; member
284 pr_debug("sending frame %p, count=%d\n", tbuf, tbuf->count); in n_hdlc_send_frames()
288 actual = tty->ops->write(tty, tbuf->buf, tbuf->count); in n_hdlc_send_frames()
298 actual = tbuf->count; in n_hdlc_send_frames()
300 if (actual == tbuf->count) { in n_hdlc_send_frames()
373 const u8 *flags, size_t count) in n_hdlc_tty_receive() argument
378 pr_debug("%s() called count=%zu\n", __func__, count); in n_hdlc_tty_receive()
380 if (count > maxframe) { in n_hdlc_tty_receive()
392 if (n_hdlc->rx_buf_list.count < MAX_RX_BUF_COUNT) in n_hdlc_tty_receive()
[all …]
/openbmc/linux/drivers/dma-buf/
H A Ddma-fence-unwrap.c90 int i, j, count; in __dma_fence_unwrap_merge() local
92 count = 0; in __dma_fence_unwrap_merge()
97 ++count; in __dma_fence_unwrap_merge()
111 if (count == 0) in __dma_fence_unwrap_merge()
114 array = kmalloc_array(count, sizeof(*array), GFP_KERNEL); in __dma_fence_unwrap_merge()
118 count = 0; in __dma_fence_unwrap_merge()
122 array[count++] = dma_fence_get(tmp); in __dma_fence_unwrap_merge()
132 if (count == 0 || count == 1) in __dma_fence_unwrap_merge()
135 sort(array, count, sizeof(*array), fence_cmp, NULL); in __dma_fence_unwrap_merge()
141 for (i = 1; i < count; i++) { in __dma_fence_unwrap_merge()
[all …]
/openbmc/linux/fs/
H A Dseq_file.c30 m->count = m->size; in seq_set_overflow()
97 m->count = m->from = 0; in traverse()
116 m->count = 0; in traverse()
121 if (pos + m->count > offset) { in traverse()
123 m->count -= m->from; in traverse()
126 pos += m->count; in traverse()
127 m->count = 0; in traverse()
137 m->count = 0; in traverse()
190 m->count = 0; in seq_read_iter()
201 m->count = 0; in seq_read_iter()
[all …]
/openbmc/qemu/util/
H A Dqdist.c49 void qdist_add(struct qdist *dist, double x, long count) in qdist_add() argument
61 entry->count += count; in qdist_add()
72 entry->count = count; in qdist_add()
114 if (dist->entries[0].count) { in qdist_pr_internal()
123 min = dist->entries[0].count; in qdist_pr_internal()
128 if (e->count < min) { in qdist_pr_internal()
129 min = e->count; in qdist_pr_internal()
131 if (e->count > max) { in qdist_pr_internal()
132 max = e->count; in qdist_pr_internal()
141 if (e->count) { in qdist_pr_internal()
[all …]
/openbmc/linux/net/smc/
H A Dsmc_cdc.h31 __be32 count; member
57 u32 count; member
93 curs->count += value; in smc_curs_add()
94 if (curs->count >= size) { in smc_curs_add()
96 curs->count -= size; in smc_curs_add()
155 ((size - old->count) + new->count)); in smc_curs_diff()
157 return max_t(int, 0, (new->count - old->count)); in smc_curs_diff()
168 (old->wrap == new->wrap && old->count > new->count)) in smc_curs_comp()
182 (size - old->count) + new->count + in smc_curs_diff_large()
188 (size - old->count) + new->count + in smc_curs_diff_large()
[all …]
/openbmc/linux/drivers/s390/char/
H A Dsclp_vt220.c305 const unsigned char *msg, int count, int convertlf) in sclp_vt220_add_msg() argument
313 if (count > sclp_vt220_space_left(request)) in sclp_vt220_add_msg()
314 count = sclp_vt220_space_left(request); in sclp_vt220_add_msg()
315 if (count <= 0) in sclp_vt220_add_msg()
324 (from < count) && (to < sclp_vt220_space_left(request)); in sclp_vt220_add_msg()
343 memcpy(buffer, (const void *) msg, count); in sclp_vt220_add_msg()
344 sccb->header.length += count; in sclp_vt220_add_msg()
345 sccb->evbuf.length += count; in sclp_vt220_add_msg()
346 return count; in sclp_vt220_add_msg()
399 __sclp_vt220_write(const unsigned char *buf, int count, int do_schedule, in __sclp_vt220_write() argument
[all …]
/openbmc/linux/drivers/net/wireless/ti/wlcore/
H A Ddebugfs.c31 int wl1271_format_buffer(char __user *userbuf, size_t count, in wl1271_format_buffer() argument
42 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in wl1271_format_buffer()
79 size_t count, loff_t *ppos) in tx_queue_len_read() argument
89 return simple_read_from_buffer(userbuf, count, ppos, buf, res); in tx_queue_len_read()
125 size_t count, loff_t *ppos) \
128 return wl1271_format_buffer(user_buf, count, \
135 size_t count, loff_t *ppos) \
141 ret = kstrtoul_from_user(user_buf, count, 10, &value); \
158 return count; \
176 size_t count, loff_t *ppos) in gpio_power_read() argument
[all …]
/openbmc/linux/include/linux/
H A Dnvram.h81 static inline ssize_t nvram_read_bytes(char *buf, size_t count, loff_t *ppos) in nvram_read_bytes() argument
89 for (i = *ppos; count > 0 && i < nvram_size; ++i, ++p, --count) in nvram_read_bytes()
95 static inline ssize_t nvram_write_bytes(char *buf, size_t count, loff_t *ppos) in nvram_write_bytes() argument
103 for (i = *ppos; count > 0 && i < nvram_size; ++i, ++p, --count) in nvram_write_bytes()
109 static inline ssize_t nvram_read(char *buf, size_t count, loff_t *ppos) in nvram_read() argument
113 return ppc_md.nvram_read(buf, count, ppos); in nvram_read()
116 return arch_nvram_ops.read(buf, count, ppos); in nvram_read()
118 return nvram_read_bytes(buf, count, ppos); in nvram_read()
121 static inline ssize_t nvram_write(char *buf, size_t count, loff_t *ppos) in nvram_write() argument
125 return ppc_md.nvram_write(buf, count, ppos); in nvram_write()
[all …]
/openbmc/linux/drivers/remoteproc/
H A Dremoteproc_debugfs.c43 size_t count, loff_t *ppos) in rproc_coredump_read() argument
52 return simple_read_from_buffer(userbuf, count, ppos, buf, len); in rproc_coredump_read()
72 const char __user *user_buf, size_t count, in rproc_coredump_write() argument
79 if (count < 1 || count > sizeof(buf)) in rproc_coredump_write()
82 ret = copy_from_user(buf, user_buf, count); in rproc_coredump_write()
87 if (buf[count - 1] == '\n') in rproc_coredump_write()
88 buf[count - 1] = '\0'; in rproc_coredump_write()
96 if (!strncmp(buf, "disabled", count)) { in rproc_coredump_write()
98 } else if (!strncmp(buf, "enabled", count)) { in rproc_coredump_write()
100 } else if (!strncmp(buf, "inline", count)) { in rproc_coredump_write()
[all …]
/openbmc/linux/arch/arm/boot/compressed/
H A Dstring.c26 void *__memmove(void *__dest, __const void *__src, size_t count) __alias(memmove);
27 void *__memset(void *s, int c, size_t count) __alias(memset);
64 void *memmove(void *__dest, __const void *__src, size_t count) in memmove() argument
73 return memcpy(__dest, __src, count); in memmove()
75 while (count--) in memmove()
76 d[count] = s[count]; in memmove()
89 size_t strnlen(const char *s, size_t count) in strnlen() argument
93 for (sc = s; count-- && *sc != '\0'; ++sc) in strnlen()
98 int memcmp(const void *cs, const void *ct, size_t count) in memcmp() argument
100 const unsigned char *su1 = cs, *su2 = ct, *end = su1 + count; in memcmp()
[all …]
/openbmc/linux/drivers/ata/pata_parport/
H A Dfriq.c69 static void friq_read_block_int(struct pi_adapter *pi, char *buf, int count, int regr) in friq_read_block_int() argument
76 for (k = 0; k < count; k++) { in friq_read_block_int()
87 for (k = 0; k < count; k++) { in friq_read_block_int()
96 for (k = 0; k < count - 2; k++) in friq_read_block_int()
99 buf[count - 2] = r4(); in friq_read_block_int()
100 buf[count - 1] = r4(); in friq_read_block_int()
105 for (k = 0; k < count / 2 - 1; k++) in friq_read_block_int()
108 buf[count - 2] = r4(); in friq_read_block_int()
109 buf[count - 1] = r4(); in friq_read_block_int()
114 for (k = 0; k < count / 4 - 1; k++) in friq_read_block_int()
[all …]
/openbmc/linux/fs/sysv/
H A Dialloc.c108 unsigned count; in sysv_free_inode() local
123 count = fs16_to_cpu(sbi, *sbi->s_sb_fic_count); in sysv_free_inode()
124 if (count < sbi->s_fic_size) { in sysv_free_inode()
125 *sv_sb_fic_inode(sb,count++) = cpu_to_fs16(sbi, ino); in sysv_free_inode()
126 *sbi->s_sb_fic_count = cpu_to_fs16(sbi, count); in sysv_free_inode()
142 unsigned count; in sysv_new_inode() local
152 count = fs16_to_cpu(sbi, *sbi->s_sb_fic_count); in sysv_new_inode()
153 if (count == 0 || (*sv_sb_fic_inode(sb,count-1) == 0)) { in sysv_new_inode()
154 count = refill_free_cache(sb); in sysv_new_inode()
155 if (count == 0) { in sysv_new_inode()
[all …]
/openbmc/linux/arch/powerpc/boot/
H A Ddiv64.S74 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)
93 slw r4,r4,r5 # LSW = LSW << count
[all …]
/openbmc/u-boot/lib/efi_selftest/
H A Defi_selftest_manageprotocols.c48 efi_status_t find_in_buffer(efi_handle_t handle, size_t count, in find_in_buffer() argument
53 for (i = 0; i < count; ++i) { in find_in_buffer()
140 efi_uintn_t count = 0; in execute() local
166 &count, &buffer); in execute()
171 buffer_size = count; in execute()
172 ret = find_in_buffer(handle1, count, buffer); in execute()
177 ret = find_in_buffer(handle2, count, buffer); in execute()
220 count = buffer_size; in execute()
222 &count, &buffer); in execute()
227 if (count != 2) { in execute()
[all …]
H A Defi_selftest_controllers.c42 efi_uintn_t *count) in count_child_controllers() argument
48 *count = 0; in count_child_controllers()
58 ++*count; in count_child_controllers()
203 efi_uintn_t count; in stop() local
222 &entry_buffer, &count); in stop()
227 while (count) { in stop()
228 if (entry_buffer[--count].attributes & in stop()
232 entry_buffer[count].agent_handle); in stop()
312 efi_uintn_t count; in execute() local
322 &count); in execute()
[all …]
/openbmc/linux/drivers/vfio/pci/
H A Dvfio_pci_config.c112 int (*readfn)(struct vfio_pci_core_device *vdev, int pos, int count,
114 int (*writefn)(struct vfio_pci_core_device *vdev, int pos, int count,
124 __le32 *val, int count) in vfio_user_config_read() argument
129 switch (count) { in vfio_user_config_read()
155 __le32 val, int count) in vfio_user_config_write() argument
160 switch (count) { in vfio_user_config_write()
176 int count, struct perm_bits *perm, in vfio_default_config_read() argument
181 memcpy(val, vdev->vconfig + pos, count); in vfio_default_config_read()
183 memcpy(&virt, perm->virt + offset, count); in vfio_default_config_read()
186 if (cpu_to_le32(~0U >> (32 - (count * 8))) != virt) { in vfio_default_config_read()
[all …]
/openbmc/linux/arch/ia64/lib/
H A Dcsum_partial_copy.c37 int odd, count; in do_csum_c() local
48 count = len >> 1; /* nr of 16-bit words.. */ in do_csum_c()
49 if (count) { in do_csum_c()
52 count--; in do_csum_c()
56 count >>= 1; /* nr of 32-bit words.. */ in do_csum_c()
57 if (count) { in do_csum_c()
60 count--; in do_csum_c()
64 count >>= 1; /* nr of 64-bit words.. */ in do_csum_c()
65 if (count) { in do_csum_c()
69 count--; in do_csum_c()
[all …]
/openbmc/linux/arch/arm64/lib/
H A Dmemcpy.S22 #define count x2 macro
41 #define G_l count
61 add srcend, src, count
62 add dstend, dstin, count
63 cmp count, 128
65 cmp count, 32
69 cmp count, 16
79 tbz count, 3, L(copy8)
89 tbz count, 2, L(copy4)
98 cbz count, L(copy0)
[all …]
/openbmc/linux/security/smack/
H A Dsmackfs.c445 size_t count, loff_t *ppos, in smk_write_rules_list() argument
467 if (count < SMK_OLOADLEN || count > SMK_LOADLEN) in smk_write_rules_list()
470 if (count >= PAGE_SIZE) { in smk_write_rules_list()
471 count = PAGE_SIZE - 1; in smk_write_rules_list()
476 data = memdup_user_nul(buf, count); in smk_write_rules_list()
485 while (count > 0 && (data[count - 1] != '\n')) in smk_write_rules_list()
486 --count; in smk_write_rules_list()
487 if (count == 0) { in smk_write_rules_list()
493 data[count] = '\0'; in smk_write_rules_list()
495 while (cnt < count) { in smk_write_rules_list()
[all …]
/openbmc/linux/arch/powerpc/kernel/ptrace/
H A Dptrace-view.c239 unsigned int pos, unsigned int count, const void *kbuf, in gpr_set() argument
248 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
252 if (!ret && count > 0) { in gpr_set()
253 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &reg, in gpr_set()
264 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in gpr_set()
270 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set()
274 if (!ret && count > 0) { in gpr_set()
275 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, &reg, in gpr_set()
283 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in gpr_set()
300 unsigned int pos, unsigned int count, const void *kbuf, in ppr_set() argument
[all …]
/openbmc/qemu/tests/qtest/libqos/
H A Dsdhci-cmd.c21 static ssize_t read_fifo(QTestState *qts, uint64_t reg, char *msg, size_t count) in read_fifo() argument
27 while (index < count) { in read_fifo()
28 size = count - index; in read_fifo()
46 size_t count) in write_fifo() argument
52 while (index < count) { in write_fifo()
53 size = count - index; in write_fifo()
67 static void fill_block(QTestState *qts, uint64_t reg, int count) in fill_block() argument
69 while (--count >= 0) { in fill_block()
86 size_t count) in sdhci_read_cmd() argument
88 sdhci_cmd_regs(qts, base_addr, count, 1, 0, in sdhci_read_cmd()
[all …]
/openbmc/linux/drivers/misc/altera-stapl/
H A Daltera-jtag.c117 u32 count, u32 start_index, in altera_set_dr_pre() argument
124 if (count > js->dr_pre) { in altera_set_dr_pre()
126 js->dr_pre_data = (u8 *)alt_malloc((count + 7) >> 3); in altera_set_dr_pre()
130 js->dr_pre = count; in altera_set_dr_pre()
132 js->dr_pre = count; in altera_set_dr_pre()
135 for (i = 0; i < count; ++i) { in altera_set_dr_pre()
155 int altera_set_ir_pre(struct altera_jtag *js, u32 count, u32 start_index, in altera_set_ir_pre() argument
162 if (count > js->ir_pre) { in altera_set_ir_pre()
164 js->ir_pre_data = (u8 *)alt_malloc((count + 7) >> 3); in altera_set_ir_pre()
168 js->ir_pre = count; in altera_set_ir_pre()
[all …]

12345678910>>...357