Home
last modified time | relevance | path

Searched refs:cnt (Results 1 – 25 of 231) sorted by relevance

12345678910

/linux-4.19.296/fs/quota/
Ddquot.c402 int ret, err, cnt; in mark_all_dquot_dirty() local
405 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in mark_all_dquot_dirty()
406 if (dquot[cnt]) in mark_all_dquot_dirty()
408 ret = mark_dquot_dirty(dquot[cnt]); in mark_all_dquot_dirty()
417 unsigned int cnt; in dqput_all() local
419 for (cnt = 0; cnt < MAXQUOTAS; cnt++) in dqput_all()
420 dqput(dquot[cnt]); in dqput_all()
671 int cnt; in dquot_writeback_dquots() local
676 for (cnt = 0; cnt < MAXQUOTAS; cnt++) { in dquot_writeback_dquots()
677 if (type != -1 && cnt != type) in dquot_writeback_dquots()
[all …]
/linux-4.19.296/lib/
Dfind_bit_benchmark.c46 unsigned long i, cnt; in test_find_first_bit() local
50 for (cnt = i = 0; i < len; cnt++) { in test_find_first_bit()
55 pr_err("find_first_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_first_bit()
62 unsigned long i, cnt; in test_find_next_bit() local
66 for (cnt = i = 0; i < BITMAP_LEN; cnt++) in test_find_next_bit()
69 pr_err("find_next_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_next_bit()
76 unsigned long i, cnt; in test_find_next_zero_bit() local
80 for (cnt = i = 0; i < BITMAP_LEN; cnt++) in test_find_next_zero_bit()
83 pr_err("find_next_zero_bit: %18llu ns, %6ld iterations\n", time, cnt); in test_find_next_zero_bit()
90 unsigned long l, cnt = 0; in test_find_last_bit() local
[all …]
Dseq_buf.c310 int seq_buf_to_user(struct seq_buf *s, char __user *ubuf, int cnt) argument
315 if (!cnt)
324 if (cnt > len)
325 cnt = len;
326 ret = copy_to_user(ubuf, s->buffer + s->readpos, cnt);
327 if (ret == cnt)
330 cnt -= ret;
332 s->readpos += cnt;
333 return cnt;
/linux-4.19.296/drivers/uwb/i1480/dfu/
Dphy.c105 unsigned cnt; in i1480_mpi_read() local
115 for (cnt = 0; cnt < size; cnt++) { in i1480_mpi_read()
116 cmd->data[cnt].page = (srcaddr + cnt) >> 8; in i1480_mpi_read()
117 cmd->data[cnt].offset = (srcaddr + cnt) & 0xff; in i1480_mpi_read()
131 for (cnt = 0; cnt < size; cnt++) { in i1480_mpi_read()
132 if (reply->data[cnt].page != (srcaddr + cnt) >> 8) in i1480_mpi_read()
134 "index %u: expected 0x%02x, got 0x%02x\n", cnt, in i1480_mpi_read()
135 (srcaddr + cnt) >> 8, reply->data[cnt].page); in i1480_mpi_read()
136 if (reply->data[cnt].offset != ((srcaddr + cnt) & 0x00ff)) in i1480_mpi_read()
138 "index %u: expected 0x%02x, got 0x%02x\n", cnt, in i1480_mpi_read()
[all …]
Dmac.c170 u32 src_itr = 0, cnt; in i1480_fw_cmp() local
185 for (cnt = 0; cnt < result; cnt++) in i1480_fw_cmp()
186 if (bin[src_itr + cnt] != buf[cnt]) { in i1480_fw_cmp()
189 "vs 0x%02x]\n", src_itr, cnt, in i1480_fw_cmp()
190 bin[src_itr + cnt], buf[cnt]); in i1480_fw_cmp()
191 result = src_itr + cnt + 1; in i1480_fw_cmp()
420 int cnt = 0; in i1480_fw_is_running_q() local
424 for (cnt = 0; cnt < 10; cnt++) { in i1480_fw_is_running_q()
/linux-4.19.296/fs/ntfs/
Dbitmap.c50 s64 cnt = count; in __ntfs_bitmap_set_bits_in_run() local
61 (unsigned long long)cnt, (unsigned int)value, in __ntfs_bitmap_set_bits_in_run()
64 BUG_ON(cnt < 0); in __ntfs_bitmap_set_bits_in_run()
71 end_index = (start_bit + cnt - 1) >> (3 + PAGE_SHIFT); in __ntfs_bitmap_set_bits_in_run()
93 while ((bit & 7) && cnt) { in __ntfs_bitmap_set_bits_in_run()
94 cnt--; in __ntfs_bitmap_set_bits_in_run()
101 if (!cnt) in __ntfs_bitmap_set_bits_in_run()
111 len = min_t(s64, cnt >> 3, PAGE_SIZE - pos); in __ntfs_bitmap_set_bits_in_run()
113 cnt -= len << 3; in __ntfs_bitmap_set_bits_in_run()
116 if (cnt < 8) in __ntfs_bitmap_set_bits_in_run()
[all …]
/linux-4.19.296/drivers/misc/
Dtifm_7xx1.c44 unsigned int irq_status, cnt; in tifm_7xx1_isr() local
56 for (cnt = 0; cnt < fm->num_sockets; cnt++) { in tifm_7xx1_isr()
57 sock = fm->sockets[cnt]; in tifm_7xx1_isr()
59 if ((irq_status >> cnt) & TIFM_IRQ_FIFOMASK(1)) in tifm_7xx1_isr()
61 if ((irq_status >> cnt) & TIFM_IRQ_CARDMASK(1)) in tifm_7xx1_isr()
85 int cnt; in tifm_7xx1_toggle_sock_power() local
89 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
94 msleep(cnt); in tifm_7xx1_toggle_sock_power()
113 for (cnt = 16; cnt <= 256; cnt <<= 1) { in tifm_7xx1_toggle_sock_power()
118 msleep(cnt); in tifm_7xx1_toggle_sock_power()
[all …]
/linux-4.19.296/drivers/pci/
Dproc.c32 unsigned int cnt, size; in proc_bus_pci_read() local
53 cnt = nbytes; in proc_bus_pci_read()
55 if (!access_ok(VERIFY_WRITE, buf, cnt)) in proc_bus_pci_read()
60 if ((pos & 1) && cnt) { in proc_bus_pci_read()
66 cnt--; in proc_bus_pci_read()
69 if ((pos & 3) && cnt > 2) { in proc_bus_pci_read()
75 cnt -= 2; in proc_bus_pci_read()
78 while (cnt >= 4) { in proc_bus_pci_read()
84 cnt -= 4; in proc_bus_pci_read()
87 if (cnt >= 2) { in proc_bus_pci_read()
[all …]
/linux-4.19.296/drivers/char/tpm/eventlog/
Dcommon.c111 unsigned int cnt; in tpm_bios_log_setup() local
123 cnt = 0; in tpm_bios_log_setup()
124 chip->bios_dir[cnt] = securityfs_create_dir(name, NULL); in tpm_bios_log_setup()
128 if (IS_ERR(chip->bios_dir[cnt])) in tpm_bios_log_setup()
130 cnt++; in tpm_bios_log_setup()
141 chip->bios_dir[cnt] = in tpm_bios_log_setup()
146 if (IS_ERR(chip->bios_dir[cnt])) in tpm_bios_log_setup()
148 cnt++; in tpm_bios_log_setup()
156 chip->bios_dir[cnt] = in tpm_bios_log_setup()
161 if (IS_ERR(chip->bios_dir[cnt])) in tpm_bios_log_setup()
[all …]
/linux-4.19.296/drivers/memstick/host/
Djmb38x_ms.c642 int cnt; in jmb38x_ms_reset() local
649 for (cnt = 0; cnt < 20; ++cnt) { in jmb38x_ms_reset()
664 for (cnt = 0; cnt < 20; ++cnt) { in jmb38x_ms_reset()
809 int cnt; in jmb38x_ms_suspend() local
811 for (cnt = 0; cnt < jm->host_cnt; ++cnt) { in jmb38x_ms_suspend()
812 if (!jm->hosts[cnt]) in jmb38x_ms_suspend()
814 memstick_suspend_host(jm->hosts[cnt]); in jmb38x_ms_suspend()
857 int cnt, rc = 0; in jmb38x_ms_count_slots() local
859 for (cnt = 0; cnt < PCI_ROM_RESOURCE; ++cnt) { in jmb38x_ms_count_slots()
860 if (!(IORESOURCE_MEM & pci_resource_flags(pdev, cnt))) in jmb38x_ms_count_slots()
[all …]
/linux-4.19.296/drivers/ptp/
Dptp_sysfs.c56 int cnt, enable; in extts_enable_store() local
59 cnt = sscanf(buf, "%u %d", &req.extts.index, &enable); in extts_enable_store()
60 if (cnt != 2) in extts_enable_store()
83 int cnt = 0; in extts_fifo_show() local
101 cnt = snprintf(page, PAGE_SIZE, "%u %lld %u\n", in extts_fifo_show()
105 return cnt; in extts_fifo_show()
116 int cnt, enable, err = -EINVAL; in period_store() local
118 cnt = sscanf(buf, "%u %lld %u %lld %u", &req.perout.index, in period_store()
121 if (cnt != 5) in period_store()
144 int cnt, enable; in pps_enable_store() local
[all …]
Dptp_private.h73 int cnt = q->tail - q->head; in queue_cnt() local
74 return cnt < 0 ? PTP_MAX_TIMESTAMPS + cnt : cnt; in queue_cnt()
91 uint flags, char __user *buf, size_t cnt);
Dptp_chardev.c303 uint rdflags, char __user *buf, size_t cnt) in ptp_read() argument
312 if (cnt % sizeof(struct ptp_extts_event) != 0) in ptp_read()
315 if (cnt > EXTTS_BUFSIZE) in ptp_read()
316 cnt = EXTTS_BUFSIZE; in ptp_read()
318 cnt = cnt / sizeof(struct ptp_extts_event); in ptp_read()
344 if (cnt > qcnt) in ptp_read()
345 cnt = qcnt; in ptp_read()
347 for (i = 0; i < cnt; i++) { in ptp_read()
354 cnt = cnt * sizeof(struct ptp_extts_event); in ptp_read()
358 result = cnt; in ptp_read()
[all …]
/linux-4.19.296/include/linux/
Dbottom_half.h8 extern void __local_bh_disable_ip(unsigned long ip, unsigned int cnt);
10 static __always_inline void __local_bh_disable_ip(unsigned long ip, unsigned int cnt) in __local_bh_disable_ip() argument
12 preempt_count_add(cnt); in __local_bh_disable_ip()
23 extern void __local_bh_enable_ip(unsigned long ip, unsigned int cnt);
Deventfd.h43 __u64 *cnt);
44 void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt);
76 wait_queue_entry_t *wait, __u64 *cnt) in eventfd_ctx_remove_wait_queue() argument
86 static inline void eventfd_ctx_do_read(struct eventfd_ctx *ctx, __u64 *cnt) in eventfd_ctx_do_read() argument
/linux-4.19.296/drivers/parisc/
Diosapic.c407 int cnt; /* track how many entries we've looked at */ in irt_find_irqline() local
412 for (cnt=0; cnt < irt_num_entry; cnt++, i++) { in irt_find_irqline()
422 …DBG_IRT(KERN_WARNING MODULE_NAME ":find_irqline(0x%p): skipping entry %d type %d\n", i, cnt, i->en… in irt_find_irqline()
427 …DBG_IRT(KERN_WARNING MODULE_NAME ":find_irqline(0x%p): skipping entry %d length %d\n", i, cnt, i-… in irt_find_irqline()
432 …ULE_NAME ":find_irqline(0x%p): skipping entry %d interrupt_type %d\n", i, cnt, i->interrupt_type); in irt_find_irqline()
822 int cnt; in iosapic_serial_irq() local
828 for (cnt = 0; cnt < irt_num_entry; cnt++) { in iosapic_serial_irq()
829 irte = &irt_cell[cnt]; in iosapic_serial_irq()
834 if (cnt >= irt_num_entry) in iosapic_serial_irq()
921 int cnt; /* track how many entries we've looked at */ in iosapic_register() local
[all …]
/linux-4.19.296/fs/hfs/
Dbfind.c174 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto() argument
184 if (cnt < 0) { in hfs_brec_goto()
185 cnt = -cnt; in hfs_brec_goto()
186 while (cnt > fd->record) { in hfs_brec_goto()
187 cnt -= fd->record + 1; in hfs_brec_goto()
202 fd->record -= cnt; in hfs_brec_goto()
204 while (cnt >= bnode->num_recs - fd->record) { in hfs_brec_goto()
205 cnt -= bnode->num_recs - fd->record; in hfs_brec_goto()
220 fd->record += cnt; in hfs_brec_goto()
/linux-4.19.296/drivers/rtc/
Drtc-rs5c313.c216 int cnt; in rs5c313_rtc_read_time() local
218 cnt = 0; in rs5c313_rtc_read_time()
231 if (cnt++ > 100) { in rs5c313_rtc_read_time()
276 int cnt; in rs5c313_rtc_set_time() local
278 cnt = 0; in rs5c313_rtc_set_time()
292 if (cnt++ > 100) { in rs5c313_rtc_set_time()
334 int cnt; in rs5c313_check_xstp_bit() local
344 for (cnt = 0; cnt < 100; cnt++) { in rs5c313_check_xstp_bit()
/linux-4.19.296/drivers/isdn/hisax/
Dnetjet.c67 static void fill_mem(struct BCState *bcs, u_int *pos, u_int cnt, int chan, u_char fill) in fill_mem() argument
78 for (i = 0; i < cnt; i++) { in fill_mem()
398 static void read_raw(struct BCState *bcs, u_int *buf, int cnt) { in read_raw() argument
419 for (i = 0; i < cnt; i++) { in read_raw()
577 int cnt = NETJET_DMA_RXSIZE / 2; in read_tiger() local
596 p = cs->bcs[0].hw.tiger.rec + cnt - 1; in read_tiger()
598 read_raw(cs->bcs, p, cnt); in read_tiger()
601 read_raw(cs->bcs + 1, p, cnt); in read_tiger()
605 static void write_raw(struct BCState *bcs, u_int *buf, int cnt);
610 register int cnt; in netjet_fill_dma() local
[all …]
/linux-4.19.296/fs/hfsplus/
Dbfind.c231 int hfs_brec_goto(struct hfs_find_data *fd, int cnt) in hfs_brec_goto() argument
241 if (cnt < 0) { in hfs_brec_goto()
242 cnt = -cnt; in hfs_brec_goto()
243 while (cnt > fd->record) { in hfs_brec_goto()
244 cnt -= fd->record + 1; in hfs_brec_goto()
259 fd->record -= cnt; in hfs_brec_goto()
261 while (cnt >= bnode->num_recs - fd->record) { in hfs_brec_goto()
262 cnt -= bnode->num_recs - fd->record; in hfs_brec_goto()
277 fd->record += cnt; in hfs_brec_goto()
/linux-4.19.296/fs/nfs/filelayout/
Dfilelayoutdev.c67 u32 cnt, num; in nfs4_fl_alloc_deviceid_node() local
92 cnt = be32_to_cpup(p); in nfs4_fl_alloc_deviceid_node()
93 dprintk("%s stripe count %d\n", __func__, cnt); in nfs4_fl_alloc_deviceid_node()
94 if (cnt > NFS4_PNFS_MAX_STRIPE_CNT) { in nfs4_fl_alloc_deviceid_node()
97 cnt, NFS4_PNFS_MAX_STRIPE_CNT); in nfs4_fl_alloc_deviceid_node()
102 stripe_indices = kcalloc(cnt, sizeof(u8), gfp_flags); in nfs4_fl_alloc_deviceid_node()
106 p = xdr_inline_decode(&stream, cnt << 2); in nfs4_fl_alloc_deviceid_node()
112 for (i = 0; i < cnt; i++) { in nfs4_fl_alloc_deviceid_node()
145 dsaddr->stripe_count = cnt; in nfs4_fl_alloc_deviceid_node()
/linux-4.19.296/fs/ubifs/
Dtnc_commit.c341 static int get_leb_cnt(struct ubifs_info *c, int cnt) in get_leb_cnt() argument
346 cnt -= (c->leb_size - c->ihead_offs) / c->max_idx_node_sz; in get_leb_cnt()
347 if (cnt < 0) in get_leb_cnt()
348 cnt = 0; in get_leb_cnt()
350 return DIV_ROUND_UP(cnt, d); in get_leb_cnt()
363 static int layout_in_gaps(struct ubifs_info *c, int cnt) in layout_in_gaps() argument
367 dbg_gc("%d znodes to write", cnt); in layout_in_gaps()
398 cnt -= written; in layout_in_gaps()
399 leb_needed_cnt = get_leb_cnt(c, cnt); in layout_in_gaps()
400 dbg_gc("%d znodes remaining, need %d LEBs, have %d", cnt, in layout_in_gaps()
[all …]
Dfind.c64 if (heap->cnt < heap->max_cnt) in valuable()
147 for (i = 0; i < heap->cnt; i++) { in scan_for_dirty()
287 if (idx_heap->cnt && !exclude_index) { in ubifs_find_dirty_leb()
304 if (heap->cnt) { in ubifs_find_dirty_leb()
433 for (i = 0; i < heap->cnt; i++) { in do_find_free_space()
770 c->dirty_idx.cnt = c->lpt_heap[LPROPS_DIRTY_IDX - 1].cnt; in ubifs_save_dirty_idx_lnums()
772 sizeof(void *) * c->dirty_idx.cnt); in ubifs_save_dirty_idx_lnums()
774 sort(c->dirty_idx.arr, c->dirty_idx.cnt, sizeof(void *), in ubifs_save_dirty_idx_lnums()
777 dbg_find("found %d dirty index LEBs", c->dirty_idx.cnt); in ubifs_save_dirty_idx_lnums()
778 if (c->dirty_idx.cnt) in ubifs_save_dirty_idx_lnums()
[all …]
/linux-4.19.296/include/trace/events/
Dnilfs2.h102 unsigned long cnt),
104 TP_ARGS(sufile, segnum, cnt),
109 __field(unsigned long, cnt)
115 __entry->cnt = cnt;
121 __entry->cnt)
/linux-4.19.296/drivers/memstick/core/
Dmspro_block.c298 ssize_t cnt, rc = 0; in mspro_block_attr_show_default() local
300 for (cnt = 0; cnt < s_attr->size; cnt++) { in mspro_block_attr_show_default()
301 if (cnt && !(cnt % 16)) { in mspro_block_attr_show_default()
307 ((unsigned char *)s_attr->data)[cnt]); in mspro_block_attr_show_default()
747 int chunk, cnt; in mspro_block_complete_req() local
762 for (cnt = 0; cnt < msb->current_seg; cnt++) { in mspro_block_complete_req()
763 t_len += msb->req_sg[cnt].length in mspro_block_complete_req()
974 int cnt, rc, attr_count; in mspro_block_read_attributes() local
1031 for (cnt = 0; cnt < attr_count; ++cnt) { in mspro_block_read_attributes()
1038 msb->attr_group.attrs[cnt] = &s_attr->dev_attr.attr; in mspro_block_read_attributes()
[all …]

12345678910