Lines Matching refs:cb
1745 struct cmdbuf_t *cb = cs->cmdbuf; in complete_cb() local
1751 if (cb->next != NULL) { in complete_cb()
1752 cs->cmdbuf = cb->next; in complete_cb()
1761 if (cb->wake_tasklet) in complete_cb()
1762 tasklet_schedule(cb->wake_tasklet); in complete_cb()
1764 kfree(cb); in complete_cb()
1912 struct cmdbuf_t *cb; in start_cbsend() local
1941 while ((cb = cs->cmdbuf) != NULL && (ucs->basstate & BS_ATREADY)) { in start_cbsend()
1943 rc = atwrite_submit(cs, cb->buf, cb->len); in start_cbsend()
1968 static int gigaset_write_cmd(struct cardstate *cs, struct cmdbuf_t *cb) in gigaset_write_cmd() argument
1975 "CMD Transmit", cb->len, cb->buf); in gigaset_write_cmd()
1981 if (cb->len == 3 && !memcmp(cb->buf, "+++", 3)) { in gigaset_write_cmd()
2005 if (cb->wake_tasklet) in gigaset_write_cmd()
2006 tasklet_schedule(cb->wake_tasklet); in gigaset_write_cmd()
2008 rc = cb->len; in gigaset_write_cmd()
2009 kfree(cb); in gigaset_write_cmd()
2014 cb->prev = cs->lastcmdbuf; in gigaset_write_cmd()
2016 cs->lastcmdbuf->next = cb; in gigaset_write_cmd()
2018 cs->cmdbuf = cb; in gigaset_write_cmd()
2019 cs->curlen = cb->len; in gigaset_write_cmd()
2021 cs->cmdbytes += cb->len; in gigaset_write_cmd()
2022 cs->lastcmdbuf = cb; in gigaset_write_cmd()
2038 return rc < 0 ? rc : cb->len; in gigaset_write_cmd()