Lines Matching refs:circ
64 struct circ_buf circ; member
205 return CIRC_SPACE(drvdata->circ.head, in circ_buf_space()
206 drvdata->circ.tail, CCTRNG_DATA_BUF_WORDS); in circ_buf_space()
216 u32 *buf = (u32 *)drvdata->circ.buf; in cctrng_read()
229 cnt_w = CIRC_CNT_TO_END(drvdata->circ.head, in cctrng_read()
230 drvdata->circ.tail, CCTRNG_DATA_BUF_WORDS); in cctrng_read()
232 memcpy(data, &(buf[drvdata->circ.tail]), size); in cctrng_read()
234 circ_idx_inc(&drvdata->circ.tail, size); in cctrng_read()
238 cnt_w = CIRC_CNT(drvdata->circ.head, in cctrng_read()
239 drvdata->circ.tail, CCTRNG_DATA_BUF_WORDS); in cctrng_read()
241 memcpy(data, &(buf[drvdata->circ.tail]), size); in cctrng_read()
243 circ_idx_inc(&drvdata->circ.tail, size); in cctrng_read()
358 u32 *buf = (u32 *)drvdata->circ.buf; in cc_trng_compwork_handler()
360 buf[drvdata->circ.head] = cc_ioread(drvdata, in cc_trng_compwork_handler()
366 if (buf[drvdata->circ.head] == 0) { in cc_trng_compwork_handler()
372 circ_idx_inc(&drvdata->circ.head, 1<<2); in cc_trng_compwork_handler()
510 drvdata->circ.buf = (char *)drvdata->data_buf; in cctrng_probe()