Lines Matching refs:cbuf
127 eicon_isa_codebuf cbuf; in eicon_isa_bootload() local
131 if (copy_from_user(&cbuf, cb, sizeof(eicon_isa_codebuf))) in eicon_isa_bootload()
135 if (cbuf.bootstrap_len > 1024) { in eicon_isa_bootload()
137 cbuf.bootstrap_len); in eicon_isa_bootload()
140 if (!(code = kmalloc(cbuf.bootstrap_len, GFP_KERNEL))) { in eicon_isa_bootload()
144 if (copy_from_user(code, &cb->code, cbuf.bootstrap_len)) { in eicon_isa_bootload()
217 memcpy_toio(&card->shmem->c, code, cbuf.bootstrap_len); in eicon_isa_bootload()
237 writeb(cbuf.boot_opt, &boot->ctrl); in eicon_isa_bootload()
305 eicon_isa_codebuf cbuf; in eicon_isa_load() local
309 if (copy_from_user(&cbuf, cb, sizeof(eicon_isa_codebuf))) in eicon_isa_load()
312 if (!(code = kmalloc(cbuf.firmware_len, GFP_KERNEL))) { in eicon_isa_load()
317 if (copy_from_user(code, &cb->code, cbuf.firmware_len)) { in eicon_isa_load()
360 tmp = cbuf.firmware_len >> 8; in eicon_isa_load()
382 memcpy_toio(&card->shmem->c[8], &cbuf.tei, 14); in eicon_isa_load()
383 memcpy_toio(&card->shmem->c[32], &cbuf.oad, 96); in eicon_isa_load()
384 memcpy_toio(&card->shmem->c[128], &cbuf.oad, 96); in eicon_isa_load()