/linux-master/mm/ |
H A D | madvise.c | 74 size_t count; local 77 count = strlen(name) + 1; 78 anon_name = kmalloc(struct_size(anon_name, name, count), GFP_KERNEL); 81 memcpy(anon_name->name, name, count);
|
H A D | huge_memory.c | 291 const char *buf, size_t count) 293 ssize_t ret = count; 327 const char *buf, size_t count, 344 return count; 372 const char *buf, size_t count) 402 return count; 413 struct kobj_attribute *attr, const char *buf, size_t count) 415 return single_hugepage_flag_store(kobj, attr, buf, count, 476 const char *buf, size_t count) 479 ssize_t ret = count; 289 enabled_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 325 single_hugepage_flag_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count, enum transparent_hugepage_flag flag) argument 370 defrag_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 412 use_zero_page_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 474 thpsize_enabled_store(struct kobject *kobj, struct kobj_attribute *attr, const char *buf, size_t count) argument 3585 split_huge_pages_write(struct file *file, const char __user *buf, size_t count, loff_t *ppops) argument [all...] |
/linux-master/kernel/ |
H A D | fork.c | 132 int nr_threads; /* The idle threads do not count.. */ 1361 * Decrement the use count and release all resources for an mm. 1532 * bumping up the use count. User must release the mm via mmput() 1788 atomic_inc(&oldf->count); 1807 refcount_inc(¤t->sighand->count); 1815 refcount_set(&sig->count, 1); 1829 if (refcount_dec_and_test(&sighand->count)) { 1914 /* Ref-count the new filter user, and assign it. */ 3214 if (refcount_read(¤t->sighand->count) > 1) 3256 (fd && atomic_read(&fd->count) > [all...] |
/linux-master/init/ |
H A D | main.c | 1237 int count = preempt_count(); local 1250 if (preempt_count() != count) { 1252 preempt_count_set(count);
|
/linux-master/include/net/ |
H A D | sch_generic.h | 918 static inline void __qdisc_qstats_drop(struct Qdisc *sch, int count) argument 920 sch->qstats.drops += count;
|
/linux-master/include/net/netfilter/ |
H A D | nf_tables.h | 327 unsigned int count; member in struct:nft_set_iter 1757 u16 count; member in struct:nft_trans_gc
|
H A D | nf_flow_table.h | 365 #define NF_FLOW_TABLE_STAT_INC(net, count) __this_cpu_inc((net)->ft.stat->count) 366 #define NF_FLOW_TABLE_STAT_DEC(net, count) __this_cpu_dec((net)->ft.stat->count) 367 #define NF_FLOW_TABLE_STAT_INC_ATOMIC(net, count) \ 368 this_cpu_inc((net)->ft.stat->count) 369 #define NF_FLOW_TABLE_STAT_DEC_ATOMIC(net, count) \ 370 this_cpu_dec((net)->ft.stat->count)
|
/linux-master/fs/fuse/ |
H A D | inode.c | 144 if (!refcount_dec_and_test(&sl->count)) 379 refcount_set(&sl->count, 1); 640 /* Initial active count */ 641 atomic_set(&bucket->count, 1); 649 int count; local 654 count = atomic_read(&bucket->count); 655 WARN_ON(count < 1); 657 if (count == 1) { 665 * one more count [all...] |
H A D | file.c | 72 refcount_set(&ff->count, 1); 89 refcount_inc(&ff->count); 104 if (refcount_dec_and_test(&ff->count)) { 388 WARN_ON(refcount_read(&ff->count) > 1); 629 size_t count, int opcode) 636 ia->read.in.size = count; 645 args->out_args[0].size = count; 801 static ssize_t fuse_send_read(struct fuse_io_args *ia, loff_t pos, size_t count, argument 808 fuse_read_args_fill(ia, file, pos, count, FUSE_READ); 815 return fuse_async_req_send(fm, ia, count); 628 fuse_read_args_fill(struct fuse_io_args *ia, struct file *file, loff_t pos, size_t count, int opcode) argument 918 size_t count = ia->read.in.size; local 959 size_t count = ap->num_pages << PAGE_SHIFT; local 1054 fuse_write_args_fill(struct fuse_io_args *ia, struct fuse_file *ff, loff_t pos, size_t count) argument 1088 fuse_send_write(struct fuse_io_args *ia, loff_t pos, size_t count, fl_owner_t owner) argument 1134 fuse_send_write_pages(struct fuse_io_args *ia, struct kiocb *iocb, struct inode *inode, loff_t pos, size_t count) argument 1192 size_t count = 0; local 1281 ssize_t count; local 1408 ssize_t err, count; local 1544 size_t count = iov_iter_count(iter); local 2991 size_t count = iov_iter_count(iter), shortened = 0; local [all...] |
H A D | fuse_i.h | 69 refcount_t count; member in struct:fuse_submount_lookup 85 refcount_t count; member in struct:fuse_backing 236 refcount_t count; member in struct:fuse_file 413 refcount_t count; member in struct:fuse_req 587 /* count is a possible scalability bottleneck */ 588 atomic_t count; member in struct:fuse_sync_bucket 605 refcount_t count; member in struct:fuse_conn 1027 if (atomic_dec_and_test(&bucket->count)) 1081 size_t count, int opcode);
|
H A D | cuse.c | 588 const char *buf, size_t count) 593 return count; 586 cuse_class_abort_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
|
/linux-master/drivers/virt/ |
H A D | vmgenid.c | 43 if (!obj || obj->type != ACPI_TYPE_PACKAGE || obj->package.count != 2 ||
|
/linux-master/drivers/scsi/ |
H A D | scsi_lib.c | 1118 int count; local 1141 count = __blk_rq_map_sg(rq->q, rq, cmd->sdb.table.sgl, &last_sg); 1158 count++; 1161 BUG_ON(count > cmd->sdb.table.nents); 1162 cmd->sdb.table.nents = count; 1188 count = blk_rq_map_integrity_sg(rq->q, rq->bio, 1190 BUG_ON(count > ivecs); 1191 BUG_ON(count > queue_max_integrity_segments(rq->q)); 1194 cmd->prot_sdb->table.nents = count;
|
/linux-master/drivers/s390/cio/ |
H A D | qdio_main.c | 110 * @count: count of buffers to examine 117 int start, int count, int auto_ack) 119 int tmp_count = count, tmp_start = start, nr = q->nr; 134 return count - tmp_count; 140 return count - tmp_count; 148 DBF_ERROR("%3d%3d%2d", count, tmp_count, nr); 150 q->first_to_check, count, q->irq_ptr->int_parm); 160 * @count: how many buffers to change 163 * Does retrying until the specified count o 116 qdio_do_eqbs(struct qdio_q *q, unsigned char *state, int start, int count, int auto_ack) argument 166 qdio_do_sqbs(struct qdio_q *q, unsigned char state, int start, int count) argument 205 get_buf_states(struct qdio_q *q, unsigned int bufnr, unsigned char *state, unsigned int count, int auto_ack) argument 242 set_buf_states(struct qdio_q *q, int bufnr, unsigned char state, int count) argument 323 qdio_siga_output(struct qdio_q *q, unsigned int count, unsigned int *busy_bit, dma64_t aob) argument 405 account_sbals(struct qdio_q *q, unsigned int count) argument 411 process_buffer_error(struct qdio_q *q, unsigned int start, int count) argument 430 inbound_handle_work(struct qdio_q *q, unsigned int start, int count, bool auto_ack) argument 446 int count; local 507 int count; local 548 int count; local 611 int count; local 630 qdio_kick_outbound_q(struct qdio_q *q, unsigned int count, dma64_t aob) argument 1210 handle_inbound(struct qdio_q *q, int bufnr, int count) argument 1240 qdio_add_bufs_to_input_queue(struct ccw_device *cdev, unsigned int q_nr, unsigned int bufnr, unsigned int count) argument 1269 handle_outbound(struct qdio_q *q, unsigned int bufnr, unsigned int count, struct qaob *aob) argument 1310 qdio_add_bufs_to_output_queue(struct ccw_device *cdev, unsigned int q_nr, unsigned int bufnr, unsigned int count, struct qaob *aob) argument [all...] |
H A D | device.c | 493 const char *buf, size_t count) 513 if (!strncmp(buf, "force\n", count)) { 539 return (ret < 0) ? ret : count; 569 const char *buf, size_t count) 582 return count; 645 * If a device is found its reference count is increased and returned; 1694 * If a match is found, its reference count of the found device is increased 492 online_store(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument 568 initiate_logging(struct device *dev, struct device_attribute *attr, const char *buf, size_t count) argument
|
/linux-master/drivers/platform/x86/amd/pmf/ |
H A D | pmf.h | 489 u32 count; member in struct:cnqf_tran_params
|
H A D | acpi.c | 25 apmf_if_arg_list.count = 2; 101 apts_if_arg_list.count = 3;
|
/linux-master/drivers/net/ |
H A D | tun.c | 108 unsigned int count; /* Number of addrs. Zero means disabled */ member in struct:tap_filter 154 int count; member in struct:tun_page 448 unsigned long count = 0; local 464 count++; 470 if (count) 889 if (!uf.count) { 891 filter->count = 0; 895 alen = ETH_ALEN * uf.count; 903 filter->count = 0; 907 for (n = 0; n < uf.count [all...] |
/linux-master/drivers/net/ethernet/stmicro/stmmac/ |
H A D | stmmac_main.c | 2608 unsigned int entry, xmits = 0, count = 0; local 2618 while ((entry != tx_q->cur_tx) && count < priv->dma_conf.dma_tx_size) { 2648 count++; 2787 return max(count, xmits); 5227 unsigned int count = 0, error = 0, len = 0; local 5252 while (count < limit) { 5260 if (!count && rx_q->state_saved) { 5269 if (count >= limit) 5325 count++; 5334 count 5421 unsigned int count = 0, error = 0, len = 0; local 6635 int count = 0; local [all...] |
H A D | dwxgmac2_core.c | 1008 int index, unsigned long *count, 1018 if (count) 1019 *count = *(ptr + index); 1088 unsigned int count, u32 curr_prio) 1095 for (i = count - 1; i >= 0; i--) { 1128 unsigned int count) 1146 for (i = 0; i < count; i++) { 1153 entry = dwxgmac3_rxp_get_next_entry(entries, count, curr_prio); 1188 for (i = 0; i < count; i++) { 1007 dwxgmac3_safety_feat_dump(struct stmmac_safety_stats *stats, int index, unsigned long *count, const char **desc) argument 1087 dwxgmac3_rxp_get_next_entry(struct stmmac_tc_entry *entries, unsigned int count, u32 curr_prio) argument 1126 dwxgmac3_rxp_config(void __iomem *ioaddr, struct stmmac_tc_entry *entries, unsigned int count) argument
|
/linux-master/drivers/net/ethernet/microchip/sparx5/ |
H A D | sparx5_tc_flower.c | 402 int idx, jdx, err = 0, count = 0; local 447 ++count; 450 if (count == 0) 453 if (l3_proto == ETH_P_ALL && count < portkeysetlist.cnt) 474 if (count > 1) 1310 int err = -ENOENT, count = 0, rule_id; local 1318 if (count == 0) { 1373 int count, err; local 1381 count = vcap_admin_rule_count(admin, fco->common.chain_index); 1382 if (count > [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | main.c | 2045 u32 count; local 2049 count = ioread32be(health->health_counter); 2050 if (count && count != 0xffffffff) { 2051 if (last_count && last_count != count) { 2054 count, i); 2057 last_count = count;
|
H A D | eswitch_offloads.c | 1646 int count, err = 0; local 1664 count = MLX5_MAX_PORTS * (esw->total_vports * MAX_SQ_NVPORTS + MAX_PF_SQ); 1666 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, *ix + count - 1); 1667 *ix += count; 2707 struct mlx5_vport *vport, size_t count) 2711 .max_fte = count, .prio = 0, .level = 0, 2747 MLX5_SET(create_flow_group_in, flow_group_in, end_flow_index, count); 2782 struct mlx5_core_dev *slave, size_t count) 2803 err = esw_master_egress_create_resources(esw, egress_ns, vport, count); 2705 esw_master_egress_create_resources(struct mlx5_eswitch *esw, struct mlx5_flow_namespace *egress_ns, struct mlx5_vport *vport, size_t count) argument 2781 esw_set_master_egress_rule(struct mlx5_core_dev *master, struct mlx5_core_dev *slave, size_t count) argument
|
H A D | en_main.c | 2183 if (txq - tc_to_txq[tc].offset < tc_to_txq[tc].count) 2872 u16 count, offset; local 2874 count = tc_to_txq[tc].count; 2876 netdev_set_tc_queue(netdev, tc, count, offset); 2979 u16 count = priv->channels.params.num_channels; local 2990 mlx5e_rx_res_rss_update_num_channels(priv->rx_res, count); 2993 mlx5e_rx_res_rss_set_indir_uniform(priv->rx_res, count); 3441 .count = nch, 3454 .count [all...] |
/linux-master/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | sd.c | 396 static ssize_t dev_read(struct file *filp, char __user *buf, size_t count, argument 407 return simple_read_from_buffer(buf, count, pos, tbuf, ret);
|