Lines Matching refs:inbuf
478 if (!cs->inbuf)
520 gig_dbg(DEBUG_INIT, "freeing inbuf");
521 kfree(cs->inbuf);
560 static void gigaset_inbuf_init(struct inbuf_t *inbuf, struct cardstate *cs)
561 /* inbuf->read must be allocated before! */
563 inbuf->head = 0;
564 inbuf->tail = 0;
565 inbuf->cs = cs;
566 inbuf->inputstate = INS_command;
571 * @inbuf: buffer structure.
575 int gigaset_fill_inbuf(struct inbuf_t *inbuf, const unsigned char *src,
586 tail = inbuf->tail;
587 head = inbuf->head;
598 dev_err(inbuf->cs->dev,
605 memcpy(inbuf->data + tail, src, n);
611 inbuf->tail = tail;
703 gig_dbg(DEBUG_INIT, "allocating inbuf");
704 cs->inbuf = kmalloc(sizeof(struct inbuf_t), GFP_KERNEL);
705 if (!cs->inbuf) {
747 gig_dbg(DEBUG_INIT, "setting up inbuf");
748 gigaset_inbuf_init(cs->inbuf, cs);
855 cs->inbuf->inputstate = INS_command;
856 cs->inbuf->head = 0;
857 cs->inbuf->tail = 0;