Lines Matching defs:cal_depth
354 * @param cal_depth the number of calendar entries
359 static int cvmx_ilk_rx_cal_conf (int interface, int cal_depth,
375 if (cal_depth < CVMX_ILK_RX_MIN_CAL || cal_depth > CVMX_ILK_MAX_CAL
383 for (i = 0; i < cal_depth; i++)
389 ilk_rxx_cfg0.s.cal_depth = cal_depth;
393 num_grp = cal_depth / CVMX_ILK_CAL_GRP_SZ;
394 num_rest = cal_depth % CVMX_ILK_CAL_GRP_SZ;
554 * @param cal_depth the number of calendar entries
561 int cvmx_ilk_cal_setup_rx (int interface, int cal_depth,
573 res = cvmx_ilk_rx_cal_conf (interface, cal_depth, pent);
595 * @param cal_depth the number of calendar entries
600 static int cvmx_ilk_tx_cal_conf (int interface, int cal_depth,
617 if (cal_depth < CVMX_ILK_TX_MIN_CAL || cal_depth > CVMX_ILK_MAX_CAL
625 for (i = 0; i < cal_depth; i++)
630 num_grp = (cal_depth - 1) / CVMX_ILK_CAL_GRP_SZ + 1;
631 num_rest = cal_depth % CVMX_ILK_CAL_GRP_SZ;
634 ent_tmp = pent + cal_depth;
641 cal_depth = num_grp * 8;
645 ilk_txx_cfg0.s.cal_depth = cal_depth;
703 * @param cal_depth the number of calendar entries
708 static int cvmx_ilk_bp_conf (int interface, int cal_depth, cvmx_ilk_cal_entry_t *pent)
722 for (i = 0, tmp = pent; i < cal_depth; i++, tmp++)
776 * @param cal_depth the number of calendar entries
782 int cvmx_ilk_cal_setup_tx (int interface, int cal_depth,
793 res = cvmx_ilk_tx_cal_conf (interface, cal_depth, pent);
798 res = cvmx_ilk_bp_conf (interface, cal_depth, pent);