Lines Matching refs:st_ram_io
359 struct st_ram_io st_loc; in ac_write()
366 if (count != sizeof(struct st_ram_io) + sizeof(struct mailbox)) { in ac_write()
370 count, sizeof(struct st_ram_io) + sizeof(struct mailbox)); in ac_write()
376 if(copy_from_user(&st_loc, buf, sizeof(struct st_ram_io))) in ac_write()
379 if(copy_from_user(&tmpmailbox, &buf[sizeof(struct st_ram_io)], in ac_write()
394 for (c = 0; c < sizeof(struct st_ram_io);) { in ac_write()
398 for (c++; c % 8 && c < sizeof(struct st_ram_io); c++) { in ac_write()
478 struct st_ram_io *st_loc, struct mailbox *mailbox) in do_ac_read()
509 for (c = 0; c < sizeof(struct st_ram_io);) { in do_ac_read()
512 for (c++; c % 8 && c < sizeof(struct st_ram_io); c++) { in do_ac_read()
528 return (sizeof(struct st_ram_io) + sizeof(struct mailbox)); in do_ac_read()
542 if (count != sizeof(struct st_ram_io) + sizeof(struct mailbox)) { in ac_read()
544 count,sizeof(struct st_ram_io) + sizeof(struct mailbox)); in ac_read()
562 struct st_ram_io st_loc; in ac_read()
695 struct st_ram_io *adgl; in ac_ioctl()
700 adgl = kmalloc(sizeof(struct st_ram_io), GFP_KERNEL); in ac_ioctl()
704 if (copy_from_user(adgl, (void *)arg,sizeof(struct st_ram_io))) { in ac_ioctl()
726 for (i = 0; i < sizeof(struct st_ram_io); i++) in ac_ioctl()
728 if (copy_to_user((void *)arg, adgl, sizeof(struct st_ram_io))) in ac_ioctl()
749 if (copy_to_user((void *)arg, adgl, sizeof(struct st_ram_io))) in ac_ioctl()
775 if (copy_to_user((void *)arg, adgl,sizeof(struct st_ram_io))) in ac_ioctl()