Lines Matching refs:inbuf
511 kfree(cs->inbuf); in gigaset_freecs()
549 static void gigaset_inbuf_init(struct inbuf_t *inbuf, struct cardstate *cs) in gigaset_inbuf_init() argument
552 inbuf->head = 0; in gigaset_inbuf_init()
553 inbuf->tail = 0; in gigaset_inbuf_init()
554 inbuf->cs = cs; in gigaset_inbuf_init()
555 inbuf->inputstate = INS_command; in gigaset_inbuf_init()
566 int gigaset_fill_inbuf(struct inbuf_t *inbuf, const unsigned char *src, in gigaset_fill_inbuf() argument
577 tail = inbuf->tail; in gigaset_fill_inbuf()
578 head = inbuf->head; in gigaset_fill_inbuf()
589 dev_err(inbuf->cs->dev, in gigaset_fill_inbuf()
596 memcpy(inbuf->data + tail, src, n); in gigaset_fill_inbuf()
602 inbuf->tail = tail; in gigaset_fill_inbuf()
714 cs->inbuf = kmalloc(sizeof(struct inbuf_t), GFP_KERNEL); in gigaset_initcs()
715 if (!cs->bcs || !cs->inbuf) { in gigaset_initcs()
728 gigaset_inbuf_init(cs->inbuf, cs); in gigaset_initcs()
834 cs->inbuf->inputstate = INS_command; in cleanup_cs()
835 cs->inbuf->head = 0; in cleanup_cs()
836 cs->inbuf->tail = 0; in cleanup_cs()