Lines Matching refs:circ
64 struct circ_buf circ; member
204 return CIRC_SPACE(drvdata->circ.head, in circ_buf_space()
205 drvdata->circ.tail, CCTRNG_DATA_BUF_WORDS); in circ_buf_space()
215 u32 *buf = (u32 *)drvdata->circ.buf; in cctrng_read()
228 cnt_w = CIRC_CNT_TO_END(drvdata->circ.head, in cctrng_read()
229 drvdata->circ.tail, CCTRNG_DATA_BUF_WORDS); in cctrng_read()
231 memcpy(data, &(buf[drvdata->circ.tail]), size); in cctrng_read()
233 circ_idx_inc(&drvdata->circ.tail, size); in cctrng_read()
237 cnt_w = CIRC_CNT(drvdata->circ.head, in cctrng_read()
238 drvdata->circ.tail, CCTRNG_DATA_BUF_WORDS); in cctrng_read()
240 memcpy(data, &(buf[drvdata->circ.tail]), size); in cctrng_read()
242 circ_idx_inc(&drvdata->circ.tail, size); in cctrng_read()
357 u32 *buf = (u32 *)drvdata->circ.buf; in cc_trng_compwork_handler()
359 buf[drvdata->circ.head] = cc_ioread(drvdata, in cc_trng_compwork_handler()
365 if (buf[drvdata->circ.head] == 0) { in cc_trng_compwork_handler()
371 circ_idx_inc(&drvdata->circ.head, 1<<2); in cc_trng_compwork_handler()
484 drvdata->circ.buf = (char *)drvdata->data_buf; in cctrng_probe()