/linux-master/drivers/misc/sgi-gru/ |
H A D | gruprocfs.c | 108 size_t count, loff_t *data) 111 return count; 117 unsigned long total, count, max; local 122 seq_puts(s, "#id count aver-clks max-clks\n"); 124 count = atomic_long_read(&mcs_op_statistics[op].count); 127 seq_printf(s, "%-20s%12ld%12ld%12ld\n", id[op], count, 128 count ? total / count : 0, max); 134 const char __user *userbuf, size_t count, loff_ 107 statistics_write(struct file *file, const char __user *userbuf, size_t count, loff_t *data) argument 133 mcs_statistics_write(struct file *file, const char __user *userbuf, size_t count, loff_t *data) argument 147 options_write(struct file *file, const char __user *userbuf, size_t count, loff_t *data) argument [all...] |
/linux-master/arch/arm64/lib/ |
H A D | strncmp.S | 44 #define count mask define 66 and count, src1, #7 68 cbnz count, L(mutual_align) 167 neg tmp3, count, lsl #3 /* 64 - bits(bytes beyond align). */ 170 LS_FW tmp2, tmp2, tmp3 /* Shift (count & 63). */ 172 adds limit, limit, count 198 cbz count, L(src1_aligned) 200 neg count, count 201 and count, coun [all...] |
/linux-master/drivers/usb/serial/ |
H A D | ir-usb.c | 49 const unsigned char *buf, int count); 260 const unsigned char *buf, int count) 269 if (count == 0) 272 count = min(count, port->bulk_out_size - 1); 277 port->tx_bytes += count; 293 memcpy(urb->transfer_buffer + 1, buf, count); 295 urb->transfer_buffer_length = count + 1; 304 port->tx_bytes -= count; 310 return count; 259 ir_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) argument 346 unsigned int count = 0; local [all...] |
H A D | garmin_gps.c | 115 __u8 count; member in struct:garmin_data 172 const unsigned char *buf, int count, 378 * count - number of bytes in the input buffer including space reserved for 382 static int gsp_rec_packet(struct garmin_data *garmin_data_p, int count) argument 394 count-GSP_INITIAL_OFFSET, recpkt); 396 if (size != (count-GSP_INITIAL_OFFSET-3)) { 398 __func__, size, (count-GSP_INITIAL_OFFSET-3)); 439 return count; 463 const unsigned char *buf, int count) 486 /* dev_dbg(dev, "%s - dle=%d skip=%d size=%d count 462 gsp_receive(struct garmin_data *garmin_data_p, const unsigned char *buf, int count) argument 585 gsp_send(struct garmin_data *garmin_data_p, const unsigned char *buf, int count) argument 735 nat_receive(struct garmin_data *garmin_data_p, const unsigned char *buf, int count) argument 976 garmin_write_bulk(struct usb_serial_port *port, const unsigned char *buf, int count, int dismiss_ack) argument 1042 garmin_write(struct tty_struct *tty, struct usb_serial_port *port, const unsigned char *buf, int count) argument [all...] |
/linux-master/drivers/gpu/drm/udl/ |
H A D | udl_main.c | 157 while (udl->urbs.count) { 160 udl->urbs.count--; 175 static int udl_alloc_urb_list(struct drm_device *dev, int count, size_t size) argument 181 size_t wanted_size = count * size; 187 udl->urbs.count = 0; 193 while (udl->urbs.count * size < wanted_size) { 226 udl->urbs.count++; 230 DRM_DEBUG("allocated %d %d byte urbs\n", udl->urbs.count, (int) size); 232 return udl->urbs.count; 243 !udl->urbs.count || [all...] |
/linux-master/drivers/xen/ |
H A D | grant-table.c | 179 static int get_free_entries(unsigned count) argument 187 if ((gnttab_free_count < count) && 188 ((rc = gnttab_expand(count - gnttab_free_count)) < 0)) { 194 gnttab_free_count -= count; 195 while (count--) { 199 if (count) 224 /* Rebuilds the free grant list and tries to find count consecutive entries. */ 225 static int get_free_seq(unsigned int count) argument 239 if (ret < 0 && to - from >= count) { 241 bitmap_clear(gnttab_free_bitmap, ret, count); 270 get_free_entries_seq(unsigned int count) argument 635 gnttab_free_grant_reference_seq(grant_ref_t head, unsigned int count) argument 648 gnttab_alloc_grant_references(u16 count, grant_ref_t *head) argument 661 gnttab_alloc_grant_reference_seq(unsigned int count, grant_ref_t *first) argument 703 gnttab_request_free_callback(struct gnttab_free_callback *callback, void (*fn)(void *), void *arg, u16 count) argument 1171 gnttab_batch_map(struct gnttab_map_grant_ref *batch, unsigned count) argument 1184 gnttab_batch_copy(struct gnttab_copy *batch, unsigned count) argument 1245 gnttab_map_refs(struct gnttab_map_grant_ref *map_ops, struct gnttab_map_grant_ref *kmap_ops, struct page **pages, unsigned int count) argument 1290 gnttab_unmap_refs(struct gnttab_unmap_grant_ref *unmap_ops, struct gnttab_unmap_grant_ref *kunmap_ops, struct page **pages, unsigned int count) argument [all...] |
/linux-master/fs/exfat/ |
H A D | balloc.c | 228 unsigned int count = 0; local 237 count += hweight_long(*bitmap); 248 count += hweight_long(clu_bits & BITMAP_LAST_WORD_MASK(last_mask)); 251 *ret_count = count; 257 unsigned int trim_begin, trim_end, count, next_free_clu; local 290 count = trim_end - trim_begin + 1; 291 if (count >= trim_minlen) { 294 count * sbi->sect_per_clus, GFP_NOFS, 0); 298 trimmed_total += count; 318 count [all...] |
/linux-master/drivers/pmdomain/tegra/ |
H A D | powergate-bpmp.c | 216 unsigned int max_id, id, count = 0; local 233 struct tegra_powergate_info *info = &powergates[count]; 242 count++; 249 return count; 254 unsigned int count) 262 domains = kcalloc(count, sizeof(*domains), GFP_KERNEL); 266 for (i = 0; i < count; i++) { 278 genpd->num_domains = count; 332 unsigned int count, i; local 339 count 252 tegra_bpmp_add_powergates(struct tegra_bpmp *bpmp, struct tegra_powergate_info *powergates, unsigned int count) argument [all...] |
/linux-master/kernel/dma/ |
H A D | contiguous.c | 103 int nid, count = 0; local 108 if (sscanf(s, "%lu%n", &tmp, &count) != 1) 111 if (s[count] == ':') { 116 s += count + 1; 295 * @count: Requested number of pages. 304 struct page *dma_alloc_from_contiguous(struct device *dev, size_t count, argument 310 return cma_alloc(dev_get_cma_area(dev), count, align, no_warn); 317 * @count: Number of allocated pages. 324 int count) 326 return cma_release(dev_get_cma_area(dev), pages, count); 323 dma_release_from_contiguous(struct device *dev, struct page *pages, int count) argument 403 unsigned int count = PAGE_ALIGN(size) >> PAGE_SHIFT; local [all...] |
/linux-master/drivers/misc/ |
H A D | tps6594-pfsm.c | 51 size_t count, loff_t *ppos) 63 if (count > TPS6594_PMIC_MAX_POS - pos) 64 count = TPS6594_PMIC_MAX_POS - pos; 66 for (i = 0 ; i < count ; i++) { 75 *ppos = pos + count; 77 return count; 81 size_t count, loff_t *ppos) 91 if (pos >= TPS6594_PMIC_MAX_POS || !count) 93 if (count > TPS6594_PMIC_MAX_POS - pos) 94 count 50 tps6594_pfsm_read(struct file *f, char __user *buf, size_t count, loff_t *ppos) argument 80 tps6594_pfsm_write(struct file *f, const char __user *buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/sound/soc/sof/ |
H A D | sof-client-ipc-flood-test.c | 130 dev_dbg(dev, "IPC Flood count: %d, Avg response time: %lluns\n", 138 "IPC Flood count: %d\nAvg response time: %lluns\n", 151 * the IPC count or the duration specified by the user. 154 size_t count, loff_t *ppos) 169 string = kzalloc(count + 1, GFP_KERNEL); 173 if (copy_from_user(string, buffer, count)) { 203 /* limit max duration/ipc count for flood test */ 206 ret = count; 215 ret = count; 239 /* return count i 153 sof_ipc_flood_dfs_write(struct file *file, const char __user *buffer, size_t count, loff_t *ppos) argument 248 sof_ipc_flood_dfs_read(struct file *file, char __user *buffer, size_t count, loff_t *ppos) argument [all...] |
/linux-master/drivers/staging/vme_user/ |
H A D | vme_user.c | 121 static ssize_t resource_to_user(int minor, char __user *buf, size_t count, argument 126 if (count > image[minor].size_buf) 127 count = image[minor].size_buf; 130 count, *ppos); 141 size_t count, loff_t *ppos) 143 if (count > image[minor].size_buf) 144 count = image[minor].size_buf; 146 if (copy_from_user(image[minor].kern_buf, buf, (unsigned long)count)) 150 count, *ppos); 154 size_t count, loff_ 140 resource_from_user(unsigned int minor, const char __user *buf, size_t count, loff_t *ppos) argument 153 buffer_to_user(unsigned int minor, char __user *buf, size_t count, loff_t *ppos) argument 165 buffer_from_user(unsigned int minor, const char __user *buf, size_t count, loff_t *ppos) argument 177 vme_user_read(struct file *file, char __user *buf, size_t count, loff_t *ppos) argument 220 vme_user_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/arch/x86/kernel/ |
H A D | mpparse.c | 175 static void skip_entry(unsigned char **ptr, int *count, int size) argument 178 *count += size; 194 int count = sizeof(*mpc); local 195 unsigned char *mpt = ((unsigned char *)mpc) + count; 208 while (count < mpc->length) { 214 skip_entry(&mpt, &count, sizeof(struct mpc_cpu)); 218 skip_entry(&mpt, &count, sizeof(struct mpc_bus)); 222 skip_entry(&mpt, &count, sizeof(struct mpc_ioapic)); 226 skip_entry(&mpt, &count, sizeof(struct mpc_intsrc)); 230 skip_entry(&mpt, &count, sizeo 711 check_slot(unsigned long mpc_new_phys, unsigned long mpc_new_length, int count) argument 732 int count = sizeof(*mpc); local [all...] |
/linux-master/drivers/media/pci/intel/ipu6/ |
H A D | ipu6-dma.c | 62 int count = PHYS_PFN(size); local 63 int array_size = count * sizeof(struct page *); 73 while (count) { 74 int j, order = __fls(count); 91 count -= 1 << order; 106 int count = PHYS_PFN(size); local 109 for (i = 0; i < count && pages[i]; i++) { 158 unsigned long count; local 169 count = PHYS_PFN(size); 171 iova = alloc_iova(&mmu->dmap->iovad, count, 298 size_t count = PHYS_PFN(PAGE_ALIGN(size)); local 335 int i, npages, count; local 399 int i, count; local [all...] |
/linux-master/block/ |
H A D | badblocks.c | 463 while ((hint < hint_end) && ((hint + 1) <= bb->count) && 465 if ((hint + 1) == bb->count || BB_OFFSET(p[hint + 1]) > s) { 489 if (!bb->count) 499 hi = bb->count; 610 if ((prev + 1) < bb->count && 651 * The caller of front_combine() will decrease bb->count, therefore 661 if ((prev + 1) < bb->count) 662 memmove(p + prev, p + prev + 1, (bb->count - prev - 1) * 8); 748 if ((bb->count + (*extra)) >= MAX_BADBLOCKS) 778 (bb->count [all...] |
/linux-master/fs/xfs/libxfs/ |
H A D | xfs_dir2_sf.c | 46 int count = len; local 48 count += sizeof(struct xfs_dir2_sf_entry); /* namelen + offset */ 49 count += hdr->i8count ? XFS_INO64_SIZE : XFS_INO32_SIZE; /* ino # */ 52 count += sizeof(uint8_t); 53 return count; 175 int count; /* shortform entry count */ local 178 int i8count; /* count of big-inode entries */ 197 count = i8count = namelen = 0; 204 for (i = 0; i < be32_to_cpu(btp->count); [all...] |
/linux-master/kernel/ |
H A D | user_namespace.c | 132 refcount_set(&ns->ns.count, 1); 225 } while (refcount_dec_and_test(&parent->ns.count)); 241 u32 count; /* == 0 unless used with map_id_range_down() */ member in struct:idmap_key 254 id2 = key->id + key->count - 1; 262 last = first + el->count - 1; 279 map_id_range_down_max(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) argument 284 key.count = count; 297 map_id_range_down_base(unsigned extents, struct uid_gid_map *map, u32 id, u32 count) argument 302 id2 = id + count 315 map_id_range_down(struct uid_gid_map *map, u32 id, u32 count) argument 923 map_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos, int cap_setid, struct uid_gid_map *map, struct uid_gid_map *parent_map) argument 1216 proc_setgroups_write(struct file *file, const char __user *buf, size_t count, loff_t *ppos) argument [all...] |
/linux-master/drivers/net/wireless/broadcom/brcm80211/brcmsmac/ |
H A D | rate.c | 276 if (!rs->count) 283 for (idx = 0; idx < rs->count; idx++) { 308 uint count; local 312 count = rs->count; 314 for (i = 0; i < count; i++) { 323 count = 0; 324 for (i = 0; i < hw_rs->count; i++) { 327 rs->rates[count++] = rateset[r]; 330 rs->count 413 uint count; local [all...] |
/linux-master/drivers/gpu/drm/i915/gt/ |
H A D | sysfs_engines.c | 85 int count, n; local 91 count = ARRAY_SIZE(vcs_caps); 96 count = ARRAY_SIZE(vecs_caps); 101 count = 0; 104 GEM_BUG_ON(count > BITS_PER_LONG); 107 for_each_set_bit(n, &caps, show_unknown ? BITS_PER_LONG : count) { 108 if (n >= count || !repr[n]) { 142 const char *buf, size_t count) 175 return count; 202 const char *buf, size_t count) 141 max_spin_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 201 timeslice_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 255 stop_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 306 preempt_timeout_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 363 heartbeat_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument [all...] |
/linux-master/drivers/media/pci/bt8xx/ |
H A D | bttv-vbi.c | 55 (((fmt)->count[0] + (fmt)->count[1]) * (fmt)->samples_per_line) 124 static int start_streaming_vbi(struct vb2_queue *q, unsigned int count) argument 209 if (0 == f->count[i]) { 215 s64 start, count; local 219 count = (s64) f->start[i] + f->count[i] - start; 221 f->count[i] = clamp(count, (s64) 1, 230 if (0 == (f->count[ [all...] |
/linux-master/drivers/gpu/drm/ |
H A D | drm_mode_object.c | 237 int count = obj->properties->count; local 250 if (count == DRM_OBJECT_MAX_PROPERTY) { 258 obj->properties->properties[count] = property; 259 obj->properties->values[count] = init_val; 260 obj->properties->count++; 291 for (i = 0; i < obj->properties->count; i++) { 308 for (i = 0; i < obj->properties->count; i++) { 392 int i, ret, count; local 394 for (i = 0, count [all...] |
/linux-master/drivers/net/ethernet/8390/ |
H A D | apne.c | 78 static void apne_block_input(struct net_device *dev, int count, 80 static void apne_block_output(struct net_device *dev, const int count, 235 {0x00, NE_EN0_RCNTLO}, /* Clear the count regs. */ 415 le16_to_cpus(&hdr->count); 424 apne_block_input(struct net_device *dev, int count, struct sk_buff *skb, int ring_offset) argument 442 outb(count & 0xff, nic_base + NE_EN0_RCNTLO); 443 outb(count >> 8, nic_base + NE_EN0_RCNTHI); 449 for (cnt = 0; cnt < (count>>1); cnt++) 451 if (count & 0x01) { 452 buf[count 465 apne_block_output(struct net_device *dev, int count, const unsigned char *buf, const int start_page) argument [all...] |
/linux-master/sound/core/ |
H A D | vmaster.c | 19 int count; /* item count */ member in struct:link_ctl_info 69 for (ch = 0; ch < follower->info.count; ch++) 80 if (follower->info.count) { 95 follower->info.count = uinfo->count; 96 if (follower->info.count > 2 || 113 if (master->info.count) 121 master->info.count = 1; /* always mono */ 139 for (ch = 0; ch < follower->info.count; c [all...] |
/linux-master/drivers/dma/idxd/ |
H A D | sysfs.c | 33 const char *buf, size_t count) 56 return count; 66 return count; 134 const char *buf, size_t count) 162 return count; 167 const char *buf, size_t count) 170 return group_read_buffers_reserved_store(dev, attr, buf, count); 200 const char *buf, size_t count) 225 return count; 230 const char *buf, size_t count) 31 engine_group_id_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 132 group_read_buffers_reserved_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 165 group_tokens_reserved_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 198 group_read_buffers_allowed_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 228 group_tokens_allowed_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 261 group_use_read_buffer_limit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 290 group_use_token_limit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 371 group_traffic_class_a_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 413 group_traffic_class_b_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 455 group_desc_progress_limit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 486 group_batch_progress_limit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 627 wq_group_id_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 679 wq_mode_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 729 wq_size_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 766 wq_priority_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 803 wq_block_on_fault_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 849 wq_threshold_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 900 wq_type_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 938 wq_name_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1007 wq_max_transfer_size_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1044 wq_max_batch_size_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1080 wq_ats_disable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1116 wq_prs_disable_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1176 wq_enqcmds_retries_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1249 wq_op_config_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1292 wq_driver_name_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1507 int count = 0, i; local 1595 read_buffer_limit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1623 token_limit_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1651 cmd_status_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 1684 event_log_size_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument [all...] |
/linux-master/drivers/char/ |
H A D | tlclk.c | 243 static ssize_t tlclk_read(struct file *filp, char __user *buf, size_t count, argument 246 if (count < sizeof(struct tlclk_alarms)) 327 struct device_attribute *attr, const char *buf, size_t count) 341 return strnlen(buf, count); 349 struct device_attribute *attr, const char *buf, size_t count) 363 return strnlen(buf, count); 371 struct device_attribute *attr, const char *buf, size_t count) 385 return strnlen(buf, count); 392 struct device_attribute *attr, const char *buf, size_t count) 406 return strnlen(buf, count); 326 store_received_ref_clk3a(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 348 store_received_ref_clk3b(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 370 store_enable_clk3b_output(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 391 store_enable_clk3a_output(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 412 store_enable_clkb1_output(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 434 store_enable_clka1_output(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 455 store_enable_clkb0_output(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 476 store_enable_clka0_output(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 497 store_select_amcb2_transmit_clock(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 539 store_select_amcb1_transmit_clock(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 581 store_select_redundant_clock(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 602 store_select_ref_frequency(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 623 store_filter_select(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 643 store_hardware_switching_mode(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 664 store_hardware_switching(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 685 store_refalign(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 704 store_mode_select(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument 724 store_reset(struct device *d, struct device_attribute *attr, const char *buf, size_t count) argument [all...] |