Searched refs:cnt (Results 276 - 300 of 1458) sorted by relevance

<<11121314151617181920>>

/linux-master/kernel/trace/
H A Dtrace.c739 const char __user *ubuf, size_t cnt)
776 while (cnt > 0) {
780 ret = trace_get_user(&parser, ubuf, cnt, &pos);
786 cnt -= ret;
1730 size_t cnt, loff_t *ppos)
1744 cnt--;
1752 while (cnt && isspace(ch)) {
1757 cnt--;
1771 while (cnt && !isspace(ch) && ch) {
1782 cnt
737 trace_pid_write(struct trace_pid_list *filtered_pids, struct trace_pid_list **new_pid_list, const char __user *ubuf, size_t cnt) argument
1729 trace_get_user(struct trace_parser *parser, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
1807 trace_seq_to_buffer(struct trace_seq *s, void *buf, size_t cnt) argument
5353 tracing_trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
5695 tracing_readme_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
5886 tracing_set_trace_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
6217 tracing_set_trace_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
6248 tracing_nsecs_read(unsigned long *ptr, char __user *ubuf, size_t cnt, loff_t *ppos) argument
6262 tracing_nsecs_write(unsigned long *ptr, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
6278 tracing_thresh_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
6285 tracing_thresh_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
6312 tracing_max_lat_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
6321 tracing_max_lat_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
6514 tracing_read_pipe(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
6759 tracing_entries_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
6807 tracing_entries_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
6835 tracing_total_entries_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
6859 tracing_free_buffer_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
6891 tracing_mark_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) argument
6985 tracing_mark_raw_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) argument
7087 tracing_clock_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *fpos) argument
7253 tracing_snapshot_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
7506 trace_min_max_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
7552 trace_min_max_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
8331 unsigned long cnt; local
8396 tracing_read_dyn_info(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
8681 trace_options_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
8696 trace_options_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
8787 trace_options_core_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
8806 trace_options_core_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
8909 int cnt; local
8996 rb_simple_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
9010 rb_simple_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
9054 buffer_percent_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
9068 buffer_percent_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
9098 buffer_subbuf_size_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
9115 buffer_subbuf_size_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
10029 int cnt = 0, cpu; local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt7601u/
H A Dmcu.c215 int cnt, i, ret; local
220 cnt = min(max_vals_per_cmd, n);
222 skb = alloc_skb(cnt * 8 + MT_DMA_HDR_LEN + 4, GFP_KERNEL);
227 for (i = 0; i < cnt; i++) {
232 ret = mt7601u_mcu_msg_send(dev, skb, CMD_RANDOM_WRITE, cnt == n);
236 return mt7601u_write_reg_pairs(dev, base, data + cnt, n - cnt);
244 int cnt, i, ret; local
249 cnt = min(max_regs_per_cmd, n);
251 skb = alloc_skb(cnt *
[all...]
/linux-master/drivers/net/wan/
H A Dn2.c287 int cnt; local
289 for (cnt = 0; cnt < 2; cnt++)
290 if (card->ports[cnt].card) {
291 struct net_device *dev = port_to_dev(&card->ports[cnt]);
325 u8 cnt, pcr; local
434 for (cnt = 0; cnt < 2; cnt
[all...]
/linux-master/drivers/infiniband/hw/usnic/
H A Dusnic_ib_verbs.c56 {.type = USNIC_VNIC_RES_TYPE_EOL, .cnt = 0,},
61 {.type = USNIC_VNIC_RES_TYPE_WQ, .cnt = 1,},
62 {.type = USNIC_VNIC_RES_TYPE_RQ, .cnt = 1,},
63 {.type = USNIC_VNIC_RES_TYPE_CQ, .cnt = 1,},
64 {.type = USNIC_VNIC_RES_TYPE_EOL, .cnt = 0,},
69 {.type = USNIC_VNIC_RES_TYPE_WQ, .cnt = 1,},
70 {.type = USNIC_VNIC_RES_TYPE_RQ, .cnt = 1,},
71 {.type = USNIC_VNIC_RES_TYPE_CQ, .cnt = 1,},
72 {.type = USNIC_VNIC_RES_TYPE_EOL, .cnt = 0,},
124 resp.rq_cnt = chunk->cnt;
[all...]
/linux-master/kernel/sched/
H A Ddebug.c125 size_t cnt, loff_t *ppos)
132 if (cnt > 63)
133 cnt = 63;
135 if (copy_from_user(&buf, ubuf, cnt))
138 buf[cnt] = 0;
151 *ppos += cnt;
153 return cnt;
172 size_t cnt, loff_t *ppos)
177 if (cnt > 15)
178 cnt
124 sched_feat_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
171 sched_scaling_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
221 sched_dynamic_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
287 sched_verbose_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
[all...]
/linux-master/drivers/scsi/qla2xxx/
H A Dqla_iocb.c333 uint16_t cnt; local
380 if (req->cnt < (req_cnt + 2)) {
381 cnt = rd_reg_word_relaxed(ISP_REQ_Q_OUT(ha, reg));
382 if (req->ring_index < cnt)
383 req->cnt = cnt - req->ring_index;
385 req->cnt = req->length -
386 (req->ring_index - cnt);
388 if (req->cnt < (req_cnt + 2))
397 req->cnt
1546 uint16_t cnt; local
1701 uint16_t cnt; local
1910 uint16_t cnt; local
2069 uint16_t cnt; local
2290 uint16_t cnt, req_cnt; local
3378 uint16_t cnt; local
4145 uint16_t cnt; local
4243 uint16_t cnt; local
[all...]
/linux-master/tools/testing/selftests/bpf/prog_tests/
H A Dmigrate_reuseport.c412 int err, cnt = 0, client; local
419 for (; cnt < NR_CLIENTS; cnt++) {
434 ASSERT_EQ(cnt, NR_CLIENTS, "count in userspace");
438 cnt = skel->bss->migrated_at_close;
441 cnt = skel->bss->migrated_at_close_fastopen;
445 cnt = skel->bss->migrated_at_send_synack;
447 cnt = skel->bss->migrated_at_recv_ack;
450 cnt = 0;
453 ASSERT_EQ(cnt, NR_CLIENT
[all...]
/linux-master/drivers/net/ethernet/microchip/vcap/
H A Dvcap_api_debugfs_kunit.c43 if (kslist->cnt > 0) {
46 for (idx = 0; idx < kslist->cnt; idx++) {
61 for (idx = 0; idx < kslist->cnt; idx++) {
263 int idx, cnt; local
272 cnt = vscnprintf(test_buffer, TEST_BUF_SZ, fmt, args);
275 for (idx = 0; idx < cnt; ++idx) {
287 return cnt;
321 matches.cnt = 0;
335 matches.cnt = 0;
339 KUNIT_EXPECT_EQ(test, matches.cnt,
[all...]
/linux-master/net/ipv4/
H A Dtcp_cubic.c87 u32 cnt; /* increase cwnd by 1 after ACKs */ member in struct:bictcp
225 /* The CUBIC function can update ca->cnt at most once per jiffy.
227 * which will force a recalculation of ca->cnt.
287 ca->cnt = cwnd / (bic_target - cwnd);
289 ca->cnt = 100 * cwnd; /* very small increment*/
296 if (ca->last_max_cwnd == 0 && ca->cnt > 20)
297 ca->cnt = 20; /* increase cwnd 5% per RTT */
313 if (ca->cnt > max_cnt)
314 ca->cnt = max_cnt;
321 ca->cnt
[all...]
/linux-master/tools/testing/selftests/net/
H A Dfib_rule_tests.sh218 local cnt
230 for cnt in $(seq 1 3); do
231 match="dsfield $cnt"
237 for cnt in "0x10" "0x11" "0x12" "0x13"; do
240 getmatch="tos $cnt"
357 local cnt
374 for cnt in $(seq 1 3); do
375 match="dsfield $cnt"
381 for cnt in "0x10" "0x11" "0x12" "0x13"; do
384 getmatch="tos $cnt"
[all...]
/linux-master/drivers/gpu/drm/msm/dp/
H A Ddp_panel.c457 int cnt; local
463 cnt = of_property_count_u64_elems(endpoint, "link-frequencies");
465 if (cnt > 0)
467 cnt - 1, &frequency);
481 int cnt; local
489 cnt = drm_of_get_data_lanes_count_ep(of_node, 1, 0, 1, DP_MAX_NUM_DP_LANES);
490 if (cnt < 0) {
492 cnt = drm_of_get_data_lanes_count(of_node, 1, DP_MAX_NUM_DP_LANES);
495 if (cnt > 0)
496 dp_panel->max_dp_lanes = cnt;
[all...]
/linux-master/drivers/usb/host/
H A Dfhci-sched.c705 u16 cnt = 0; local
772 fhci_td_fill(fhci, urb, urb_priv, ed, cnt,
775 cnt ? USB_TD_TOGGLE_CARRY :
780 cnt++;
783 fhci_td_fill(fhci, urb, urb_priv, ed, cnt,
785 cnt ? USB_TD_TOGGLE_CARRY : toggle,
787 cnt++;
790 cnt < urb_priv->num_of_tds) {
791 fhci_td_fill(fhci, urb, urb_priv, ed, cnt,
795 cnt
[all...]
/linux-master/lib/
H A Ddebugobjects.c165 int cnt; local
167 for (cnt = 0; cnt < ODEBUG_BATCH_SIZE; cnt++) {
168 new[cnt] = kmem_cache_zalloc(obj_cache, gfp);
169 if (!new[cnt])
172 if (!cnt)
176 while (cnt) {
177 hlist_add_head(&new[--cnt]->node, &obj_pool);
191 int cnt local
962 int cnt, objs_checked = 0; local
1311 int i, cnt = 0; local
[all...]
/linux-master/tools/testing/memblock/tests/
H A Dalloc_nid_api.c91 ASSERT_EQ(memblock.reserved.cnt, 1);
144 ASSERT_EQ(memblock.reserved.cnt, 1);
194 ASSERT_EQ(memblock.reserved.cnt, 1);
243 ASSERT_EQ(memblock.reserved.cnt, 1);
339 ASSERT_EQ(memblock.reserved.cnt, 1);
389 ASSERT_EQ(memblock.reserved.cnt, 1);
455 ASSERT_EQ(memblock.reserved.cnt, 2);
515 ASSERT_EQ(memblock.reserved.cnt, 1);
582 ASSERT_EQ(memblock.reserved.cnt, 2);
674 ASSERT_EQ(memblock.reserved.cnt,
[all...]
/linux-master/drivers/base/power/
H A Dwakeup.c48 static void split_counters(unsigned int *cnt, unsigned int *inpr) argument
52 *cnt = (comb >> IN_PROGRESS_BITS);
668 unsigned int cnt, inpr, cec; local
709 split_counters(&cnt, &inpr);
886 unsigned int cnt, inpr; local
888 split_counters(&cnt, &inpr);
889 ret = (cnt != saved_count || inpr > 0);
972 unsigned int cnt, inpr; local
980 split_counters(&cnt, &inpr);
989 split_counters(&cnt,
1006 unsigned int cnt, inpr; local
[all...]
/linux-master/drivers/net/wireless/mediatek/mt76/mt7996/
H A Dmac.c2093 u32 cnt; local
2096 cnt = mt76_rr(dev, MT_MIB_RSCR1(band_idx));
2097 mib->fcs_err_cnt += cnt;
2099 cnt = mt76_rr(dev, MT_MIB_RSCR33(band_idx));
2100 mib->rx_fifo_full_cnt += cnt;
2102 cnt = mt76_rr(dev, MT_MIB_RSCR31(band_idx));
2103 mib->rx_mpdu_cnt += cnt;
2105 cnt = mt76_rr(dev, MT_MIB_SDR6(band_idx));
2106 mib->channel_idle_cnt += FIELD_GET(MT_MIB_SDR6_CHANNEL_IDL_CNT_MASK, cnt);
2108 cnt
[all...]
/linux-master/include/linux/netfilter/
H A Dx_tables.h430 void xt_percpu_counter_free(struct xt_counters *cnt);
433 xt_get_this_cpu_counter(struct xt_counters *cnt) argument
436 return this_cpu_ptr((void __percpu *) (unsigned long) cnt->pcnt);
438 return cnt;
442 xt_get_per_cpu_counter(struct xt_counters *cnt, unsigned int cpu) argument
445 return per_cpu_ptr((void __percpu *) (unsigned long) cnt->pcnt, cpu);
447 return cnt;
/linux-master/drivers/target/iscsi/cxgbit/
H A Dcxgbit_ddp.c132 unsigned int i, cnt; local
137 for (i = 0; i < npods; i += cnt, pidx += cnt) {
138 cnt = npods - i;
140 if (cnt > ULPMEM_IDATA_MAX_NPPODS)
141 cnt = ULPMEM_IDATA_MAX_NPPODS;
143 ret = cxgbit_ppod_write_idata(ppm, csk, ttinfo, pidx, cnt,
/linux-master/drivers/scsi/snic/
H A Dsnic_debugfs.c60 * @cnt: The number of bytes to read.
66 * copy up to @cnt of data to @ubuf from @buf.
74 size_t cnt,
83 return simple_read_from_buffer(ubuf, cnt, ppos, buf, len);
90 * @cnt: The number of bytes to write.
103 size_t cnt,
114 if (cnt >= sizeof(buf))
117 if (copy_from_user(&buf, ubuf, cnt))
120 buf[cnt] = '\0';
150 return cnt;
72 snic_reset_stats_read(struct file *filp, char __user *ubuf, size_t cnt, loff_t *ppos) argument
101 snic_reset_stats_write(struct file *filp, const char __user *ubuf, size_t cnt, loff_t *ppos) argument
[all...]
/linux-master/net/ethtool/
H A Dfec.c18 u8 cnt; member in struct:fec_reply_data::fec_stat_grp
78 grp->cnt = stats->total != ETHTOOL_STAT_NOT_SET;
82 grp->cnt = 1;
89 grp->stats[grp->cnt++] = stats->lanes[i];
176 sizeof(u64) * data->corr.cnt,
179 sizeof(u64) * data->uncorr.cnt,
182 sizeof(u64) * data->corr_bits.cnt,
/linux-master/fs/nilfs2/
H A Ddirect.c57 int ret, cnt; local
75 for (cnt = 1; cnt < maxblocks &&
76 (ptr2 = nilfs_direct_get_ptr(direct, key + cnt)) !=
78 cnt++) {
85 if (ptr2 != ptr + cnt)
89 return cnt;
/linux-master/drivers/media/usb/pvrusb2/
H A Dpvrusb2-sysfs.c137 unsigned int cnt = 0; local
142 buf, PAGE_SIZE - 1, &cnt);
144 cip->chptr, cip->ctl_id, cnt, buf, val);
145 buf[cnt] = '\n';
146 return cnt + 1;
156 unsigned int cnt = 0; local
161 buf, PAGE_SIZE - 1, &cnt);
163 cip->chptr, cip->ctl_id, cnt, buf, val);
164 buf[cnt] = '\n';
165 return cnt
175 unsigned int cnt = 0; local
286 unsigned int cnt,acnt; local
464 unsigned int idx,cnt; local
[all...]
/linux-master/fs/ubifs/
H A Dlpt_commit.c91 int cnt = 0; local
103 cnt += 1;
114 cnt += 1;
116 dbg_cmt("committing %d cnodes", cnt);
117 dbg_lp("committing %d cnodes", cnt);
118 ubifs_assert(c, cnt == c->dirty_nn_cnt + c->dirty_pn_cnt);
119 return cnt;
765 int i, cnt = 0; local
777 c->lsave[cnt++] = lprops->lnum;
778 if (cnt >
1183 int err, cnt; local
1513 int i, cnt; local
1662 int lnum, err, i, cnt; local
[all...]
/linux-master/drivers/mmc/host/
H A Ddw_mmc.c2289 static void dw_mci_set_part_bytes(struct dw_mci *host, void *buf, int cnt) argument
2291 memcpy((void *)&host->part_buf, buf, cnt);
2292 host->part_buf_count = cnt;
2296 static int dw_mci_push_part_bytes(struct dw_mci *host, void *buf, int cnt) argument
2298 cnt = min(cnt, (1 << host->data_shift) - host->part_buf_count);
2299 memcpy((void *)&host->part_buf + host->part_buf_count, buf, cnt);
2300 host->part_buf_count += cnt;
2301 return cnt;
2305 static int dw_mci_pull_part_bytes(struct dw_mci *host, void *buf, int cnt) argument
2310 cnt); local
2318 dw_mci_pull_final_bytes(struct dw_mci *host, void *buf, int cnt) argument
2325 dw_mci_push_data16(struct dw_mci *host, void *buf, int cnt) argument
2375 dw_mci_pull_data16(struct dw_mci *host, void *buf, int cnt) argument
2408 dw_mci_push_data32(struct dw_mci *host, void *buf, int cnt) argument
2458 dw_mci_pull_data32(struct dw_mci *host, void *buf, int cnt) argument
2491 dw_mci_push_data64(struct dw_mci *host, void *buf, int cnt) argument
2542 dw_mci_pull_data64(struct dw_mci *host, void *buf, int cnt) argument
2576 dw_mci_pull_data(struct dw_mci *host, void *buf, int cnt) argument
[all...]
/linux-master/drivers/staging/rts5208/
H A Drtsx_transport.c39 unsigned int cnt; local
47 cnt = min(buflen, scsi_bufflen(srb) - *offset);
52 memcpy(sgbuffer, buffer, cnt);
54 memcpy(buffer, sgbuffer, cnt);
55 *offset += cnt;
73 cnt = 0;
74 while (cnt < buflen && *index < scsi_sg_count(srb)) {
81 if (sglen > buflen - cnt) {
83 sglen = buflen - cnt;
97 memcpy_to_page(page, poff, buffer + cnt, ple
[all...]

Completed in 305 milliseconds

<<11121314151617181920>>