Lines Matching defs:threshold
121 dev_dbg(mcbsp->dev, "TX Buffer threshold Reached\n");
237 * omap_mcbsp_set_rx_threshold configures the transmit threshold in words.
238 * The threshold parameter is 1 based, and it is converted (threshold - 1)
241 static void omap_mcbsp_set_tx_threshold(struct omap_mcbsp *mcbsp, u16 threshold)
243 if (threshold && threshold <= mcbsp->max_tx_thres)
244 MCBSP_WRITE(mcbsp, THRSH2, threshold - 1);
248 * omap_mcbsp_set_rx_threshold configures the receive threshold in words.
249 * The threshold parameter is 1 based, and it is converted (threshold - 1)
252 static void omap_mcbsp_set_rx_threshold(struct omap_mcbsp *mcbsp, u16 threshold)
254 if (threshold && threshold <= mcbsp->max_rx_thres)
255 MCBSP_WRITE(mcbsp, THRSH1, threshold - 1);
274 * to reach the threshold value (when the DMA will be triggered to read it)
278 u16 buffstat, threshold;
282 /* RX threshold */
283 threshold = MCBSP_READ(mcbsp, THRSH1);
285 /* Return the number of location till we reach the threshold limit */
286 if (threshold <= buffstat)
289 return threshold - buffstat;
551 "element", "threshold",
746 * Configure McBSP threshold based on either:
748 * period size in THRESHOLD mode, otherwise use McBSP threshold = 1
964 * Use sDMA packet mode if McBSP is in threshold mode:
967 * Look for the biggest threshold value which divides