/linux-master/lib/ |
H A D | iomap_copy.c | 13 * @count: number of 32-bit quantities to copy 21 size_t count) 25 const u32 *end = src + count; 36 * @count: number of 32-bit quantities to copy 42 void __ioread32_copy(void *to, const void __iomem *from, size_t count) argument 46 const u32 __iomem *end = src + count; 57 * @count: number of 64-bit quantities to copy 65 size_t count) 70 const u64 *end = src + count; 75 __iowrite32_copy(to, from, count * 19 __iowrite32_copy(void __iomem *to, const void *from, size_t count) argument 63 __iowrite64_copy(void __iomem *to, const void *from, size_t count) argument [all...] |
H A D | strncpy_from_user.c | 24 * 'count' is the user-supplied count (return 'count' if we 29 unsigned long count, unsigned long max) 84 if (res >= count) 98 * least @count bytes long. 100 * @count: Maximum number of bytes to copy, including the trailing NUL. 110 * If @count is smaller than the length of the string, copies @count bytes 111 * and returns @count 28 do_strncpy_from_user(char *dst, const char __user *src, unsigned long count, unsigned long max) argument 113 strncpy_from_user(char *dst, const char __user *src, long count) argument [all...] |
H A D | string.c | 92 char *strncpy(char *dest, const char *src, size_t count) argument 96 while (count) { 100 count--; 107 ssize_t sized_strscpy(char *dest, const char *src, size_t count) argument 110 size_t max = count; 113 if (count == 0 || WARN_ON_ONCE(count > INT_MAX)) 152 count -= sizeof(unsigned long); 156 while (count) { 164 count 214 strncat(char *dest, const char *src, size_t count) argument 234 strlcat(char *dest, const char *src, size_t count) argument 284 strncmp(const char *cs, const char *ct, size_t count) argument 349 strnchrnul(const char *s, size_t count, int c) argument 384 strnchr(const char *s, size_t count, int c) argument 410 strnlen(const char *s, size_t count) argument 516 memset(void *s, int c, size_t count) argument 538 memset16(uint16_t *s, uint16_t v, size_t count) argument 560 memset32(uint32_t *s, uint32_t v, size_t count) argument 582 memset64(uint64_t *s, uint64_t v, size_t count) argument 603 memcpy(void *dest, const void *src, size_t count) argument 624 memmove(void *dest, const void *src, size_t count) argument 655 memcmp(const void *cs, const void *ct, size_t count) argument [all...] |
/linux-master/sound/drivers/pcsp/ |
H A D | pcsp_input.c | 16 static void pcspkr_do_sound(unsigned int count) argument 22 if (count) { 26 outb_p(count & 0xff, 0x42); 27 outb((count >> 8) & 0xff, 0x42); 46 unsigned int count = 0; local 70 count = PIT_TICK_RATE / value; 72 pcspkr_do_sound(count);
|
/linux-master/tools/testing/selftests/drivers/net/mlxsw/ |
H A D | tc_police_scale.sh | 36 local count=$1; shift 41 for ((i = 0; i < count; ++i)); do 58 local count=$1; shift 61 tc_police_rules_create $count $should_fail 65 ((offload_count == count)) 66 check_err_fail $should_fail $? "tc police offload count" 71 local count=$1; shift 79 __tc_police_test $count $should_fail
|
H A D | port_range_scale.sh | 29 local count=$1; shift 33 for ((i = 0; i < count; ++i)); do 52 local count=$1; shift 55 port_range_rules_create $count $should_fail 59 ((offload_count == count)) 60 check_err_fail $should_fail $? "port range offload count" 65 local count=$1; shift 73 __port_range_test $count $should_fail
|
/linux-master/arch/arm64/include/asm/ |
H A D | preempt.h | 13 return READ_ONCE(current_thread_info()->preempt.count); 19 WRITE_ONCE(current_thread_info()->preempt.count, pc); 47 u32 pc = READ_ONCE(current_thread_info()->preempt.count); 49 WRITE_ONCE(current_thread_info()->preempt.count, pc); 54 u32 pc = READ_ONCE(current_thread_info()->preempt.count); 56 WRITE_ONCE(current_thread_info()->preempt.count, pc); 64 /* Update only the count field, leaving need_resched unchanged */ 65 WRITE_ONCE(ti->preempt.count, --pc);
|
/linux-master/samples/bpf/ |
H A D | syscall_tp_kern.c | 46 static __always_inline void count(void *map) function 62 count(&enter_open_map); 70 count(&enter_open_map); 77 count(&enter_open_map); 85 count(&exit_open_map); 93 count(&exit_open_map); 100 count(&exit_open_map);
|
/linux-master/drivers/media/usb/pvrusb2/ |
H A D | pvrusb2-debugifc.c | 19 unsigned int count) 24 for (scnt = 0; scnt < count; scnt++) { 36 unsigned int count) 41 for (scnt = 0; scnt < count; scnt++) { 51 static unsigned int debugifc_isolate_word(const char *buf,unsigned int count, argument 62 scnt = debugifc_count_whitespace(buf,count); 63 consume_cnt += scnt; count -= scnt; buf += scnt; 64 if (!count) goto done; 66 scnt = debugifc_count_nonwhitespace(buf,count); 70 consume_cnt += scnt; count 18 debugifc_count_whitespace(const char *buf, unsigned int count) argument 35 debugifc_count_nonwhitespace(const char *buf, unsigned int count) argument 79 debugifc_parse_unsigned_number(const char *buf,unsigned int count, u32 *num_ptr) argument 105 debugifc_match_keyword(const char *buf,unsigned int count, const char *keyword) argument 179 pvr2_debugifc_do1cmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) argument 289 pvr2_debugifc_docmd(struct pvr2_hdw *hdw,const char *buf, unsigned int count) argument [all...] |
/linux-master/arch/powerpc/sysdev/ |
H A D | mmio_nvram.c | 24 static ssize_t mmio_nvram_read(char *buf, size_t count, loff_t *index) argument 30 if (*index + count > mmio_nvram_len) 31 count = mmio_nvram_len - *index; 35 memcpy_fromio(buf, mmio_nvram_start + *index, count); 39 *index += count; 40 return count; 60 static ssize_t mmio_nvram_write(char *buf, size_t count, loff_t *index) argument 66 if (*index + count > mmio_nvram_len) 67 count = mmio_nvram_len - *index; 71 memcpy_toio(mmio_nvram_start + *index, buf, count); [all...] |
/linux-master/arch/powerpc/include/asm/ |
H A D | parport.h | 22 int count = 0; local 37 count++; 39 return count;
|
/linux-master/drivers/gpu/drm/i915/ |
H A D | i915_tasklet.h | 24 if (!atomic_fetch_inc(&t->count)) 30 return !atomic_read(&t->count); 35 return atomic_dec_and_test(&t->count);
|
H A D | i915_user_extensions.h | 17 unsigned int count,
|
/linux-master/drivers/md/persistent-data/ |
H A D | dm-btree-spine.c | 127 s->count = 0; 136 for (i = 0; i < s->count; i++) 144 if (s->count == 2) { 147 s->count--; 150 r = bn_read_lock(s->info, new_child, s->nodes + s->count); 152 s->count++; 159 BUG_ON(!s->count); 160 --s->count; 161 unlock_block(s->info, s->nodes[s->count]); 168 BUG_ON(!s->count); 236 le64_inc(void *context, const void *value_le, unsigned int count) argument 241 le64_dec(void *context, const void *value_le, unsigned int count) argument [all...] |
/linux-master/lib/zstd/compress/ |
H A D | hist.c | 29 unsigned HIST_count_simple(unsigned* count, unsigned* maxSymbolValuePtr, argument 37 ZSTD_memset(count, 0, (maxSymbolValue+1) * sizeof(*count)); 42 count[*ip++]++; 45 while (!count[maxSymbolValue]) maxSymbolValue--; 50 if (count[s] > largestCount) largestCount = count[s]; 67 unsigned* count, unsigned* maxSymbolValuePtr, 74 size_t const countSize = (*maxSymbolValuePtr + 1) * sizeof(*count); 84 ZSTD_memset(count, 66 HIST_count_parallel_wksp( unsigned* count, unsigned* maxSymbolValuePtr, const void* source, size_t sourceSize, HIST_checkInput_e check, U32* const workSpace) argument 140 HIST_countFast_wksp(unsigned* count, unsigned* maxSymbolValuePtr, const void* source, size_t sourceSize, void* workSpace, size_t workSpaceSize) argument 154 HIST_count_wksp(unsigned* count, unsigned* maxSymbolValuePtr, const void* source, size_t sourceSize, void* workSpace, size_t workSpaceSize) argument [all...] |
/linux-master/drivers/gpu/drm/amd/display/dc/basics/ |
H A D | vector.c | 48 vector->count = 0; 55 uint32_t count, 63 if (!struct_size || !count) { 69 vector->container = kcalloc(count, struct_size, GFP_KERNEL); 78 for (i = 0; i < count; ++i) 85 vector->capacity = count; 87 vector->count = count; 133 vector->count = 0; 150 return vector->count; 53 dal_vector_presized_costruct(struct vector *vector, struct dc_context *ctx, uint32_t count, void *initial_value, uint32_t struct_size) argument 245 uint32_t count; local [all...] |
/linux-master/fs/ufs/ |
H A D | util.c | 24 u64 count = 0; local 27 count = size >> uspi->s_fshift; 28 if (count > UFS_MAXFRAG) 34 ubh->count = count; 35 for (i = 0; i < count; i++) 52 u64 count = 0; local 55 count = size >> uspi->s_fshift; 56 if (count <= 0 || count > UFS_MAXFRA [all...] |
/linux-master/drivers/acpi/acpica/ |
H A D | nsprepkg.c | 22 union acpi_operand_object **elements, u32 count); 33 union acpi_operand_object **elements, u32 count); 45 * DESCRIPTION: Check a returned package object for the correct count and 59 u32 count; local 71 return_object->package.count)); 80 /* Extract package count and elements array */ 83 count = return_object->package.count; 89 if (!count) { 110 status = acpi_ns_custom_package(info, elements, count); 386 acpi_ns_check_package_list(struct acpi_evaluate_info *info, const union acpi_predefined_info *package, union acpi_operand_object **elements, u32 count) argument 623 acpi_ns_custom_package(struct acpi_evaluate_info *info, union acpi_operand_object **elements, u32 count) argument [all...] |
/linux-master/net/mac80211/ |
H A D | debugfs.c | 20 int mac80211_format_buffer(char __user *userbuf, size_t count, argument 31 return simple_read_from_buffer(userbuf, count, ppos, buf, res); 36 size_t count, loff_t *ppos) \ 40 return mac80211_format_buffer(userbuf, count, ppos, \ 77 size_t count, 112 return simple_read_from_buffer(user_buf, count, ppos, 118 size_t count, 124 if (count >= sizeof(buf)) 127 if (copy_from_user(buf, user_buf, count)) 130 if (count 75 aqm_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 116 aqm_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 152 airtime_flags_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 173 airtime_flags_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 204 aql_pending_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 234 aql_txq_limit_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 261 aql_txq_limit_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 315 aql_enable_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 327 aql_enable_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 365 force_tx_status_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 380 force_tx_status_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 417 reset_write(struct file *file, const char __user *user_buf, size_t count, loff_t *ppos) argument 505 hwflags_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 534 misc_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 566 queues_read(struct file *file, char __user *user_buf, size_t count, loff_t *ppos) argument 590 format_devstat_counter(struct ieee80211_local *local, char __user *userbuf, size_t count, loff_t *ppos, int (*printvalue)(struct ieee80211_low_level_stats *stats, char *buf, int buflen)) argument [all...] |
H A D | debugfs.h | 9 int __printf(4, 5) mac80211_format_buffer(char __user *userbuf, size_t count,
|
/linux-master/drivers/w1/slaves/ |
H A D | w1_ds28e04.c | 57 * Check the file size bounds and adjusts count as needed. 60 static inline size_t w1_f1C_fix_count(loff_t off, size_t count, size_t size) argument 65 if ((off + count) > size) 68 return count; 116 loff_t off, size_t count) 122 count = w1_f1C_fix_count(off, count, W1_EEPROM_SIZE); 123 if (count == 0) 130 max_page = (off + count - 1) >> W1_PAGE_BITS; 133 count 114 eeprom_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 225 eeprom_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 281 pio_read(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 300 pio_write(struct file *filp, struct kobject *kobj, struct bin_attribute *bin_attr, char *buf, loff_t off, size_t count) argument 348 crccheck_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument [all...] |
/linux-master/drivers/media/pci/cobalt/ |
H A D | m00460_evcnt_memmap_package.h | 16 uint32_t count; /* Reg 0x0004 */ member in struct:m00460_evcnt_regmap
|
/linux-master/include/linux/mfd/ |
H A D | qcom_rpm.h | 12 int qcom_rpm_write(struct qcom_rpm *rpm, int state, int resource, u32 *buf, size_t count);
|
/linux-master/include/uapi/linux/ |
H A D | ivtvfb.h | 33 int count; member in struct:ivtvfb_dma_frame
|
/linux-master/include/crypto/internal/ |
H A D | simd.h | 24 int simd_register_skciphers_compat(struct skcipher_alg *algs, int count, 27 void simd_unregister_skciphers(struct skcipher_alg *algs, int count, 42 int simd_register_aeads_compat(struct aead_alg *algs, int count, 45 void simd_unregister_aeads(struct aead_alg *algs, int count,
|