/openbmc/linux/arch/sparc/kernel/ |
H A D | ptrace_32.c | 108 unsigned int pos, unsigned int count, in genregs32_set() argument 119 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 122 if (ret || !count) in genregs32_set() 127 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 134 if (!count) in genregs32_set() 137 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 144 if (!count) in genregs32_set() 146 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() 149 if (ret || !count) in genregs32_set() 151 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs32_set() [all …]
|
H A D | ptrace_64.c | 269 unsigned int pos, unsigned int count, in genregs64_set() argument 278 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 281 if (!ret && count && pos < (32 * sizeof(u64))) { in genregs64_set() 287 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 297 if (!ret && count > 0) { in genregs64_set() 301 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 317 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 326 ret = user_regset_copyin(&pos, &count, &kbuf, &ubuf, in genregs64_set() 335 user_regset_copyin_ignore(&pos, &count, &kbuf, &ubuf, in genregs64_set() 373 unsigned int pos, unsigned int count, in fpregs64_set() argument [all …]
|
/openbmc/linux/tools/testing/selftests/bpf/ |
H A D | urandom_read.c | 27 void urandom_read(int fd, int count) in urandom_read() argument 32 for (i = 0; i < count; ++i) { in urandom_read() 36 urand_read_without_sema(i, count, BUF_SIZE); in urandom_read() 37 STAP_PROBE3(urand, read_with_sema, i, count, BUF_SIZE); in urandom_read() 40 urandlib_read_without_sema(i, count, BUF_SIZE); in urandom_read() 41 urandlib_read_with_sema(i, count, BUF_SIZE); in urandom_read() 55 int count = 4; in main() local 62 count = atoi(argv[1]); in main() 84 urandom_read(fd, count); in main()
|
H A D | xdping.c | 36 static int get_stats(int fd, __u16 count, __u32 raddr) in get_stats() argument 52 for (i = 0; i < count; i++) { in get_stats() 59 count + i + 1, in get_stats() 63 if (i < count) { in get_stats() 64 fprintf(stderr, "Expected %d samples, got %d.\n", count, i); in get_stats() 91 __u16 count = XDPING_DEFAULT_COUNT; in main() local 109 count = atoi(optarg); in main() 110 if (count < 1 || count > XDPING_MAX_COUNT) { in main() 221 pinginfo.seq = htons(count); in main() 222 pinginfo.count = count; in main() [all …]
|
/openbmc/linux/mm/damon/ |
H A D | dbgfs.c | 34 static char *user_input_str(const char __user *buf, size_t count, loff_t *ppos) in user_input_str() argument 43 kbuf = kmalloc(count + 1, GFP_KERNEL | __GFP_NOWARN); in user_input_str() 47 ret = simple_write_to_buffer(kbuf, count + 1, ppos, buf, count); in user_input_str() 48 if (ret != count) { in user_input_str() 58 char __user *buf, size_t count, loff_t *ppos) in dbgfs_attrs_read() argument 71 return simple_read_from_buffer(buf, count, ppos, kbuf, ret); in dbgfs_attrs_read() 75 const char __user *buf, size_t count, loff_t *ppos) in dbgfs_attrs_write() argument 82 kbuf = user_input_str(buf, count, ppos); in dbgfs_attrs_write() 103 ret = count; in dbgfs_attrs_write() 171 size_t count, loff_t *ppos) in dbgfs_schemes_read() argument [all …]
|
/openbmc/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | debugfs.c | 24 size_t count, loff_t *ppos) in iwl_dbgfs_ctdp_budget_read() argument 46 return simple_read_from_buffer(user_buf, count, ppos, buf, pos); in iwl_dbgfs_ctdp_budget_read() 50 size_t count, loff_t *ppos) in iwl_dbgfs_stop_ctdp_write() argument 65 return ret ?: count; in iwl_dbgfs_stop_ctdp_write() 69 size_t count, loff_t *ppos) in iwl_dbgfs_force_ctkill_write() argument 77 return count; in iwl_dbgfs_force_ctkill_write() 81 size_t count, loff_t *ppos) in iwl_dbgfs_tx_flush_write() argument 99 ? : count; in iwl_dbgfs_tx_flush_write() 108 ret = iwl_mvm_flush_tx_path(mvm, flush_arg) ? : count; in iwl_dbgfs_tx_flush_write() 115 size_t count, loff_t *ppos) in iwl_dbgfs_sta_drain_write() argument [all …]
|
/openbmc/linux/drivers/infiniband/hw/hfi1/ |
H A D | debugfs.c | 418 size_t count, loff_t *ppos) in dev_counters_read() argument 427 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in dev_counters_read() 433 size_t count, loff_t *ppos) in dev_names_read() argument 442 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in dev_names_read() 458 size_t count, loff_t *ppos) in portnames_read() argument 467 rval = simple_read_from_buffer(buf, count, ppos, names, avail); in portnames_read() 473 size_t count, loff_t *ppos) in portcntrs_debugfs_read() argument 482 rval = simple_read_from_buffer(buf, count, ppos, counters, avail); in portcntrs_debugfs_read() 501 size_t count, loff_t *ppos) in asic_flags_read() argument 544 ret = simple_read_from_buffer(buf, count, ppos, tmp, used); in asic_flags_read() [all …]
|
/openbmc/linux/drivers/gpu/drm/i915/gt/ |
H A D | selftest_timeline.c | 69 unsigned long count, max; member 90 unsigned int count, in __mock_hwsp_timeline() argument 96 while (count--) { in __mock_hwsp_timeline() 122 idx = state->count++ % state->max; in __mock_hwsp_timeline() 129 min(state->count, state->max), in __mock_hwsp_timeline() 132 count = i915_prandom_u32_max_state(min(state->count, state->max), in __mock_hwsp_timeline() 134 while (count--) { in __mock_hwsp_timeline() 135 idx = --state->count % state->max; in __mock_hwsp_timeline() 172 state.count = 0; in mock_hwsp_freelist() 291 unsigned long end_time, count; in bench_sync() local [all …]
|
/openbmc/linux/drivers/bluetooth/ |
H A D | btmrvl_debugfs.c | 22 const char __user *ubuf, size_t count, loff_t *ppos) in btmrvl_hscfgcmd_write() argument 27 ret = kstrtol_from_user(ubuf, count, 10, &result); in btmrvl_hscfgcmd_write() 38 return count; in btmrvl_hscfgcmd_write() 42 size_t count, loff_t *ppos) in btmrvl_hscfgcmd_read() argument 51 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_hscfgcmd_read() 62 size_t count, loff_t *ppos) in btmrvl_pscmd_write() argument 67 ret = kstrtol_from_user(ubuf, count, 10, &result); in btmrvl_pscmd_write() 78 return count; in btmrvl_pscmd_write() 83 size_t count, loff_t *ppos) in btmrvl_pscmd_read() argument 91 return simple_read_from_buffer(userbuf, count, ppos, buf, ret); in btmrvl_pscmd_read() [all …]
|
/openbmc/linux/arch/s390/include/asm/ |
H A D | idals.h | 90 nridaws = idal_nr_words(vaddr, ccw->count); in set_normalized_cda() 96 idal_create_words(idal, vaddr, ccw->count); in set_normalized_cda() 201 ccw->count = ib->size; in idal_buffer_set_cda() 208 idal_buffer_to_user(struct idal_buffer *ib, void __user *to, size_t count) in idal_buffer_to_user() argument 213 BUG_ON(count > ib->size); in idal_buffer_to_user() 214 for (i = 0; count > IDA_BLOCK_SIZE; i++) { in idal_buffer_to_user() 217 return left + count - IDA_BLOCK_SIZE; in idal_buffer_to_user() 219 count -= IDA_BLOCK_SIZE; in idal_buffer_to_user() 221 return copy_to_user(to, ib->data[i], count); in idal_buffer_to_user() 228 idal_buffer_from_user(struct idal_buffer *ib, const void __user *from, size_t count) in idal_buffer_from_user() argument [all …]
|
/openbmc/linux/drivers/staging/media/atomisp/pci/base/refcount/src/ |
H A D | refcount.c | 30 u32 count; member 115 entry->count = 0; in ia_css_refcount_uninit() 153 entry->count += 1; in ia_css_refcount_increment() 156 entry->count = 1; in ia_css_refcount_increment() 181 if (entry->count > 0) { in ia_css_refcount_decrement() 182 entry->count -= 1; in ia_css_refcount_decrement() 183 if (entry->count == 0) { in ia_css_refcount_decrement() 198 id, ptr, entry, entry->id, entry->count); in ia_css_refcount_decrement() 216 return (entry->count == 1); in ia_css_refcount_is_single() 225 u32 count = 0; in ia_css_refcount_clear() local [all …]
|
/openbmc/linux/drivers/counter/ |
H A D | rz-mtu3-cnt.c | 158 struct counter_count *count, u64 *val) in rz_mtu3_count_read() argument 160 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); in rz_mtu3_count_read() 164 ret = rz_mtu3_lock_if_counter_is_valid(counter, ch, priv, count->id); in rz_mtu3_count_read() 169 if (count->id == RZ_MTU3_32_BIT_CH) in rz_mtu3_count_read() 180 struct counter_count *count, const u64 val) in rz_mtu3_count_write() argument 182 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); in rz_mtu3_count_write() 186 ret = rz_mtu3_lock_if_counter_is_valid(counter, ch, priv, count->id); in rz_mtu3_count_write() 191 if (count->id == RZ_MTU3_32_BIT_CH) in rz_mtu3_count_write() 232 struct counter_count *count, in rz_mtu3_count_function_read() argument 235 struct rz_mtu3_channel *const ch = rz_mtu3_get_ch(counter, count->id); in rz_mtu3_count_function_read() [all …]
|
/openbmc/linux/tools/testing/selftests/powerpc/ |
H A D | utils.c | 31 int read_file(const char *path, char *buf, size_t count, size_t *len) in read_file() argument 42 rc = read(fd, buf, count); in read_file() 52 if (rc == count) { in read_file() 126 int write_file(const char *path, const char *buf, size_t count) in write_file() argument 136 rc = write(fd, buf, count); in write_file() 142 if (rc != count) { in write_file() 168 int read_debugfs_file(const char *subpath, char *buf, size_t count) in read_debugfs_file() argument 174 return read_file(path, buf, count, NULL); in read_debugfs_file() 177 int write_debugfs_file(const char *subpath, const char *buf, size_t count) in write_debugfs_file() argument 183 return write_file(path, buf, count); in write_debugfs_file() [all …]
|
/openbmc/linux/fs/xfs/libxfs/ |
H A D | xfs_attr_leaf.c | 114 ASSERT(!to->count && !to->usedbytes); in xfs_attr3_leaf_firstused_from_disk() 168 to->count = be16_to_cpu(hdr3->count); in xfs_attr3_leaf_hdr_from_disk() 182 to->count = be16_to_cpu(from->hdr.count); in xfs_attr3_leaf_hdr_from_disk() 210 hdr3->count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk() 225 to->hdr.count = cpu_to_be16(from->count); in xfs_attr3_leaf_hdr_to_disk() 341 if ((char *)&entries[ichdr.count] > in xfs_attr3_leaf_verify() 353 for (i = 0, ent = entries; i < ichdr.count; ent++, i++) { in xfs_attr3_leaf_verify() 724 end = sf->hdr.count; in xfs_attr_sf_findname() 784 sf->hdr.count++; in xfs_attr_shortform_add() 848 sf->hdr.count--; in xfs_attr_sf_removename() [all …]
|
/openbmc/linux/arch/x86/lib/ |
H A D | string_32.c | 34 char *strncpy(char *dest, const char *src, size_t count) in strncpy() argument 47 : "0" (src), "1" (dest), "2" (count) : "memory"); in strncpy() 72 char *strncat(char *dest, const char *src, size_t count) in strncat() argument 88 : "0" (src), "1" (dest), "2" (0), "3" (0xffffffffu), "g" (count) in strncat() 119 int strncmp(const char *cs, const char *ct, size_t count) in strncmp() argument 136 : "1" (cs), "2" (ct), "3" (count) in strncmp() 181 void *memchr(const void *cs, int c, size_t count) in memchr() argument 185 if (!count) in memchr() 193 : "a" (c), "0" (cs), "1" (count) in memchr() 218 size_t strnlen(const char *s, size_t count) in strnlen() argument [all …]
|
/openbmc/linux/drivers/media/rc/ |
H A D | ir-xmp-decoder.c | 46 data->state, data->count, ev.duration, TO_STR(ev.pulse)); in ir_xmp_decode() 55 data->count = 0; in ir_xmp_decode() 80 if (data->count != 16) { in ir_xmp_decode() 82 data->count, ev.duration); in ir_xmp_decode() 149 if (data->count == 16) { in ir_xmp_decode() 151 data->count, ev.duration); in ir_xmp_decode() 157 data->count = 8; in ir_xmp_decode() 160 else if (data->count != 8) in ir_xmp_decode() 162 data->count, ev.duration); in ir_xmp_decode() 169 if (data->count == 16) { in ir_xmp_decode() [all …]
|
/openbmc/linux/arch/arm/nwfpe/ |
H A D | softfloat-macros | 34 Shifts `a' right by the number of bits given in `count'. If any nonzero 36 the result by setting the least significant bit to 1. The value of `count' 37 can be arbitrarily large; in particular, if `count' is greater than 32, the 42 INLINE void shift32RightJamming( bits32 a, int16 count, bits32 *zPtr ) 45 if ( count == 0 ) { 48 else if ( count < 32 ) { 49 z = ( a>>count ) | ( ( a<<( ( - count ) & 31 ) ) != 0 ); 59 Shifts `a' right by the number of bits given in `count'. If any nonzero 61 the result by setting the least significant bit to 1. The value of `count' 62 can be arbitrarily large; in particular, if `count' is greater than 64, the [all …]
|
/openbmc/linux/drivers/char/ |
H A D | tlclk.c | 243 static ssize_t tlclk_read(struct file *filp, char __user *buf, size_t count, in tlclk_read() argument 246 if (count < sizeof(struct tlclk_alarms)) in tlclk_read() 327 struct device_attribute *attr, const char *buf, size_t count) in store_received_ref_clk3a() argument 341 return strnlen(buf, count); in store_received_ref_clk3a() 349 struct device_attribute *attr, const char *buf, size_t count) in store_received_ref_clk3b() argument 363 return strnlen(buf, count); in store_received_ref_clk3b() 371 struct device_attribute *attr, const char *buf, size_t count) in store_enable_clk3b_output() argument 385 return strnlen(buf, count); in store_enable_clk3b_output() 392 struct device_attribute *attr, const char *buf, size_t count) in store_enable_clk3a_output() argument 406 return strnlen(buf, count); in store_enable_clk3a_output() [all …]
|
/openbmc/linux/drivers/thermal/intel/int340x_thermal/ |
H A D | acpi_thermal_rel.c | 91 *trt_count = p->package.count; in acpi_parse_trt() 167 *art_count = p->package.count - 1; in acpi_parse_art() 237 if (p->package.count > 0) { in acpi_parse_psvt() 253 *psvt_count = p->package.count - 1; in acpi_parse_psvt() 266 for (i = 1; i < p->package.count; i++) { in acpi_parse_psvt() 280 if (package->package.count >= ACPI_NR_PSVT_ELEMENTS) { in acpi_parse_psvt() 369 int count; in fill_art() local 374 ret = acpi_parse_art(acpi_thermal_rel_handle, &count, &arts, false); in fill_art() 377 art_len = count * sizeof(union art_object); in fill_art() 384 for (i = 0; i < count; i++) { in fill_art() [all …]
|
/openbmc/linux/mm/ |
H A D | maccess.c | 80 long strncpy_from_kernel_nofault(char *dst, const void *unsafe_addr, long count) in strncpy_from_kernel_nofault() argument 84 if (unlikely(count <= 0)) in strncpy_from_kernel_nofault() 86 if (!copy_from_kernel_nofault_allowed(unsafe_addr, count)) in strncpy_from_kernel_nofault() 94 } while (dst[-1] && src - unsafe_addr < count); in strncpy_from_kernel_nofault() 178 long count) in strncpy_from_user_nofault() argument 182 if (unlikely(count <= 0)) in strncpy_from_user_nofault() 186 ret = strncpy_from_user(dst, unsafe_addr, count); in strncpy_from_user_nofault() 189 if (ret >= count) { in strncpy_from_user_nofault() 190 ret = count; in strncpy_from_user_nofault() 215 long strnlen_user_nofault(const void __user *unsafe_addr, long count) in strnlen_user_nofault() argument [all …]
|
/openbmc/linux/drivers/w1/slaves/ |
H A D | w1_ds28e17.c | 85 static int w1_f19_i2c_busy_wait(struct w1_slave *sl, size_t count) in w1_f19_i2c_busy_wait() argument 100 usleep_range(timebases[data->speed] * (data->stretch) * count, in w1_f19_i2c_busy_wait() 101 timebases[data->speed] * (data->stretch) * count in w1_f19_i2c_busy_wait() 151 const u8 *buffer, size_t count) in __w1_f19_i2c_write() argument 161 w1_buf[0] = count; in __w1_f19_i2c_write() 165 crc = crc16(crc, buffer, count); in __w1_f19_i2c_write() 166 w1_write_block(sl->master, buffer, count); in __w1_f19_i2c_write() 173 if (w1_f19_i2c_busy_wait(sl, count + 1) < 0) in __w1_f19_i2c_write() 185 return count; in __w1_f19_i2c_write() 191 const u8 *buffer, size_t count, bool stop) in w1_f19_i2c_write() argument [all …]
|
/openbmc/linux/drivers/misc/ibmasm/ |
H A D | ibmasmfs.c | 259 static ssize_t command_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in command_file_read() argument 268 if (count == 0 || count > IBMASM_CMD_MAX_BUFFER_SIZE) in command_file_read() 286 len = min(count, cmd->buffer_size); in command_file_read() 296 static ssize_t command_file_write(struct file *file, const char __user *ubuff, size_t count, loff_t… in command_file_write() argument 304 if (count == 0 || count > IBMASM_CMD_MAX_BUFFER_SIZE) in command_file_write() 313 cmd = ibmasm_new_command(command_data->sp, count); in command_file_write() 317 if (copy_from_user(cmd->buffer, ubuff, count)) { in command_file_write() 334 return count; in command_file_write() 368 static ssize_t event_file_read(struct file *file, char __user *buf, size_t count, loff_t *offset) in event_file_read() argument 378 if (count == 0 || count > IBMASM_EVENT_MAX_SIZE) in event_file_read() [all …]
|
/openbmc/linux/drivers/net/wireless/ath/ath10k/ |
H A D | debug.c | 153 size_t count, loff_t *ppos) in ath10k_read_wmi_services() argument 189 ret_cnt = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_read_wmi_services() 446 size_t count, loff_t *ppos) in ath10k_fw_stats_read() argument 451 return simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_fw_stats_read() 464 size_t count, loff_t *ppos) in ath10k_debug_fw_reset_stats_read() argument 488 ret = simple_read_from_buffer(user_buf, count, ppos, buf, len); in ath10k_debug_fw_reset_stats_read() 524 size_t count, loff_t *ppos) in ath10k_read_simulate_fw_crash() argument 533 return simple_read_from_buffer(user_buf, count, ppos, buf, strlen(buf)); in ath10k_read_simulate_fw_crash() 545 size_t count, loff_t *ppos) in ath10k_write_simulate_fw_crash() argument 553 if (*ppos != 0 || count >= sizeof(buf) || count == 0) in ath10k_write_simulate_fw_crash() [all …]
|
/openbmc/linux/tools/testing/selftests/ftrace/test.d/ftrace/ |
H A D | fgraph-filter-stack.tc | 43 count=`cat trace | grep '()' | grep -v schedule | wc -l` 45 if [ $count -ne 0 ]; then 50 count=`cat trace | grep 'schedule()' | wc -l` 51 if [ $count -eq 0 ]; then 60 count=`cat trace | grep '()' | grep -v schedule | wc -l` 62 if [ $count -ne 0 ]; then 66 count=`cat trace | grep 'schedule()' | wc -l` 67 if [ $count -eq 0 ]; then
|
/openbmc/linux/drivers/gpu/drm/amd/amdgpu/ |
H A D | amdgpu_vm_sdma.c | 52 unsigned int count) in amdgpu_vm_sdma_alloc_job() argument 64 ndw += count * 2; in amdgpu_vm_sdma_alloc_job() 172 unsigned count) in amdgpu_vm_sdma_copy_ptes() argument 180 trace_amdgpu_vm_copy_ptes(pe, src, count, p->immediate); in amdgpu_vm_sdma_copy_ptes() 182 amdgpu_vm_copy_pte(p->adev, ib, pe, src, count); in amdgpu_vm_sdma_copy_ptes() 201 uint64_t addr, unsigned count, in amdgpu_vm_sdma_set_ptes() argument 207 trace_amdgpu_vm_set_ptes(pe, addr, count, incr, flags, p->immediate); in amdgpu_vm_sdma_set_ptes() 208 if (count < 3) { in amdgpu_vm_sdma_set_ptes() 210 count, incr); in amdgpu_vm_sdma_set_ptes() 213 count, incr, flags); in amdgpu_vm_sdma_set_ptes() [all …]
|