Home
last modified time | relevance | path

Searched refs:count (Results 101 – 125 of 9164) sorted by relevance

12345678910>>...367

/openbmc/linux/drivers/net/ipa/
H A Dipa_table.c167 u32 count; in ipa_filtered_valid() local
175 count = hweight64(filtered); in ipa_filtered_valid()
176 if (count > ipa->filter_count) { in ipa_filtered_valid()
178 count, ipa->filter_count); in ipa_filtered_valid()
187 static dma_addr_t ipa_table_addr(struct ipa *ipa, bool filter_mask, u16 count) in ipa_table_addr() argument
191 if (!count) in ipa_table_addr()
194 WARN_ON(count > max_t(u32, ipa->filter_count, ipa->route_count)); in ipa_table_addr()
203 bool hashed, bool ipv6, u16 first, u16 count) in ipa_table_reset_add() argument
220 size = count * sizeof(__le64); in ipa_table_reset_add()
221 addr = ipa_table_addr(ipa, false, count); in ipa_table_reset_add()
[all …]
/openbmc/linux/drivers/crypto/
H A Dpadlock-sha.c66 uint32_t *dst, size_t count) in padlock_output_block() argument
68 while (count--) in padlock_output_block()
73 unsigned int count, u8 *out) in padlock_sha1_finup() argument
91 if (state.count + count > ULONG_MAX) in padlock_sha1_finup()
92 return crypto_shash_finup(&dctx->fallback, in, count, out); in padlock_sha1_finup()
94 leftover = ((state.count - 1) & (SHA1_BLOCK_SIZE - 1)) + 1; in padlock_sha1_finup()
97 if (count > space) { in padlock_sha1_finup()
102 count -= space; in padlock_sha1_finup()
105 memcpy(state.buffer + leftover, in, count); in padlock_sha1_finup()
107 count += leftover; in padlock_sha1_finup()
[all …]
/openbmc/linux/lib/zstd/compress/
H A Dhist.c29 unsigned HIST_count_simple(unsigned* count, unsigned* maxSymbolValuePtr, in HIST_count_simple() argument
37 ZSTD_memset(count, 0, (maxSymbolValue+1) * sizeof(*count)); in HIST_count_simple()
42 count[*ip++]++; in HIST_count_simple()
45 while (!count[maxSymbolValue]) maxSymbolValue--; in HIST_count_simple()
50 if (count[s] > largestCount) largestCount = count[s]; in HIST_count_simple()
67 unsigned* count, unsigned* maxSymbolValuePtr, in HIST_count_parallel_wksp() argument
74 size_t const countSize = (*maxSymbolValuePtr + 1) * sizeof(*count); in HIST_count_parallel_wksp()
84 ZSTD_memset(count, 0, countSize); in HIST_count_parallel_wksp()
130 ZSTD_memmove(count, Counting1, countSize); /* in case count & Counting1 are overlapping */ in HIST_count_parallel_wksp()
140 size_t HIST_countFast_wksp(unsigned* count, unsigned* maxSymbolValuePtr, in HIST_countFast_wksp() argument
[all …]
/openbmc/linux/arch/powerpc/platforms/powernv/
H A Dopal-nvram.c26 static ssize_t opal_nvram_read(char *buf, size_t count, loff_t *index) in opal_nvram_read() argument
34 if ((off + count) > nvram_size) in opal_nvram_read()
35 count = nvram_size - off; in opal_nvram_read()
36 rc = opal_read_nvram(__pa(buf), count, off); in opal_nvram_read()
39 *index += count; in opal_nvram_read()
40 return count; in opal_nvram_read()
47 static ssize_t opal_nvram_write(char *buf, size_t count, loff_t *index) in opal_nvram_write() argument
55 if ((off + count) > nvram_size) in opal_nvram_write()
56 count = nvram_size - off; in opal_nvram_write()
59 rc = opal_write_nvram(__pa(buf), count, off); in opal_nvram_write()
[all …]
/openbmc/linux/drivers/spi/
H A Dspi-altera-core.c96 txd = hw->tx[hw->count]; in altera_spi_tx_word()
99 txd = (hw->tx[hw->count * 2] in altera_spi_tx_word()
100 | (hw->tx[hw->count * 2 + 1] << 8)); in altera_spi_tx_word()
103 txd = (hw->tx[hw->count * 4] in altera_spi_tx_word()
104 | (hw->tx[hw->count * 4 + 1] << 8) in altera_spi_tx_word()
105 | (hw->tx[hw->count * 4 + 2] << 16) in altera_spi_tx_word()
106 | (hw->tx[hw->count * 4 + 3] << 24)); in altera_spi_tx_word()
123 hw->rx[hw->count] = rxd; in altera_spi_rx_word()
126 hw->rx[hw->count * 2] = rxd; in altera_spi_rx_word()
127 hw->rx[hw->count * 2 + 1] = rxd >> 8; in altera_spi_rx_word()
[all …]
/openbmc/linux/drivers/ssb/
H A Dhost_soc.c42 size_t count, u16 offset, u8 reg_width) in ssb_host_soc_block_read() argument
54 while (count) { in ssb_host_soc_block_read()
57 count--; in ssb_host_soc_block_read()
64 WARN_ON(count & 1); in ssb_host_soc_block_read()
65 while (count) { in ssb_host_soc_block_read()
68 count -= 2; in ssb_host_soc_block_read()
75 WARN_ON(count & 3); in ssb_host_soc_block_read()
76 while (count) { in ssb_host_soc_block_read()
79 count -= 4; in ssb_host_soc_block_read()
115 size_t count, u16 offset, u8 reg_width) in ssb_host_soc_block_write() argument
[all …]
/openbmc/linux/tools/perf/util/intel-pt-decoder/
H A Dintel-pt-pkt-decoder.c81 int count; in intel_pt_get_long_tnt() local
88 for (count = 47; count; count--) { in intel_pt_get_long_tnt()
95 packet->count = count; in intel_pt_get_long_tnt()
134 unsigned int count = (52 - 5) >> 3; in intel_pt_get_vmcs() local
136 if (count < 1 || count > 7) in intel_pt_get_vmcs()
139 if (len < count + 2) in intel_pt_get_vmcs()
143 packet->count = count; in intel_pt_get_vmcs()
144 memcpy_le64(&packet->payload, buf + 2, count); in intel_pt_get_vmcs()
146 return count + 2; in intel_pt_get_vmcs()
186 packet->count = buf[5] | ((buf[6] & BIT(0)) << 8); in intel_pt_get_tma()
[all …]
/openbmc/qemu/hw/timer/
H A Di8254_common.c56 out = (d >= s->count); in pit_get_out()
59 if ((d % s->count) == 0 && d != 0) { in pit_get_out()
66 out = (d % s->count) < ((s->count + 1) >> 1); in pit_get_out()
70 out = (d == s->count); in pit_get_out()
88 if (d < s->count) { in pit_get_next_transition_time()
89 next_time = s->count; in pit_get_next_transition_time()
95 base = QEMU_ALIGN_DOWN(d, s->count); in pit_get_next_transition_time()
97 next_time = base + s->count; in pit_get_next_transition_time()
99 next_time = base + s->count + 1; in pit_get_next_transition_time()
103 base = QEMU_ALIGN_DOWN(d, s->count); in pit_get_next_transition_time()
[all …]
/openbmc/linux/drivers/ata/pata_parport/
H A Dfrpw.c56 static void frpw_read_block_int(struct pi_adapter *pi, char *buf, int count, in frpw_read_block_int() argument
64 for (k = 0; k < count; k++) { in frpw_read_block_int()
76 for (k = 0; k < count; k++) { in frpw_read_block_int()
86 for (k = 0; k < count; k++) in frpw_read_block_int()
94 for (k = 0; k < count - 2; k++) in frpw_read_block_int()
97 buf[count - 2] = r4(); in frpw_read_block_int()
98 buf[count - 1] = r4(); in frpw_read_block_int()
104 for (k = 0; k < count / 2 - 1; k++) in frpw_read_block_int()
107 buf[count - 2] = r4(); in frpw_read_block_int()
108 buf[count - 1] = r4(); in frpw_read_block_int()
[all …]
H A Depia.c126 static void epia_read_block(struct pi_adapter *pi, char *buf, int count) in epia_read_block() argument
135 for (k = 0; k < count; k++) { in epia_read_block()
147 for (k = 0; k < count; k++) { in epia_read_block()
158 for (k = 0; k < count; k++) { in epia_read_block()
166 if (count > 512) in epia_read_block()
169 for (k = 0; k < count; k++) in epia_read_block()
174 if (count > 512) in epia_read_block()
177 for (k = 0; k < count / 2; k++) in epia_read_block()
182 if (count > 512) in epia_read_block()
185 for (k = 0; k < count / 4; k++) in epia_read_block()
[all …]
/openbmc/linux/sound/firewire/fireworks/
H A Dfireworks_hwdep.c28 long count = 0; in hwdep_read_resp_buf() local
37 count += sizeof(type); in hwdep_read_resp_buf()
78 count += till_end; in hwdep_read_resp_buf()
95 return count; in hwdep_read_resp_buf()
99 hwdep_read_locked(struct snd_efw *efw, char __user *buf, long count, in hwdep_read_locked() argument
113 count = min_t(long, count, sizeof(event.lock_status)); in hwdep_read_locked()
115 if (copy_to_user(buf, &event, count)) in hwdep_read_locked()
118 return count; in hwdep_read_locked()
122 hwdep_read(struct snd_hwdep *hwdep, char __user *buf, long count, in hwdep_read() argument
150 count = hwdep_read_locked(efw, buf, count, offset); in hwdep_read()
[all …]
/openbmc/linux/drivers/base/firmware_loader/
H A Dsysfs.c48 const char *buf, size_t count) in timeout_store() argument
57 return count; in timeout_store()
155 const char *buf, size_t count) in firmware_loading_store() argument
159 ssize_t written = count; in firmware_loading_store()
232 loff_t offset, size_t count, bool read) in firmware_rw_data() argument
235 memcpy(buffer, fw_priv->data + offset, count); in firmware_rw_data()
237 memcpy(fw_priv->data + offset, buffer, count); in firmware_rw_data()
241 loff_t offset, size_t count, bool read) in firmware_rw() argument
243 while (count) { in firmware_rw()
246 int page_cnt = min_t(size_t, PAGE_SIZE - page_ofs, count); in firmware_rw()
[all …]
/openbmc/linux/drivers/accel/habanalabs/goya/
H A Dgoya_hwmgr.c56 const char *buf, size_t count) in mme_clk_store() argument
64 count = -ENODEV; in mme_clk_store()
69 count = -EPERM; in mme_clk_store()
76 count = -EINVAL; in mme_clk_store()
84 return count; in mme_clk_store()
105 const char *buf, size_t count) in tpc_clk_store() argument
113 count = -ENODEV; in tpc_clk_store()
118 count = -EPERM; in tpc_clk_store()
125 count = -EINVAL; in tpc_clk_store()
133 return count; in tpc_clk_store()
[all …]
/openbmc/linux/arch/ia64/lib/
H A Dio.c11 void memcpy_fromio(void *to, const volatile void __iomem *from, long count) in memcpy_fromio() argument
15 while (count) { in memcpy_fromio()
16 count--; in memcpy_fromio()
26 void memcpy_toio(volatile void __iomem *to, const void *from, long count) in memcpy_toio() argument
30 while (count) { in memcpy_toio()
31 count--; in memcpy_toio()
41 void memset_io(volatile void __iomem *dst, int c, long count) in memset_io() argument
45 while (count) { in memset_io()
46 count--; in memset_io()
/openbmc/u-boot/common/
H A Ds_record.c13 int srec_decode (char *input, int *count, ulong *addr, char *data) in srec_decode() argument
38 if ((*count = hex2_bin(input)) < 0) { in srec_decode()
42 chksum += *count; in srec_decode()
49 *count -= 3; /* - checksum and addr */ in srec_decode()
53 *count -= 3; /* - checksum and addr */ in srec_decode()
57 *count -= 4; /* - checksum and addr */ in srec_decode()
61 *count -= 5; /* - checksum and addr */ in srec_decode()
66 *count = 0; /* no data */ in srec_decode()
71 *count -= 5; /* - checksum and addr */ in srec_decode()
75 *count -= 4; /* - checksum and addr */ in srec_decode()
[all …]
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dsysfs.c23 static int get_integer(const char *buf, size_t count) in get_integer() argument
28 if (count == 0) in get_integer()
30 count = min_t(size_t, count, 10); in get_integer()
31 memcpy(tmp, buf, count); in get_integer()
42 ssize_t count = 0; in b43_attr_interfmode_show() local
56 count = in b43_attr_interfmode_show()
61 count = in b43_attr_interfmode_show()
66 count = in b43_attr_interfmode_show()
76 return count; in b43_attr_interfmode_show()
81 const char *buf, size_t count) in b43_attr_interfmode_store() argument
[all …]
/openbmc/linux/tools/testing/selftests/net/mptcp/
H A Dmptcp_join.sh1192 dd if=/dev/urandom of="$name" bs=1024 count=$size 2> /dev/null
1262 local count
1277 count=$(mptcp_lib_get_counter ${ns1} "MPTcpExtDataCsumErr")
1278 if [ -n "$count" ] && [ "$count" != "$csum_ns1" ]; then
1279 extra_msg+=" ns1=$count"
1281 if [ -z "$count" ]; then
1283 elif { [ "$count" != $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 0 ]; } ||
1284 { [ "$count" -lt $csum_ns1 ] && [ $allow_multi_errors_ns1 -eq 1 ]; }; then
1285 fail_test "got $count data checksum error[s] expected $csum_ns1"
1290 count=$(mptcp_lib_get_counter ${ns2} "MPTcpExtDataCsumErr")
[all …]
/openbmc/linux/arch/arm/mach-s3c/
H A Dpm-common.c27 void s3c_pm_do_save(struct sleep_save *ptr, int count) in s3c_pm_do_save() argument
29 for (; count > 0; count--, ptr++) { in s3c_pm_do_save()
46 void s3c_pm_do_restore(const struct sleep_save *ptr, int count) in s3c_pm_do_restore() argument
48 for (; count > 0; count--, ptr++) { in s3c_pm_do_restore()
69 void s3c_pm_do_restore_core(const struct sleep_save *ptr, int count) in s3c_pm_do_restore_core() argument
71 for (; count > 0; count--, ptr++) in s3c_pm_do_restore_core()
/openbmc/linux/drivers/s390/net/
H A Dqeth_l3_sys.c68 const char *buf, size_t count) in qeth_l3_dev_route_store() argument
101 return rc ? rc : count; in qeth_l3_dev_route_store()
105 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_route4_store() argument
110 QETH_PROT_IPV4, buf, count); in qeth_l3_dev_route4_store()
125 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_route6_store() argument
130 QETH_PROT_IPV6, buf, count); in qeth_l3_dev_route6_store()
145 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_sniffer_store() argument
186 return rc ? rc : count; in qeth_l3_dev_sniffer_store()
207 struct device_attribute *attr, const char *buf, size_t count) in qeth_l3_dev_hsuid_store() argument
264 return rc ? rc : count; in qeth_l3_dev_hsuid_store()
[all …]
/openbmc/linux/fs/hfs/
H A Dextent.c77 u16 count; in hfs_ext_find_block() local
80 count = be16_to_cpu(ext->count); in hfs_ext_find_block()
81 if (off < count) in hfs_ext_find_block()
83 off -= count; in hfs_ext_find_block()
92 u16 count = 0; in hfs_ext_block_count() local
95 count += be16_to_cpu(ext->count); in hfs_ext_block_count()
96 return count; in hfs_ext_block_count()
105 if (ext->count) in hfs_ext_lastblock()
107 return be16_to_cpu(ext->block) + be16_to_cpu(ext->count); in hfs_ext_lastblock()
216 be16_to_cpu(extent[i].count)); in hfs_dump_extent()
[all …]
/openbmc/linux/drivers/tty/
H A Dehv_bytechan.c140 unsigned int *count, in local_ev_byte_channel_send() argument
144 unsigned int c = *count; in local_ev_byte_channel_send()
151 return ev_byte_channel_send(handle, count, p); in local_ev_byte_channel_send()
168 int ret, count; in byte_channel_spin_send() local
171 count = 1; in byte_channel_spin_send()
173 &count, &data); in byte_channel_spin_send()
231 unsigned int count) in ehv_bc_console_byte_channel_send() argument
236 while (count) { in ehv_bc_console_byte_channel_send()
237 len = min_t(unsigned int, count, EV_BYTE_CHANNEL_MAX_BYTES); in ehv_bc_console_byte_channel_send()
241 count -= len; in ehv_bc_console_byte_channel_send()
[all …]
/openbmc/linux/drivers/infiniband/hw/qib/
H A Dqib_fs.c104 size_t count, loff_t *ppos) in driver_stats_read() argument
107 return simple_read_from_buffer(buf, count, ppos, &qib_stats, in driver_stats_read()
132 size_t count, loff_t *ppos) in driver_names_read() argument
134 return simple_read_from_buffer(buf, count, ppos, qib_statnames, in driver_names_read()
145 size_t count, loff_t *ppos) in dev_counters_read() argument
152 return simple_read_from_buffer(buf, count, ppos, counters, avail); in dev_counters_read()
157 size_t count, loff_t *ppos) in dev_names_read() argument
164 return simple_read_from_buffer(buf, count, ppos, names, avail); in dev_names_read()
179 size_t count, loff_t *ppos) in portnames_read() argument
186 return simple_read_from_buffer(buf, count, ppos, names, avail); in portnames_read()
[all …]
/openbmc/linux/drivers/net/ethernet/8390/
H A Dxsurf100.c96 unsigned int count) in xs100_write() argument
103 while (count > XS100_8390_DATA_AREA_SIZE) { in xs100_write()
108 count -= XS100_8390_DATA_AREA_SIZE; in xs100_write()
112 src, count & ~3); in xs100_write()
113 src += count & ~3; in xs100_write()
114 if (count & 2) { in xs100_write()
118 if (count & 1) in xs100_write()
122 static void xs100_read(struct net_device *dev, void *dst, unsigned int count) in xs100_read() argument
129 while (count > XS100_8390_DATA_AREA_SIZE) { in xs100_read()
134 count -= XS100_8390_DATA_AREA_SIZE; in xs100_read()
[all …]
/openbmc/linux/sound/soc/sof/
H A Dsof-client-ipc-msg-injector.c53 size_t count, loff_t *ppos) in sof_msg_inject_dfs_read() argument
59 if (!rhdr->hdr.size || !count || *ppos) in sof_msg_inject_dfs_read()
62 if (count > rhdr->hdr.size) in sof_msg_inject_dfs_read()
63 count = rhdr->hdr.size; in sof_msg_inject_dfs_read()
65 if (copy_to_user(buffer, priv->rx_buffer, count)) in sof_msg_inject_dfs_read()
68 *ppos += count; in sof_msg_inject_dfs_read()
69 return count; in sof_msg_inject_dfs_read()
74 size_t count, loff_t *ppos) in sof_msg_inject_ipc4_dfs_read() argument
82 if (!ipc4_msg->header_u64 || !count || *ppos) in sof_msg_inject_ipc4_dfs_read()
86 if (count < header_size) in sof_msg_inject_ipc4_dfs_read()
[all …]
/openbmc/linux/drivers/bcma/
H A Dhost_soc.c51 size_t count, u16 offset, u8 reg_width) in bcma_host_soc_block_read() argument
59 while (count) { in bcma_host_soc_block_read()
62 count--; in bcma_host_soc_block_read()
69 WARN_ON(count & 1); in bcma_host_soc_block_read()
70 while (count) { in bcma_host_soc_block_read()
73 count -= 2; in bcma_host_soc_block_read()
80 WARN_ON(count & 3); in bcma_host_soc_block_read()
81 while (count) { in bcma_host_soc_block_read()
84 count -= 4; in bcma_host_soc_block_read()
95 size_t count, u16 offset, u8 reg_width) in bcma_host_soc_block_write() argument
[all …]

12345678910>>...367