Home
last modified time | relevance | path

Searched refs:total_cnt (Results 1 – 15 of 15) sorted by relevance

/linux/drivers/infiniband/hw/irdma/
H A Dpble.c355 lf4k = palloc->total_cnt >> 9; in get_lvl2_pble()
356 lflast = palloc->total_cnt % PBLE_PER_PAGE; in get_lvl2_pble()
417 palloc->total_cnt << 3, &lvl1->addr, in get_lvl1_pble()
424 lvl1->cnt = palloc->total_cnt; in get_lvl1_pble()
442 if (!status || lvl == PBLE_LEVEL_1 || palloc->total_cnt <= PBLE_PER_PAGE) in get_lvl1_lvl2_pble()
465 palloc->total_cnt = pble_cnt; in irdma_get_pble()
477 max_sds = (palloc->total_cnt >> 18) + 1; in irdma_get_pble()
516 pble_rsrc->freedpbles += palloc->total_cnt; in irdma_free_pble()
H A Dpble.h47 u32 total_cnt; member
H A Dverbs.c2798 if (++pbl_cnt == palloc->total_cnt) in irdma_copy_user_pgaddrs()
2840 ret = irdma_check_mem_contiguous(arr, palloc->total_cnt, in irdma_check_mr_contiguous()
/linux/tools/testing/selftests/ftrace/test.d/ftrace/
H A Dfgraph-multi-filter.tc93 total_cnt=`function_count`
121 check_functions $total_cnt
158 check_functions $total_cnt
/linux/tools/testing/selftests/
H A Dkselftest_deps.sh84 total_cnt=0
264 let total_cnt+=1
299 echo -e "$total_cnt Pass: $pass_cnt Fail: $fail_cnt";
/linux/fs/exfat/
H A Dfatent.c353 unsigned int total_cnt; in exfat_alloc_cluster() local
358 total_cnt = EXFAT_DATA_CLUSTER_COUNT(sbi); in exfat_alloc_cluster()
360 if (unlikely(total_cnt < sbi->used_clusters)) { in exfat_alloc_cluster()
363 __func__, total_cnt, sbi->used_clusters); in exfat_alloc_cluster()
367 if (num_alloc > total_cnt - sbi->used_clusters) in exfat_alloc_cluster()
/linux/drivers/net/ethernet/spacemit/
H A Dk1_emac.c95 u32 total_cnt; member
294 avail = tx_ring->total_cnt - tx_ring->head + tx_ring->tail - 1; in emac_tx_avail()
363 for (i = 0; i < tx_ring->total_cnt; i++) in emac_clean_tx_desc_ring()
378 for (i = 0; i < rx_ring->total_cnt; i++) { in emac_clean_rx_desc_ring()
400 tx_ring->tx_desc_buf = kcalloc(tx_ring->total_cnt, in emac_alloc_tx_resources()
407 tx_ring->total_size = tx_ring->total_cnt * sizeof(struct emac_desc); in emac_alloc_tx_resources()
429 rx_ring->rx_desc_buf = kcalloc(rx_ring->total_cnt, in emac_alloc_rx_resources()
435 rx_ring->total_size = rx_ring->total_cnt * sizeof(struct emac_desc); in emac_alloc_rx_resources()
506 if (++i == tx_ring->total_cnt) in emac_tx_clean_desc()
513 emac_tx_avail(priv) > tx_ring->total_cnt / 4)) in emac_tx_clean_desc()
[all …]
/linux/drivers/i2c/busses/
H A Di2c-hisi.c393 u32 total_cnt, t_scl_hcnt, t_scl_lcnt, scl_fall_cnt, scl_rise_cnt; in hisi_i2c_set_scl() local
397 total_cnt = DIV_ROUND_UP_ULL(ctlr->clk_rate_khz * HZ_PER_KHZ, ctlr->t.bus_freq_hz); in hisi_i2c_set_scl()
399 t_scl_hcnt = DIV_ROUND_UP_ULL(total_cnt * divide, divisor); in hisi_i2c_set_scl()
401 t_scl_lcnt = total_cnt - t_scl_hcnt; in hisi_i2c_set_scl()
/linux/drivers/media/dvb-frontends/
H A Dlgs8gxx.c925 u32 total_cnt = 0, err_cnt = 0; in lgs8gxx_read_ber() local
941 total_cnt <<= 8; in lgs8gxx_read_ber()
943 total_cnt |= t; in lgs8gxx_read_ber()
950 dprintk("error=%d total=%d\n", err_cnt, total_cnt); in lgs8gxx_read_ber()
952 if (total_cnt == 0) in lgs8gxx_read_ber()
955 *ber = err_cnt * 100 / total_cnt; in lgs8gxx_read_ber()
/linux/drivers/net/wwan/t7xx/
H A Dt7xx_hif_dpmaif.h199 unsigned int t7xx_ring_buf_rd_wr_count(unsigned int total_cnt, unsigned int rd_idx,
H A Dt7xx_hif_dpmaif.c42 unsigned int t7xx_ring_buf_rd_wr_count(unsigned int total_cnt, unsigned int rd_idx, in t7xx_ring_buf_rd_wr_count() argument
53 pkt_cnt += total_cnt; in t7xx_ring_buf_rd_wr_count()
/linux/sound/soc/mediatek/mt8365/
H A Dmt8365-afe-pcm.c355 unsigned int total_cnt, div_cnt, ch_pair, best_cnt; in mt8365_afe_get_cm_update_cnt() local
368 total_cnt = MT8365_CLK_26M / rate; in mt8365_afe_get_cm_update_cnt()
371 total_cnt = MT8365_CLK_24M / rate; in mt8365_afe_get_cm_update_cnt()
373 total_cnt = MT8365_CLK_22M / rate; in mt8365_afe_get_cm_update_cnt()
383 div_cnt = total_cnt / ch_pair; in mt8365_afe_get_cm_update_cnt()
/linux/drivers/scsi/lpfc/
H A Dlpfc_sli.c7594 int status = 0, total_cnt; in lpfc_sli4_repost_sgl_list() local
7609 total_cnt = cnt; in lpfc_sli4_repost_sgl_list()
7639 if (num_posted == total_cnt) { in lpfc_sli4_repost_sgl_list()
7661 total_cnt--; in lpfc_sli4_repost_sgl_list()
7689 total_cnt -= post_cnt; in lpfc_sli4_repost_sgl_list()
7714 status, block_cnt, total_cnt, post_cnt); in lpfc_sli4_repost_sgl_list()
7719 return total_cnt; in lpfc_sli4_repost_sgl_list()
/linux/drivers/infiniband/hw/hfi1/
H A Dchip.c14427 u32 total_cnt; in init_fecn_handling() local
14435 total_cnt = dd->num_rcv_contexts - start; in init_fecn_handling()
14438 if (rmt->used + total_cnt >= NUM_MAP_ENTRIES) { in init_fecn_handling()
14491 rmt->used += total_cnt; in init_fecn_handling()
/linux/kernel/bpf/
H A Dverifier.c23533 u32 *total_cnt) in inline_bpf_loop() argument
23590 *total_cnt = cnt; in inline_bpf_loop()