Lines Matching refs:cb
765 struct cmdbuf_t *cb; in send_command() local
769 cb = kmalloc(sizeof(struct cmdbuf_t) + buflen, GFP_ATOMIC); in send_command()
770 if (!cb) { in send_command()
775 cb->len = snprintf(cb->buf, buflen, in send_command()
779 cb->len = snprintf(cb->buf, buflen, in send_command()
782 cb->offset = 0; in send_command()
783 cb->next = NULL; in send_command()
784 cb->wake_tasklet = NULL; in send_command()
785 cs->ops->write_cmd(cs, cb); in send_command()
1187 struct cmdbuf_t *cb; in do_action() local
1189 cb = kmalloc(sizeof(struct cmdbuf_t) + 3, GFP_ATOMIC); in do_action()
1190 if (!cb) { in do_action()
1195 memcpy(cb->buf, "+++", 3); in do_action()
1196 cb->len = 3; in do_action()
1197 cb->offset = 0; in do_action()
1198 cb->next = NULL; in do_action()
1199 cb->wake_tasklet = NULL; in do_action()
1200 cs->ops->write_cmd(cs, cb); in do_action()