Lines Matching refs:load
503 struct genwqe_bitstream *load) in do_flash_update() argument
518 if ((load->size & 0x3) != 0) in do_flash_update()
521 if (((unsigned long)(load->data_addr) & ~PAGE_MASK) != 0) in do_flash_update()
525 switch ((char)load->partition) { in do_flash_update()
539 buf = (u8 __user *)load->data_addr; in do_flash_update()
544 blocks_to_flash = load->size / FLASH_BLOCK; in do_flash_update()
545 while (load->size) { in do_flash_update()
552 tocopy = min_t(size_t, load->size, FLASH_BLOCK); in do_flash_update()
582 req->__asiv[24] = load->uid; in do_flash_update()
586 *(__be64 *)&req->__asiv[88] = cpu_to_be64(load->slu_id); in do_flash_update()
587 *(__be64 *)&req->__asiv[96] = cpu_to_be64(load->app_id); in do_flash_update()
594 *(__be32 *)&req->asiv[24] = cpu_to_be32(load->uid<<24); in do_flash_update()
598 *(__be64 *)&req->asiv[80] = cpu_to_be64(load->slu_id); in do_flash_update()
599 *(__be64 *)&req->asiv[88] = cpu_to_be64(load->app_id); in do_flash_update()
612 load->retc = req->retc; in do_flash_update()
613 load->attn = req->attn; in do_flash_update()
614 load->progress = req->progress; in do_flash_update()
627 load->size -= tocopy; in do_flash_update()
640 struct genwqe_bitstream *load) in do_flash_read() argument
654 if ((load->size & 0x3) != 0) in do_flash_read()
657 if (((unsigned long)(load->data_addr) & ~PAGE_MASK) != 0) in do_flash_read()
661 switch ((char)load->partition) { in do_flash_read()
675 buf = (u8 __user *)load->data_addr; in do_flash_read()
680 blocks_to_flash = load->size / FLASH_BLOCK; in do_flash_read()
681 while (load->size) { in do_flash_read()
686 tocopy = min_t(size_t, load->size, FLASH_BLOCK); in do_flash_read()
708 cmd->__asiv[24] = load->uid; in do_flash_read()
716 *(__be32 *)&cmd->asiv[24] = cpu_to_be32(load->uid<<24); in do_flash_read()
730 load->retc = cmd->retc; in do_flash_read()
731 load->attn = cmd->attn; in do_flash_read()
732 load->progress = cmd->progress; in do_flash_read()
756 load->size -= tocopy; in do_flash_read()
1151 struct genwqe_bitstream load; in genwqe_ioctl() local
1159 if (copy_from_user(&load, (void __user *)arg, in genwqe_ioctl()
1160 sizeof(load))) in genwqe_ioctl()
1163 rc = do_flash_update(cfile, &load); in genwqe_ioctl()
1165 if (copy_to_user((void __user *)arg, &load, sizeof(load))) in genwqe_ioctl()
1172 struct genwqe_bitstream load; in genwqe_ioctl() local
1180 if (copy_from_user(&load, (void __user *)arg, sizeof(load))) in genwqe_ioctl()
1183 rc = do_flash_read(cfile, &load); in genwqe_ioctl()
1185 if (copy_to_user((void __user *)arg, &load, sizeof(load))) in genwqe_ioctl()