Home
last modified time | relevance | path

Searched refs:fcnt (Results 1 – 17 of 17) sorted by relevance

/Linux-v4.19/drivers/mtd/maps/
Dpmcmsp-flash.c48 static int fcnt; variable
70 for (fcnt = 0; (env = prom_getenv(flash_name)); fcnt++) in init_msp_flash()
71 flash_name[5] = '0' + fcnt + 1; in init_msp_flash()
73 if (fcnt < 1) in init_msp_flash()
76 printk(KERN_NOTICE "Found %d PMC flash devices\n", fcnt); in init_msp_flash()
78 msp_flash = kcalloc(fcnt, sizeof(*msp_flash), GFP_KERNEL); in init_msp_flash()
82 msp_parts = kcalloc(fcnt, sizeof(*msp_parts), GFP_KERNEL); in init_msp_flash()
86 msp_maps = kcalloc(fcnt, sizeof(*msp_maps), GFP_KERNEL); in init_msp_flash()
91 for (i = 0; i < fcnt; i++) { in init_msp_flash()
207 for (i = 0; i < fcnt; i++) { in cleanup_msp_flash()
/Linux-v4.19/drivers/isdn/hisax/
Dhfc_pci.c402 int new_z2, fcnt, maxlen; in hfcpci_empty_fifo_trans() local
409 if (!(fcnt = *z1r - *z2r)) in hfcpci_empty_fifo_trans()
412 if (fcnt <= 0) in hfcpci_empty_fifo_trans()
413 fcnt += B_FIFO_SIZE; /* bytes actually buffered */ in hfcpci_empty_fifo_trans()
414 if (fcnt > HFCPCI_BTRANS_THRESHOLD) in hfcpci_empty_fifo_trans()
415 fcnt = HFCPCI_BTRANS_THRESHOLD; /* limit size */ in hfcpci_empty_fifo_trans()
417 new_z2 = *z2r + fcnt; /* new position in fifo */ in hfcpci_empty_fifo_trans()
421 if (!(skb = dev_alloc_skb(fcnt))) in hfcpci_empty_fifo_trans()
424 ptr = skb_put(skb, fcnt); in hfcpci_empty_fifo_trans()
425 if (*z2r + fcnt <= B_FIFO_SIZE + B_SUB_VAL) in hfcpci_empty_fifo_trans()
[all …]
Dhfc_2bds0.c264 int idx, fcnt; in hfc_fill_fifo() local
285 fcnt = bcs->hw.hfc.f1 - bcs->hw.hfc.f2; in hfc_fill_fifo()
286 if (fcnt < 0) in hfc_fill_fifo()
287 fcnt += 32; in hfc_fill_fifo()
288 if (fcnt > 30) { in hfc_fill_fifo()
691 int idx, fcnt; in hfc_fill_dfifo() local
712 fcnt = cs->hw.hfcD.f1 - cs->hw.hfcD.f2; in hfc_fill_dfifo()
713 if (fcnt < 0) in hfc_fill_dfifo()
714 fcnt += 16; in hfc_fill_dfifo()
715 if (fcnt > 14) { in hfc_fill_dfifo()
Dhfc_2bs0.c240 int idx, fcnt; in hfc_fill_fifo() local
266 fcnt = bcs->hw.hfc.f1 - bcs->hw.hfc.f2; in hfc_fill_fifo()
267 if (fcnt < 0) in hfc_fill_fifo()
268 fcnt += 32; in hfc_fill_fifo()
269 if (fcnt > 30) { in hfc_fill_fifo()
/Linux-v4.19/drivers/ata/
Dpata_hpt3x2n.c413 u32 fcnt; in hpt3x2n_pci_clock() local
416 fcnt = inl(iobase + 0x90); /* Not PCI readable for some chips */ in hpt3x2n_pci_clock()
417 if ((fcnt >> 12) != 0xABCDE) { in hpt3x2n_pci_clock()
430 fcnt = total / 128; in hpt3x2n_pci_clock()
432 fcnt &= 0x1FF; in hpt3x2n_pci_clock()
434 freq = (fcnt * 77) / 192; in hpt3x2n_pci_clock()
/Linux-v4.19/net/sched/
Dsch_fq.c197 int fcnt = 0; in fq_gc() local
209 tofree[fcnt++] = f; in fq_gc()
210 if (fcnt == FQ_GC_MAX) in fq_gc()
220 q->flows -= fcnt; in fq_gc()
221 q->inactive_flows -= fcnt; in fq_gc()
222 q->stat_gc_flows += fcnt; in fq_gc()
223 while (fcnt) { in fq_gc()
224 struct fq_flow *f = tofree[--fcnt]; in fq_gc()
610 int fcnt = 0; in fq_rehash() local
619 fcnt++; in fq_rehash()
[all …]
/Linux-v4.19/drivers/staging/most/dim2/
Dhal.c79 u32 fcnt; member
462 u16 const bd_factor = g.fcnt + 2; in check_bytes_per_frame()
504 u32 const unit = bytes_per_frame << g.fcnt; in norm_sync_buffer_size()
544 g.fcnt << MLBC0_FCNT_SHIFT | in dim2_initialize()
716 u32 fcnt) in dim_startup() argument
728 if (fcnt > MLBC0_FCNT_MAX_VAL) in dim_startup()
732 g.fcnt = fcnt; in dim_startup()
867 u16 bd_factor = g.fcnt + 2; in dim_init_sync()
Ddim2.c43 static u8 fcnt = 4; /* (1 << fcnt) frames per subbuffer */ variable
44 module_param(fcnt, byte, 0000);
45 MODULE_PARM_DESC(fcnt, "Num of frames per sub-buffer for sync channels as a power of 2");
790 dev_info(&pdev->dev, "sync: num of frames per sub-buffer: %u\n", fcnt); in dim2_probe()
791 hal_ret = dim_startup(dev->io_base, dev->clk_speed, fcnt); in dim2_probe()
Dhal.h58 u32 fcnt);
/Linux-v4.19/drivers/isdn/hardware/mISDN/
Dhfcpci.c679 int fcnt; in hfcpci_fill_dfifo() local
698 fcnt = df->f1 - df->f2; /* frame count actually buffered */ in hfcpci_fill_dfifo()
699 if (fcnt < 0) in hfcpci_fill_dfifo()
700 fcnt += (MAX_D_FRAMES + 1); /* if wrap around */ in hfcpci_fill_dfifo()
701 if (fcnt > (MAX_D_FRAMES - 1)) { in hfcpci_fill_dfifo()
756 int maxlen, fcnt; in hfcpci_fill_fifo() local
788 fcnt = le16_to_cpu(*z2t) - le16_to_cpu(*z1t); in hfcpci_fill_fifo()
789 if (fcnt <= 0) in hfcpci_fill_fifo()
790 fcnt += B_FIFO_SIZE; in hfcpci_fill_fifo()
793 if (count > fcnt) in hfcpci_fill_fifo()
[all …]
/Linux-v4.19/arch/mips/include/asm/octeon/
Dcvmx-npi-defs.h575 uint64_t fcnt:7; member
579 uint64_t fcnt:7;
619 uint64_t fcnt:7; member
623 uint64_t fcnt:7;
2123 uint64_t fcnt:6; member
2127 uint64_t fcnt:6;
2145 uint64_t fcnt:5; member
2149 uint64_t fcnt:5;
Dcvmx-dpi-defs.h152 uint64_t fcnt:7; member
156 uint64_t fcnt:7;
Dcvmx-npei-defs.h969 uint64_t fcnt:7; member
973 uint64_t fcnt:7;
3446 uint64_t fcnt:5; member
3450 uint64_t fcnt:5;
/Linux-v4.19/drivers/dma/
Dowl-dma.c140 u32 fcnt:12; member
376 hw->fcnt = 1; /* Frame count fixed as 1 */ in owl_dma_cfg_lli()
/Linux-v4.19/drivers/mmc/host/
Ddw_mmc.c2519 unsigned int remain, fcnt; in dw_mci_read_data_pio() local
2531 fcnt = (SDMMC_GET_FCNT(mci_readl(host, STATUS)) in dw_mci_read_data_pio()
2533 len = min(remain, fcnt); in dw_mci_read_data_pio()
2574 unsigned int remain, fcnt; in dw_mci_write_data_pio() local
2586 fcnt = ((fifo_depth - in dw_mci_write_data_pio()
2589 len = min(remain, fcnt); in dw_mci_write_data_pio()
/Linux-v4.19/drivers/scsi/
Desp_scsi.c219 int fcnt = esp_read8(ESP_FFLAGS) & ESP_FF_FBYTES; in hme_read_fifo() local
222 while (fcnt--) { in hme_read_fifo()
1296 int fcnt = esp_read8(ESP_FFLAGS) & ESP_FF_FBYTES; in esp_finish_select() local
1300 if (!fcnt && in esp_finish_select()
/Linux-v4.19/drivers/net/ethernet/intel/i40e/
Di40e_main.c2097 int aq_err, fcnt; in i40e_aqc_add_filters() local
2101 fcnt = i40e_update_filter_state(num_add, list, add_head); in i40e_aqc_add_filters()
2103 if (fcnt != num_add) { in i40e_aqc_add_filters()