fsi 470 arch/s390/kvm/gaccess.c unsigned long fsi : 2; /* Access Exception Fetch/Store Indication */ fsi 535 arch/s390/kvm/gaccess.c tec->fsi = mode == GACC_STORE ? FSI_STORE : FSI_FETCH; fsi 149 drivers/i2c/busses/i2c-fsi.c struct fsi_device *fsi; fsi 163 drivers/i2c/busses/i2c-fsi.c static int fsi_i2c_read_reg(struct fsi_device *fsi, unsigned int reg, fsi 169 drivers/i2c/busses/i2c-fsi.c rc = fsi_device_read(fsi, reg, &data_be, sizeof(data_be)); fsi 178 drivers/i2c/busses/i2c-fsi.c static int fsi_i2c_write_reg(struct fsi_device *fsi, unsigned int reg, fsi 183 drivers/i2c/busses/i2c-fsi.c return fsi_device_write(fsi, reg, &data_be, sizeof(data_be)); fsi 193 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_INT_MASK, &interrupt); fsi 198 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); fsi 202 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_ESTAT, &extended_status); fsi 211 drivers/i2c/busses/i2c-fsi.c return fsi_i2c_write_reg(i2c->fsi, I2C_FSI_WATER_MARK, &watermark); fsi 217 drivers/i2c/busses/i2c-fsi.c struct fsi_device *fsi = port->master->fsi; fsi 220 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(fsi, I2C_FSI_MODE, &mode); fsi 228 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(fsi, I2C_FSI_MODE, &mode); fsi 233 drivers/i2c/busses/i2c-fsi.c return fsi_i2c_write_reg(fsi, I2C_FSI_RESET_ERR, &dummy); fsi 253 drivers/i2c/busses/i2c-fsi.c return fsi_i2c_write_reg(i2c->fsi, I2C_FSI_CMD, &cmd); fsi 280 drivers/i2c/busses/i2c-fsi.c rc = fsi_device_write(i2c->fsi, I2C_FSI_FIFO, fsi 308 drivers/i2c/busses/i2c-fsi.c rc = fsi_device_read(i2c->fsi, I2C_FSI_FIFO, fsi 317 drivers/i2c/busses/i2c-fsi.c rc = fsi_device_read(i2c->fsi, I2C_FSI_FIFO, &dummy, fsi 335 drivers/i2c/busses/i2c-fsi.c fsi_i2c_read_reg(i2c->fsi, I2C_FSI_STAT, &stat); fsi 347 drivers/i2c/busses/i2c-fsi.c fsi_i2c_write_reg(i2c->fsi, I2C_FSI_SET_SCL, &dummy); fsi 349 drivers/i2c/busses/i2c-fsi.c fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_SCL, &dummy); fsi 358 drivers/i2c/busses/i2c-fsi.c fsi_i2c_read_reg(i2c->fsi, I2C_FSI_STAT, &stat); fsi 370 drivers/i2c/busses/i2c-fsi.c fsi_i2c_write_reg(i2c->fsi, I2C_FSI_SET_SDA, &dummy); fsi 372 drivers/i2c/busses/i2c-fsi.c fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_SDA, &dummy); fsi 382 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_MODE, &mode); fsi 387 drivers/i2c/busses/i2c-fsi.c fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); fsi 397 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_MODE, &mode); fsi 402 drivers/i2c/busses/i2c-fsi.c fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); fsi 415 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_ERR, &dummy); fsi 422 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_STAT, &stat); fsi 430 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_I2C, &dummy); fsi 444 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_RESET_I2C, &dummy); fsi 453 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_MODE, &mode); fsi 461 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_MODE, &mode); fsi 468 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(i2c->fsi, I2C_FSI_PORT_BUSY, &dummy); fsi 482 drivers/i2c/busses/i2c-fsi.c struct fsi_device *fsi = i2c->fsi; fsi 488 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(fsi, I2C_FSI_STAT, &stat); fsi 504 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_write_reg(fsi, I2C_FSI_CMD, &cmd); fsi 512 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(fsi, I2C_FSI_STAT, &status); fsi 582 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(port->master->fsi, I2C_FSI_STAT, fsi 661 drivers/i2c/busses/i2c-fsi.c static struct device_node *fsi_i2c_find_port_of_node(struct device_node *fsi, fsi 668 drivers/i2c/busses/i2c-fsi.c for_each_child_of_node(fsi, np) { fsi 690 drivers/i2c/busses/i2c-fsi.c i2c->fsi = to_fsi_dev(dev); fsi 697 drivers/i2c/busses/i2c-fsi.c rc = fsi_i2c_read_reg(i2c->fsi, I2C_FSI_STAT, &stat); fsi 746 drivers/tty/pty.c struct pts_fs_info *fsi; fsi 749 drivers/tty/pty.c fsi = tty->driver_data; fsi 751 drivers/tty/pty.c fsi = tty->link->driver_data; fsi 753 drivers/tty/pty.c if (fsi) { fsi 754 drivers/tty/pty.c devpts_kill_index(fsi, tty->index); fsi 755 drivers/tty/pty.c devpts_release(fsi); fsi 813 drivers/tty/pty.c struct pts_fs_info *fsi; fsi 828 drivers/tty/pty.c fsi = devpts_acquire(filp); fsi 829 drivers/tty/pty.c if (IS_ERR(fsi)) { fsi 830 drivers/tty/pty.c retval = PTR_ERR(fsi); fsi 836 drivers/tty/pty.c index = devpts_new_index(fsi); fsi 859 drivers/tty/pty.c tty->driver_data = fsi; fsi 863 drivers/tty/pty.c dentry = devpts_pty_new(fsi, index, tty->link); fsi 884 drivers/tty/pty.c devpts_kill_index(fsi, index); fsi 886 drivers/tty/pty.c devpts_release(fsi); fsi 150 fs/debugfs/inode.c struct debugfs_fs_info *fsi = sb->s_fs_info; fsi 152 fs/debugfs/inode.c struct debugfs_mount_opts *opts = &fsi->mount_opts; fsi 166 fs/debugfs/inode.c struct debugfs_fs_info *fsi = sb->s_fs_info; fsi 169 fs/debugfs/inode.c err = debugfs_parse_options(data, &fsi->mount_opts); fsi 181 fs/debugfs/inode.c struct debugfs_fs_info *fsi = root->d_sb->s_fs_info; fsi 182 fs/debugfs/inode.c struct debugfs_mount_opts *opts = &fsi->mount_opts; fsi 234 fs/debugfs/inode.c struct debugfs_fs_info *fsi; fsi 237 fs/debugfs/inode.c fsi = kzalloc(sizeof(struct debugfs_fs_info), GFP_KERNEL); fsi 238 fs/debugfs/inode.c sb->s_fs_info = fsi; fsi 239 fs/debugfs/inode.c if (!fsi) { fsi 244 fs/debugfs/inode.c err = debugfs_parse_options(data, &fsi->mount_opts); fsi 260 fs/debugfs/inode.c kfree(fsi); fsi 168 fs/devpts/inode.c struct vfsmount *devpts_mntget(struct file *filp, struct pts_fs_info *fsi) fsi 185 fs/devpts/inode.c (DEVPTS_SB(path.mnt->mnt_sb) != fsi)) fsi 189 fs/devpts/inode.c if (DEVPTS_SB(path.mnt->mnt_sb) == fsi) fsi 231 fs/devpts/inode.c void devpts_release(struct pts_fs_info *fsi) fsi 233 fs/devpts/inode.c deactivate_super(fsi->sb); fsi 329 fs/devpts/inode.c struct pts_fs_info *fsi = DEVPTS_SB(sb); fsi 330 fs/devpts/inode.c struct pts_mount_opts *opts = &fsi->mount_opts; fsi 337 fs/devpts/inode.c if (fsi->ptmx_dentry) { fsi 368 fs/devpts/inode.c fsi->ptmx_dentry = dentry; fsi 375 fs/devpts/inode.c static void update_ptmx_mode(struct pts_fs_info *fsi) fsi 378 fs/devpts/inode.c if (fsi->ptmx_dentry) { fsi 379 fs/devpts/inode.c inode = d_inode(fsi->ptmx_dentry); fsi 380 fs/devpts/inode.c inode->i_mode = S_IFCHR|fsi->mount_opts.ptmxmode; fsi 387 fs/devpts/inode.c struct pts_fs_info *fsi = DEVPTS_SB(sb); fsi 388 fs/devpts/inode.c struct pts_mount_opts *opts = &fsi->mount_opts; fsi 398 fs/devpts/inode.c update_ptmx_mode(fsi); fsi 405 fs/devpts/inode.c struct pts_fs_info *fsi = DEVPTS_SB(root->d_sb); fsi 406 fs/devpts/inode.c struct pts_mount_opts *opts = &fsi->mount_opts; fsi 430 fs/devpts/inode.c struct pts_fs_info *fsi; fsi 432 fs/devpts/inode.c fsi = kzalloc(sizeof(struct pts_fs_info), GFP_KERNEL); fsi 433 fs/devpts/inode.c if (!fsi) fsi 436 fs/devpts/inode.c ida_init(&fsi->allocated_ptys); fsi 437 fs/devpts/inode.c fsi->mount_opts.mode = DEVPTS_DEFAULT_MODE; fsi 438 fs/devpts/inode.c fsi->mount_opts.ptmxmode = DEVPTS_DEFAULT_PTMX_MODE; fsi 439 fs/devpts/inode.c fsi->sb = sb; fsi 441 fs/devpts/inode.c return fsi; fsi 510 fs/devpts/inode.c struct pts_fs_info *fsi = DEVPTS_SB(sb); fsi 512 fs/devpts/inode.c if (fsi) fsi 513 fs/devpts/inode.c ida_destroy(&fsi->allocated_ptys); fsi 514 fs/devpts/inode.c kfree(fsi); fsi 530 fs/devpts/inode.c int devpts_new_index(struct pts_fs_info *fsi) fsi 535 fs/devpts/inode.c (fsi->mount_opts.reserve ? 0 : pty_reserve))) fsi 538 fs/devpts/inode.c index = ida_alloc_max(&fsi->allocated_ptys, fsi->mount_opts.max - 1, fsi 547 fs/devpts/inode.c void devpts_kill_index(struct pts_fs_info *fsi, int idx) fsi 549 fs/devpts/inode.c ida_free(&fsi->allocated_ptys, idx); fsi 562 fs/devpts/inode.c struct dentry *devpts_pty_new(struct pts_fs_info *fsi, int index, void *priv) fsi 565 fs/devpts/inode.c struct super_block *sb = fsi->sb; fsi 572 fs/devpts/inode.c opts = &fsi->mount_opts; fsi 1337 fs/jfs/jfs_dtree.c int fsi, stblsize; fsi 1417 fs/jfs/jfs_dtree.c fsi = rp->header.stblindex + stblsize; fsi 1418 fs/jfs/jfs_dtree.c rp->header.freelist = fsi; fsi 1419 fs/jfs/jfs_dtree.c rp->header.freecnt = rp->header.maxslot - fsi; fsi 1444 fs/jfs/jfs_dtree.c f = &rp->slot[fsi]; fsi 1445 fs/jfs/jfs_dtree.c for (fsi++; fsi < rp->header.maxslot; f++, fsi++) fsi 1446 fs/jfs/jfs_dtree.c f->next = fsi; fsi 1560 fs/jfs/jfs_dtree.c fsi = rp->header.freelist; fsi 1561 fs/jfs/jfs_dtree.c f = &rp->slot[fsi]; fsi 1562 fs/jfs/jfs_dtree.c for (fsi++; fsi < rp->header.maxslot; f++, fsi++) fsi 1563 fs/jfs/jfs_dtree.c f->next = fsi; fsi 1642 fs/jfs/jfs_dtree.c int fsi, last; fsi 1771 fs/jfs/jfs_dtree.c fsi = oldstblindex; fsi 1772 fs/jfs/jfs_dtree.c f = &sp->slot[fsi]; fsi 1774 fs/jfs/jfs_dtree.c for (n = 0; n < oldstblsize; n++, fsi++, f++) { fsi 1776 fs/jfs/jfs_dtree.c last = fsi; fsi 1785 fs/jfs/jfs_dtree.c fsi = n = newstblindex + newstblsize; fsi 1786 fs/jfs/jfs_dtree.c f = &sp->slot[fsi]; fsi 1787 fs/jfs/jfs_dtree.c for (fsi++; fsi < sp->header.maxslot; f++, fsi++) fsi 1788 fs/jfs/jfs_dtree.c f->next = fsi; fsi 1792 fs/jfs/jfs_dtree.c fsi = sp->header.freelist; fsi 1793 fs/jfs/jfs_dtree.c if (fsi == -1) fsi 1797 fs/jfs/jfs_dtree.c f = &sp->slot[fsi]; fsi 1798 fs/jfs/jfs_dtree.c fsi = f->next; fsi 1799 fs/jfs/jfs_dtree.c } while (fsi != -1); fsi 1876 fs/jfs/jfs_dtree.c int fsi, stblsize, n; fsi 1957 fs/jfs/jfs_dtree.c fsi = n = DTROOTMAXSLOT + stblsize; fsi 1958 fs/jfs/jfs_dtree.c f = &rp->slot[fsi]; fsi 1959 fs/jfs/jfs_dtree.c for (fsi++; fsi < rp->header.maxslot; f++, fsi++) fsi 1960 fs/jfs/jfs_dtree.c f->next = fsi; fsi 1964 fs/jfs/jfs_dtree.c fsi = sp->header.freelist; fsi 1965 fs/jfs/jfs_dtree.c if (fsi == -1) fsi 1968 fs/jfs/jfs_dtree.c rp->header.freelist = fsi; fsi 1971 fs/jfs/jfs_dtree.c f = &rp->slot[fsi]; fsi 1972 fs/jfs/jfs_dtree.c fsi = f->next; fsi 1973 fs/jfs/jfs_dtree.c } while (fsi != -1); fsi 2044 fs/jfs/jfs_dtree.c fsi = DTENTRYSTART + 1; fsi 2045 fs/jfs/jfs_dtree.c f = &sp->slot[fsi]; fsi 2048 fs/jfs/jfs_dtree.c for (fsi++; fsi < DTROOTMAXSLOT; f++, fsi++) fsi 2049 fs/jfs/jfs_dtree.c f->next = fsi; fsi 2818 fs/jfs/jfs_dtree.c int fsi; fsi 2882 fs/jfs/jfs_dtree.c fsi = 1; fsi 2883 fs/jfs/jfs_dtree.c f = &p->slot[fsi]; fsi 2886 fs/jfs/jfs_dtree.c for (fsi++; fsi < DTROOTMAXSLOT; f++, fsi++) fsi 2887 fs/jfs/jfs_dtree.c f->next = fsi; fsi 3899 fs/jfs/jfs_dtree.c int hsi, fsi, klen, len, nextindex; fsi 3914 fs/jfs/jfs_dtree.c hsi = fsi = p->header.freelist; fsi 3915 fs/jfs/jfs_dtree.c h = &p->slot[fsi]; fsi 3962 fs/jfs/jfs_dtree.c fsi = p->header.freelist; fsi 3963 fs/jfs/jfs_dtree.c t = &p->slot[fsi]; fsi 3968 fs/jfs/jfs_dtree.c if (fsi != xsi + 1) { fsi 3981 fs/jfs/jfs_dtree.c lv->offset = fsi; fsi 3990 fs/jfs/jfs_dtree.c xsi = fsi; fsi 4254 fs/jfs/jfs_dtree.c int fsi; /* free entry slot index */ fsi 4264 fs/jfs/jfs_dtree.c fsi = stbl[fi]; fsi 4271 fs/jfs/jfs_dtree.c lv->offset = fsi; fsi 4274 fs/jfs/jfs_dtree.c t = &p->slot[fsi]; fsi 4283 fs/jfs/jfs_dtree.c xsi = fsi; fsi 4322 fs/jfs/jfs_dtree.c p->header.freelist = fsi; fsi 4355 fs/jfs/jfs_dtree.c int fsi, xsi, n; fsi 4377 fs/jfs/jfs_dtree.c fsi = si; fsi 4419 fs/jfs/jfs_dtree.c p->header.freelist = fsi; fsi 4431 fs/jfs/jfs_dtree.c int fsi; /* free entry slot index */ fsi 4439 fs/jfs/jfs_dtree.c fsi = p->header.freelist; fsi 4446 fs/jfs/jfs_dtree.c lv->offset = fsi; fsi 4449 fs/jfs/jfs_dtree.c xsi = fsi; fsi 4451 fs/jfs/jfs_dtree.c t = &p->slot[fsi]; fsi 167 fs/ramfs/inode.c struct ramfs_fs_info *fsi = root->d_sb->s_fs_info; fsi 169 fs/ramfs/inode.c if (fsi->mount_opts.mode != RAMFS_DEFAULT_MODE) fsi 170 fs/ramfs/inode.c seq_printf(m, ",mode=%o", fsi->mount_opts.mode); fsi 197 fs/ramfs/inode.c struct ramfs_fs_info *fsi = fc->s_fs_info; fsi 215 fs/ramfs/inode.c fsi->mount_opts.mode = result.uint_32 & S_IALLUGO; fsi 224 fs/ramfs/inode.c struct ramfs_fs_info *fsi = sb->s_fs_info; fsi 234 fs/ramfs/inode.c inode = ramfs_get_inode(sb, NULL, S_IFDIR | fsi->mount_opts.mode, 0); fsi 260 fs/ramfs/inode.c struct ramfs_fs_info *fsi; fsi 262 fs/ramfs/inode.c fsi = kzalloc(sizeof(*fsi), GFP_KERNEL); fsi 263 fs/ramfs/inode.c if (!fsi) fsi 266 fs/ramfs/inode.c fsi->mount_opts.mode = RAMFS_DEFAULT_MODE; fsi 267 fs/ramfs/inode.c fc->s_fs_info = fsi; fsi 212 fs/tracefs/inode.c struct tracefs_fs_info *fsi = sb->s_fs_info; fsi 214 fs/tracefs/inode.c struct tracefs_mount_opts *opts = &fsi->mount_opts; fsi 228 fs/tracefs/inode.c struct tracefs_fs_info *fsi = sb->s_fs_info; fsi 231 fs/tracefs/inode.c err = tracefs_parse_options(data, &fsi->mount_opts); fsi 243 fs/tracefs/inode.c struct tracefs_fs_info *fsi = root->d_sb->s_fs_info; fsi 244 fs/tracefs/inode.c struct tracefs_mount_opts *opts = &fsi->mount_opts; fsi 267 fs/tracefs/inode.c struct tracefs_fs_info *fsi; fsi 270 fs/tracefs/inode.c fsi = kzalloc(sizeof(struct tracefs_fs_info), GFP_KERNEL); fsi 271 fs/tracefs/inode.c sb->s_fs_info = fsi; fsi 272 fs/tracefs/inode.c if (!fsi) { fsi 277 fs/tracefs/inode.c err = tracefs_parse_options(data, &fsi->mount_opts); fsi 292 fs/tracefs/inode.c kfree(fsi); fsi 4 include/trace/events/fsi.h #define TRACE_SYSTEM fsi fsi 85 security/selinux/selinuxfs.c struct selinux_fs_info *fsi; fsi 87 security/selinux/selinuxfs.c fsi = kzalloc(sizeof(*fsi), GFP_KERNEL); fsi 88 security/selinux/selinuxfs.c if (!fsi) fsi 91 security/selinux/selinuxfs.c mutex_init(&fsi->mutex); fsi 92 security/selinux/selinuxfs.c fsi->last_ino = SEL_INO_NEXT - 1; fsi 93 security/selinux/selinuxfs.c fsi->state = &selinux_state; fsi 94 security/selinux/selinuxfs.c fsi->sb = sb; fsi 95 security/selinux/selinuxfs.c sb->s_fs_info = fsi; fsi 101 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = sb->s_fs_info; fsi 104 security/selinux/selinuxfs.c if (fsi) { fsi 105 security/selinux/selinuxfs.c for (i = 0; i < fsi->bool_num; i++) fsi 106 security/selinux/selinuxfs.c kfree(fsi->bool_pending_names[i]); fsi 107 security/selinux/selinuxfs.c kfree(fsi->bool_pending_names); fsi 108 security/selinux/selinuxfs.c kfree(fsi->bool_pending_values); fsi 124 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info; fsi 129 security/selinux/selinuxfs.c enforcing_enabled(fsi->state)); fsi 138 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 139 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 202 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info; fsi 203 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 222 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info; fsi 223 security/selinux/selinuxfs.c struct page *status = selinux_kernel_status_page(fsi->state); fsi 279 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 301 security/selinux/selinuxfs.c enforcing = enforcing_enabled(fsi->state); fsi 302 security/selinux/selinuxfs.c length = selinux_disable(fsi->state); fsi 343 security/selinux/selinuxfs.c static int sel_make_bools(struct selinux_fs_info *fsi); fsi 344 security/selinux/selinuxfs.c static int sel_make_classes(struct selinux_fs_info *fsi); fsi 345 security/selinux/selinuxfs.c static int sel_make_policycap(struct selinux_fs_info *fsi); fsi 354 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info; fsi 359 security/selinux/selinuxfs.c security_mls_enabled(fsi->state)); fsi 375 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = inode->i_sb->s_fs_info; fsi 376 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 382 security/selinux/selinuxfs.c mutex_lock(&fsi->mutex); fsi 391 security/selinux/selinuxfs.c if (fsi->policy_opened) fsi 409 security/selinux/selinuxfs.c fsi->policy_opened = 1; fsi 413 security/selinux/selinuxfs.c mutex_unlock(&fsi->mutex); fsi 417 security/selinux/selinuxfs.c mutex_unlock(&fsi->mutex); fsi 427 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = inode->i_sb->s_fs_info; fsi 432 security/selinux/selinuxfs.c fsi->policy_opened = 0; fsi 505 security/selinux/selinuxfs.c static int sel_make_policy_nodes(struct selinux_fs_info *fsi) fsi 509 security/selinux/selinuxfs.c ret = sel_make_bools(fsi); fsi 515 security/selinux/selinuxfs.c ret = sel_make_classes(fsi); fsi 521 security/selinux/selinuxfs.c ret = sel_make_policycap(fsi); fsi 534 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 538 security/selinux/selinuxfs.c mutex_lock(&fsi->mutex); fsi 564 security/selinux/selinuxfs.c length = security_load_policy(fsi->state, data, count); fsi 570 security/selinux/selinuxfs.c length = sel_make_policy_nodes(fsi); fsi 582 security/selinux/selinuxfs.c mutex_unlock(&fsi->mutex); fsi 594 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 595 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 631 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info; fsi 635 security/selinux/selinuxfs.c length = scnprintf(tmpbuf, TMPBUFLEN, "%u", fsi->state->checkreqprot); fsi 642 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 669 security/selinux/selinuxfs.c fsi->state->checkreqprot = new_value ? 1 : 0; fsi 685 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 686 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 814 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 815 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 865 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 866 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 969 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 970 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 1030 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 1031 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 1095 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 1096 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 1171 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filep)->i_sb->s_fs_info; fsi 1179 security/selinux/selinuxfs.c mutex_lock(&fsi->mutex); fsi 1182 security/selinux/selinuxfs.c if (index >= fsi->bool_num || strcmp(name, fsi 1183 security/selinux/selinuxfs.c fsi->bool_pending_names[index])) fsi 1191 security/selinux/selinuxfs.c cur_enforcing = security_get_bool_value(fsi->state, index); fsi 1197 security/selinux/selinuxfs.c fsi->bool_pending_values[index]); fsi 1198 security/selinux/selinuxfs.c mutex_unlock(&fsi->mutex); fsi 1205 security/selinux/selinuxfs.c mutex_unlock(&fsi->mutex); fsi 1212 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filep)->i_sb->s_fs_info; fsi 1230 security/selinux/selinuxfs.c mutex_lock(&fsi->mutex); fsi 1240 security/selinux/selinuxfs.c if (index >= fsi->bool_num || strcmp(name, fsi 1241 security/selinux/selinuxfs.c fsi->bool_pending_names[index])) fsi 1251 security/selinux/selinuxfs.c fsi->bool_pending_values[index] = new_value; fsi 1255 security/selinux/selinuxfs.c mutex_unlock(&fsi->mutex); fsi 1270 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filep)->i_sb->s_fs_info; fsi 1286 security/selinux/selinuxfs.c mutex_lock(&fsi->mutex); fsi 1300 security/selinux/selinuxfs.c if (new_value && fsi->bool_pending_values) fsi 1301 security/selinux/selinuxfs.c length = security_set_bools(fsi->state, fsi->bool_num, fsi 1302 security/selinux/selinuxfs.c fsi->bool_pending_values); fsi 1308 security/selinux/selinuxfs.c mutex_unlock(&fsi->mutex); fsi 1326 security/selinux/selinuxfs.c static int sel_make_bools(struct selinux_fs_info *fsi) fsi 1331 security/selinux/selinuxfs.c struct dentry *dir = fsi->bool_dir; fsi 1340 security/selinux/selinuxfs.c for (i = 0; i < fsi->bool_num; i++) fsi 1341 security/selinux/selinuxfs.c kfree(fsi->bool_pending_names[i]); fsi 1342 security/selinux/selinuxfs.c kfree(fsi->bool_pending_names); fsi 1343 security/selinux/selinuxfs.c kfree(fsi->bool_pending_values); fsi 1344 security/selinux/selinuxfs.c fsi->bool_num = 0; fsi 1345 security/selinux/selinuxfs.c fsi->bool_pending_names = NULL; fsi 1346 security/selinux/selinuxfs.c fsi->bool_pending_values = NULL; fsi 1355 security/selinux/selinuxfs.c ret = security_get_bools(fsi->state, &num, &names, &values); fsi 1381 security/selinux/selinuxfs.c ret = security_genfs_sid(fsi->state, "selinuxfs", page, fsi 1395 security/selinux/selinuxfs.c fsi->bool_num = num; fsi 1396 security/selinux/selinuxfs.c fsi->bool_pending_names = names; fsi 1397 security/selinux/selinuxfs.c fsi->bool_pending_values = values; fsi 1418 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info; fsi 1419 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 1433 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 1434 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 1472 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(filp)->i_sb->s_fs_info; fsi 1473 security/selinux/selinuxfs.c struct selinux_state *state = fsi->state; fsi 1573 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = sb->s_fs_info; fsi 1599 security/selinux/selinuxfs.c inode->i_ino = ++fsi->last_ino; fsi 1609 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 1615 security/selinux/selinuxfs.c ret = security_sid_to_context(fsi->state, sid, &con, &len); fsi 1705 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = file_inode(file)->i_sb->s_fs_info; fsi 1711 security/selinux/selinuxfs.c value = security_policycap_supported(fsi->state, i_ino & SEL_INO_MASK); fsi 1725 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = dir->d_sb->s_fs_info; fsi 1729 security/selinux/selinuxfs.c rc = security_get_permissions(fsi->state, objclass, &perms, &nperms); fsi 1766 security/selinux/selinuxfs.c struct selinux_fs_info *fsi = sb->s_fs_info; fsi 1785 security/selinux/selinuxfs.c dentry = sel_make_dir(dir, "perms", &fsi->last_class_ino); fsi 1794 security/selinux/selinuxfs.c static int sel_make_classes(struct selinux_fs_info *fsi) fsi 1801 security/selinux/selinuxfs.c sel_remove_entries(fsi->class_dir); fsi 1803 security/selinux/selinuxfs.c rc = security_get_classes(fsi->state, &classes, &nclasses); fsi 1808 security/selinux/selinuxfs.c fsi->last_class_ino = sel_class_to_ino(nclasses + 2); fsi 1813 security/selinux/selinuxfs.c class_name_dir = sel_make_dir(fsi->class_dir, classes[i], fsi 1814 security/selinux/selinuxfs.c &fsi->last_class_ino); fsi 1834 security/selinux/selinuxfs.c static int sel_make_policycap(struct selinux_fs_info *fsi) fsi 1840 security/selinux/selinuxfs.c sel_remove_entries(fsi->policycap_dir); fsi 1844 security/selinux/selinuxfs.c dentry = d_alloc_name(fsi->policycap_dir, fsi 1847 security/selinux/selinuxfs.c dentry = d_alloc_name(fsi->policycap_dir, "unknown"); fsi 1852 security/selinux/selinuxfs.c inode = sel_make_inode(fsi->sb, S_IFREG | 0444); fsi 1897 security/selinux/selinuxfs.c struct selinux_fs_info *fsi; fsi 1934 security/selinux/selinuxfs.c fsi = sb->s_fs_info; fsi 1935 security/selinux/selinuxfs.c fsi->bool_dir = sel_make_dir(sb->s_root, BOOL_DIR_NAME, &fsi->last_ino); fsi 1936 security/selinux/selinuxfs.c if (IS_ERR(fsi->bool_dir)) { fsi 1937 security/selinux/selinuxfs.c ret = PTR_ERR(fsi->bool_dir); fsi 1938 security/selinux/selinuxfs.c fsi->bool_dir = NULL; fsi 1954 security/selinux/selinuxfs.c inode->i_ino = ++fsi->last_ino; fsi 1963 security/selinux/selinuxfs.c dentry = sel_make_dir(sb->s_root, "avc", &fsi->last_ino); fsi 1973 security/selinux/selinuxfs.c dentry = sel_make_dir(sb->s_root, "initial_contexts", &fsi->last_ino); fsi 1983 security/selinux/selinuxfs.c fsi->class_dir = sel_make_dir(sb->s_root, "class", &fsi->last_ino); fsi 1984 security/selinux/selinuxfs.c if (IS_ERR(fsi->class_dir)) { fsi 1985 security/selinux/selinuxfs.c ret = PTR_ERR(fsi->class_dir); fsi 1986 security/selinux/selinuxfs.c fsi->class_dir = NULL; fsi 1990 security/selinux/selinuxfs.c fsi->policycap_dir = sel_make_dir(sb->s_root, "policy_capabilities", fsi 1991 security/selinux/selinuxfs.c &fsi->last_ino); fsi 1992 security/selinux/selinuxfs.c if (IS_ERR(fsi->policycap_dir)) { fsi 1993 security/selinux/selinuxfs.c ret = PTR_ERR(fsi->policycap_dir); fsi 1994 security/selinux/selinuxfs.c fsi->policycap_dir = NULL; fsi 1998 security/selinux/selinuxfs.c ret = sel_make_policy_nodes(fsi); fsi 241 sound/soc/sh/fsi.c struct fsi_priv *fsi); fsi 269 sound/soc/sh/fsi.c int (*init)(struct fsi_priv *fsi, struct fsi_stream *io); fsi 270 sound/soc/sh/fsi.c int (*quit)(struct fsi_priv *fsi, struct fsi_stream *io); fsi 271 sound/soc/sh/fsi.c int (*probe)(struct fsi_priv *fsi, struct fsi_stream *io, struct device *dev); fsi 272 sound/soc/sh/fsi.c int (*transfer)(struct fsi_priv *fsi, struct fsi_stream *io); fsi 273 sound/soc/sh/fsi.c int (*remove)(struct fsi_priv *fsi, struct fsi_stream *io); fsi 274 sound/soc/sh/fsi.c int (*start_stop)(struct fsi_priv *fsi, struct fsi_stream *io, fsi 300 sound/soc/sh/fsi.c static inline int fsi_stream_is_play(struct fsi_priv *fsi, fsi 303 sound/soc/sh/fsi.c return &fsi->playback == io; fsi 377 sound/soc/sh/fsi.c static struct fsi_master *fsi_get_master(struct fsi_priv *fsi) fsi 379 sound/soc/sh/fsi.c return fsi->master; fsi 382 sound/soc/sh/fsi.c static int fsi_is_clk_master(struct fsi_priv *fsi) fsi 384 sound/soc/sh/fsi.c return fsi->clk_master; fsi 387 sound/soc/sh/fsi.c static int fsi_is_port_a(struct fsi_priv *fsi) fsi 389 sound/soc/sh/fsi.c return fsi->master->base == fsi->base; fsi 392 sound/soc/sh/fsi.c static int fsi_is_spdif(struct fsi_priv *fsi) fsi 394 sound/soc/sh/fsi.c return fsi->spdif; fsi 397 sound/soc/sh/fsi.c static int fsi_is_enable_stream(struct fsi_priv *fsi) fsi 399 sound/soc/sh/fsi.c return fsi->enable_stream; fsi 429 sound/soc/sh/fsi.c static u32 fsi_get_port_shift(struct fsi_priv *fsi, struct fsi_stream *io) fsi 431 sound/soc/sh/fsi.c int is_play = fsi_stream_is_play(fsi, io); fsi 432 sound/soc/sh/fsi.c int is_porta = fsi_is_port_a(fsi); fsi 443 sound/soc/sh/fsi.c static int fsi_frame2sample(struct fsi_priv *fsi, int frames) fsi 445 sound/soc/sh/fsi.c return frames * fsi->chan_num; fsi 448 sound/soc/sh/fsi.c static int fsi_sample2frame(struct fsi_priv *fsi, int samples) fsi 450 sound/soc/sh/fsi.c return samples / fsi->chan_num; fsi 453 sound/soc/sh/fsi.c static int fsi_get_current_fifo_samples(struct fsi_priv *fsi, fsi 456 sound/soc/sh/fsi.c int is_play = fsi_stream_is_play(fsi, io); fsi 461 sound/soc/sh/fsi.c fsi_reg_read(fsi, DOFF_ST) : fsi 462 sound/soc/sh/fsi.c fsi_reg_read(fsi, DIFF_ST); fsi 466 sound/soc/sh/fsi.c return fsi_frame2sample(fsi, frames); fsi 469 sound/soc/sh/fsi.c static void fsi_count_fifo_err(struct fsi_priv *fsi) fsi 471 sound/soc/sh/fsi.c u32 ostatus = fsi_reg_read(fsi, DOFF_ST); fsi 472 sound/soc/sh/fsi.c u32 istatus = fsi_reg_read(fsi, DIFF_ST); fsi 475 sound/soc/sh/fsi.c fsi->playback.oerr_num++; fsi 478 sound/soc/sh/fsi.c fsi->playback.uerr_num++; fsi 481 sound/soc/sh/fsi.c fsi->capture.oerr_num++; fsi 484 sound/soc/sh/fsi.c fsi->capture.uerr_num++; fsi 486 sound/soc/sh/fsi.c fsi_reg_write(fsi, DOFF_ST, 0); fsi 487 sound/soc/sh/fsi.c fsi_reg_write(fsi, DIFF_ST, 0); fsi 493 sound/soc/sh/fsi.c static inline struct fsi_stream *fsi_stream_get(struct fsi_priv *fsi, fsi 496 sound/soc/sh/fsi.c return fsi_is_play(substream) ? &fsi->playback : &fsi->capture; fsi 499 sound/soc/sh/fsi.c static int fsi_stream_is_working(struct fsi_priv *fsi, fsi 502 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 518 sound/soc/sh/fsi.c static void fsi_stream_init(struct fsi_priv *fsi, fsi 523 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 528 sound/soc/sh/fsi.c io->buff_sample_capa = fsi_frame2sample(fsi, runtime->buffer_size); fsi 530 sound/soc/sh/fsi.c io->period_samples = fsi_frame2sample(fsi, runtime->period_size); fsi 536 sound/soc/sh/fsi.c fsi_stream_handler_call(io, init, fsi, io); fsi 540 sound/soc/sh/fsi.c static void fsi_stream_quit(struct fsi_priv *fsi, struct fsi_stream *io) fsi 543 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 554 sound/soc/sh/fsi.c fsi_stream_handler_call(io, quit, fsi, io); fsi 569 sound/soc/sh/fsi.c struct fsi_priv *fsi = fsi_stream_to_priv(io); fsi 570 sound/soc/sh/fsi.c if (!fsi) fsi 573 sound/soc/sh/fsi.c return fsi_stream_handler_call(io, transfer, fsi, io); fsi 576 sound/soc/sh/fsi.c #define fsi_stream_start(fsi, io)\ fsi 577 sound/soc/sh/fsi.c fsi_stream_handler_call(io, start_stop, fsi, io, 1) fsi 579 sound/soc/sh/fsi.c #define fsi_stream_stop(fsi, io)\ fsi 580 sound/soc/sh/fsi.c fsi_stream_handler_call(io, start_stop, fsi, io, 0) fsi 582 sound/soc/sh/fsi.c static int fsi_stream_probe(struct fsi_priv *fsi, struct device *dev) fsi 587 sound/soc/sh/fsi.c io = &fsi->playback; fsi 588 sound/soc/sh/fsi.c ret1 = fsi_stream_handler_call(io, probe, fsi, io, dev); fsi 590 sound/soc/sh/fsi.c io = &fsi->capture; fsi 591 sound/soc/sh/fsi.c ret2 = fsi_stream_handler_call(io, probe, fsi, io, dev); fsi 601 sound/soc/sh/fsi.c static int fsi_stream_remove(struct fsi_priv *fsi) fsi 606 sound/soc/sh/fsi.c io = &fsi->playback; fsi 607 sound/soc/sh/fsi.c ret1 = fsi_stream_handler_call(io, remove, fsi, io); fsi 609 sound/soc/sh/fsi.c io = &fsi->capture; fsi 610 sound/soc/sh/fsi.c ret2 = fsi_stream_handler_call(io, remove, fsi, io); fsi 623 sound/soc/sh/fsi.c static void fsi_format_bus_setup(struct fsi_priv *fsi, struct fsi_stream *io, fsi 626 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 627 sound/soc/sh/fsi.c int is_play = fsi_stream_is_play(fsi, io); fsi 628 sound/soc/sh/fsi.c u32 fmt = fsi->fmt; fsi 656 sound/soc/sh/fsi.c fsi_reg_write(fsi, OUT_DMAC, dma); fsi 658 sound/soc/sh/fsi.c fsi_reg_write(fsi, IN_DMAC, dma); fsi 662 sound/soc/sh/fsi.c fsi_reg_write(fsi, DO_FMT, fmt); fsi 664 sound/soc/sh/fsi.c fsi_reg_write(fsi, DI_FMT, fmt); fsi 671 sound/soc/sh/fsi.c static void fsi_irq_enable(struct fsi_priv *fsi, struct fsi_stream *io) fsi 673 sound/soc/sh/fsi.c u32 data = AB_IO(1, fsi_get_port_shift(fsi, io)); fsi 674 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 680 sound/soc/sh/fsi.c static void fsi_irq_disable(struct fsi_priv *fsi, struct fsi_stream *io) fsi 682 sound/soc/sh/fsi.c u32 data = AB_IO(1, fsi_get_port_shift(fsi, io)); fsi 683 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 694 sound/soc/sh/fsi.c static void fsi_irq_clear_status(struct fsi_priv *fsi) fsi 697 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 699 sound/soc/sh/fsi.c data |= AB_IO(1, fsi_get_port_shift(fsi, &fsi->playback)); fsi 700 sound/soc/sh/fsi.c data |= AB_IO(1, fsi_get_port_shift(fsi, &fsi->capture)); fsi 711 sound/soc/sh/fsi.c static void fsi_spdif_clk_ctrl(struct fsi_priv *fsi, int enable) fsi 713 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 719 sound/soc/sh/fsi.c fsi_is_port_a(fsi) ? fsi 728 sound/soc/sh/fsi.c struct fsi_priv *fsi, fsi 733 sound/soc/sh/fsi.c struct fsi_priv *fsi)) fsi 735 sound/soc/sh/fsi.c struct fsi_clk *clock = &fsi->clock; fsi 736 sound/soc/sh/fsi.c int is_porta = fsi_is_port_a(fsi); fsi 791 sound/soc/sh/fsi.c #define fsi_clk_invalid(fsi) fsi_clk_valid(fsi, 0) fsi 792 sound/soc/sh/fsi.c static void fsi_clk_valid(struct fsi_priv *fsi, unsigned long rate) fsi 794 sound/soc/sh/fsi.c fsi->clock.rate = rate; fsi 797 sound/soc/sh/fsi.c static int fsi_clk_is_valid(struct fsi_priv *fsi) fsi 799 sound/soc/sh/fsi.c return fsi->clock.set_rate && fsi 800 sound/soc/sh/fsi.c fsi->clock.rate; fsi 804 sound/soc/sh/fsi.c struct fsi_priv *fsi) fsi 806 sound/soc/sh/fsi.c struct fsi_clk *clock = &fsi->clock; fsi 809 sound/soc/sh/fsi.c if (!fsi_clk_is_valid(fsi)) fsi 813 sound/soc/sh/fsi.c ret = clock->set_rate(dev, fsi); fsi 815 sound/soc/sh/fsi.c fsi_clk_invalid(fsi); fsi 830 sound/soc/sh/fsi.c struct fsi_priv *fsi) fsi 832 sound/soc/sh/fsi.c struct fsi_clk *clock = &fsi->clock; fsi 834 sound/soc/sh/fsi.c if (!fsi_clk_is_valid(fsi)) fsi 847 sound/soc/sh/fsi.c struct fsi_priv *fsi, fsi 907 sound/soc/sh/fsi.c fsi_reg_mask_set(fsi, CKG1, (ACKMD_MASK | BPFMD_MASK) , data); fsi 914 sound/soc/sh/fsi.c struct fsi_priv *fsi) fsi 916 sound/soc/sh/fsi.c struct clk *xck = fsi->clock.xck; fsi 917 sound/soc/sh/fsi.c struct clk *ick = fsi->clock.ick; fsi 918 sound/soc/sh/fsi.c unsigned long rate = fsi->clock.rate; fsi 933 sound/soc/sh/fsi.c bpfmd = fsi->chan_num * 32; fsi 938 sound/soc/sh/fsi.c ret = fsi_clk_set_ackbpf(dev, fsi, ackmd, bpfmd); fsi 946 sound/soc/sh/fsi.c struct fsi_priv *fsi) fsi 948 sound/soc/sh/fsi.c struct clk *ick = fsi->clock.ick; fsi 949 sound/soc/sh/fsi.c struct clk *div = fsi->clock.div; fsi 950 sound/soc/sh/fsi.c unsigned long rate = fsi->clock.rate; fsi 968 sound/soc/sh/fsi.c bpfmd = fsi->chan_num * 32; fsi 970 sound/soc/sh/fsi.c ret = fsi_clk_set_ackbpf(dev, fsi, ackmd, bpfmd); fsi 1054 sound/soc/sh/fsi.c static void fsi_pio_push16(struct fsi_priv *fsi, u8 *_buf, int samples) fsi 1058 sound/soc/sh/fsi.c if (fsi_is_enable_stream(fsi)) { fsi 1067 sound/soc/sh/fsi.c fsi_reg_write(fsi, DODT, buf[i]); fsi 1073 sound/soc/sh/fsi.c fsi_reg_write(fsi, DODT, ((u32)*(buf + i) << 8)); fsi 1077 sound/soc/sh/fsi.c static void fsi_pio_pop16(struct fsi_priv *fsi, u8 *_buf, int samples) fsi 1083 sound/soc/sh/fsi.c *(buf + i) = (u16)(fsi_reg_read(fsi, DIDT) >> 8); fsi 1086 sound/soc/sh/fsi.c static void fsi_pio_push32(struct fsi_priv *fsi, u8 *_buf, int samples) fsi 1092 sound/soc/sh/fsi.c fsi_reg_write(fsi, DODT, *(buf + i)); fsi 1095 sound/soc/sh/fsi.c static void fsi_pio_pop32(struct fsi_priv *fsi, u8 *_buf, int samples) fsi 1101 sound/soc/sh/fsi.c *(buf + i) = fsi_reg_read(fsi, DIDT); fsi 1104 sound/soc/sh/fsi.c static u8 *fsi_pio_get_area(struct fsi_priv *fsi, struct fsi_stream *io) fsi 1112 sound/soc/sh/fsi.c static int fsi_pio_transfer(struct fsi_priv *fsi, struct fsi_stream *io, fsi 1113 sound/soc/sh/fsi.c void (*run16)(struct fsi_priv *fsi, u8 *buf, int samples), fsi 1114 sound/soc/sh/fsi.c void (*run32)(struct fsi_priv *fsi, u8 *buf, int samples), fsi 1119 sound/soc/sh/fsi.c if (!fsi_stream_is_working(fsi, io)) fsi 1122 sound/soc/sh/fsi.c buf = fsi_pio_get_area(fsi, io); fsi 1126 sound/soc/sh/fsi.c run16(fsi, buf, samples); fsi 1129 sound/soc/sh/fsi.c run32(fsi, buf, samples); fsi 1140 sound/soc/sh/fsi.c static int fsi_pio_pop(struct fsi_priv *fsi, struct fsi_stream *io) fsi 1146 sound/soc/sh/fsi.c sample_residues = fsi_get_current_fifo_samples(fsi, io); fsi 1151 sound/soc/sh/fsi.c return fsi_pio_transfer(fsi, io, fsi 1157 sound/soc/sh/fsi.c static int fsi_pio_push(struct fsi_priv *fsi, struct fsi_stream *io) fsi 1165 sound/soc/sh/fsi.c fsi_get_current_fifo_samples(fsi, io); fsi 1169 sound/soc/sh/fsi.c return fsi_pio_transfer(fsi, io, fsi 1175 sound/soc/sh/fsi.c static int fsi_pio_start_stop(struct fsi_priv *fsi, struct fsi_stream *io, fsi 1178 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 1179 sound/soc/sh/fsi.c u32 clk = fsi_is_port_a(fsi) ? CRA : CRB; fsi 1182 sound/soc/sh/fsi.c fsi_irq_enable(fsi, io); fsi 1184 sound/soc/sh/fsi.c fsi_irq_disable(fsi, io); fsi 1186 sound/soc/sh/fsi.c if (fsi_is_clk_master(fsi)) fsi 1192 sound/soc/sh/fsi.c static int fsi_pio_push_init(struct fsi_priv *fsi, struct fsi_stream *io) fsi 1201 sound/soc/sh/fsi.c if (fsi_is_enable_stream(fsi)) fsi 1210 sound/soc/sh/fsi.c static int fsi_pio_pop_init(struct fsi_priv *fsi, struct fsi_stream *io) fsi 1262 sound/soc/sh/fsi.c static int fsi_dma_init(struct fsi_priv *fsi, struct fsi_stream *io) fsi 1277 sound/soc/sh/fsi.c struct fsi_priv *fsi = fsi_stream_to_priv(io); fsi 1281 sound/soc/sh/fsi.c fsi_count_fifo_err(fsi); fsi 1284 sound/soc/sh/fsi.c static int fsi_dma_transfer(struct fsi_priv *fsi, struct fsi_stream *io) fsi 1289 sound/soc/sh/fsi.c int is_play = fsi_stream_is_play(fsi, io); fsi 1329 sound/soc/sh/fsi.c if (ERR_OVER & fsi_reg_read(fsi, DIFF_ST)) { fsi 1330 sound/soc/sh/fsi.c fsi_reg_mask_set(fsi, DIFF_CTL, FIFO_CLR, FIFO_CLR); fsi 1331 sound/soc/sh/fsi.c fsi_reg_write(fsi, DIFF_ST, 0); fsi 1341 sound/soc/sh/fsi.c static int fsi_dma_push_start_stop(struct fsi_priv *fsi, struct fsi_stream *io, fsi 1344 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 1345 sound/soc/sh/fsi.c u32 clk = fsi_is_port_a(fsi) ? CRA : CRB; fsi 1348 sound/soc/sh/fsi.c fsi_reg_mask_set(fsi, OUT_DMAC, DMA_ON, enable); fsi 1352 sound/soc/sh/fsi.c if (fsi_is_clk_master(fsi)) fsi 1358 sound/soc/sh/fsi.c static int fsi_dma_probe(struct fsi_priv *fsi, struct fsi_stream *io, struct device *dev) fsi 1360 sound/soc/sh/fsi.c int is_play = fsi_stream_is_play(fsi, io); fsi 1377 sound/soc/sh/fsi.c cfg.dst_addr = fsi->phys + REG_DODT; fsi 1381 sound/soc/sh/fsi.c cfg.src_addr = fsi->phys + REG_DIDT; fsi 1397 sound/soc/sh/fsi.c fsi->playback.handler = &fsi_pio_push_handler; fsi 1399 sound/soc/sh/fsi.c fsi->capture.handler = &fsi_pio_pop_handler; fsi 1404 sound/soc/sh/fsi.c return fsi_stream_probe(fsi, dev); fsi 1410 sound/soc/sh/fsi.c static int fsi_dma_remove(struct fsi_priv *fsi, struct fsi_stream *io) fsi 1412 sound/soc/sh/fsi.c fsi_stream_stop(fsi, io); fsi 1432 sound/soc/sh/fsi.c static void fsi_fifo_init(struct fsi_priv *fsi, fsi 1436 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 1437 sound/soc/sh/fsi.c int is_play = fsi_stream_is_play(fsi, io); fsi 1443 sound/soc/sh/fsi.c shift >>= fsi_get_port_shift(fsi, io); fsi 1467 sound/soc/sh/fsi.c for (i = 1; i < fsi->chan_num; i <<= 1) fsi 1470 sound/soc/sh/fsi.c fsi->chan_num, frame_capa); fsi 1472 sound/soc/sh/fsi.c io->fifo_sample_capa = fsi_frame2sample(fsi, frame_capa); fsi 1479 sound/soc/sh/fsi.c fsi_reg_write(fsi, DOFF_CTL, IRQ_HALF); fsi 1480 sound/soc/sh/fsi.c fsi_reg_mask_set(fsi, DOFF_CTL, FIFO_CLR, FIFO_CLR); fsi 1482 sound/soc/sh/fsi.c fsi_reg_write(fsi, DIFF_CTL, IRQ_HALF); fsi 1483 sound/soc/sh/fsi.c fsi_reg_mask_set(fsi, DIFF_CTL, FIFO_CLR, FIFO_CLR); fsi 1487 sound/soc/sh/fsi.c static int fsi_hw_startup(struct fsi_priv *fsi, fsi 1494 sound/soc/sh/fsi.c if (fsi_is_clk_master(fsi)) fsi 1497 sound/soc/sh/fsi.c fsi_reg_mask_set(fsi, CKG1, (DIMD | DOMD), data); fsi 1501 sound/soc/sh/fsi.c if (fsi->bit_clk_inv) fsi 1503 sound/soc/sh/fsi.c if (fsi->lr_clk_inv) fsi 1505 sound/soc/sh/fsi.c if (fsi_is_clk_master(fsi)) fsi 1507 sound/soc/sh/fsi.c fsi_reg_write(fsi, CKG2, data); fsi 1510 sound/soc/sh/fsi.c if (fsi_is_spdif(fsi)) { fsi 1511 sound/soc/sh/fsi.c fsi_spdif_clk_ctrl(fsi, 1); fsi 1512 sound/soc/sh/fsi.c fsi_reg_mask_set(fsi, OUT_SEL, DMMD, DMMD); fsi 1527 sound/soc/sh/fsi.c fsi_format_bus_setup(fsi, io, data, dev); fsi 1530 sound/soc/sh/fsi.c fsi_irq_disable(fsi, io); fsi 1531 sound/soc/sh/fsi.c fsi_irq_clear_status(fsi); fsi 1534 sound/soc/sh/fsi.c fsi_fifo_init(fsi, io, dev); fsi 1537 sound/soc/sh/fsi.c if (fsi_is_clk_master(fsi)) fsi 1538 sound/soc/sh/fsi.c return fsi_clk_enable(dev, fsi); fsi 1543 sound/soc/sh/fsi.c static int fsi_hw_shutdown(struct fsi_priv *fsi, fsi 1547 sound/soc/sh/fsi.c if (fsi_is_clk_master(fsi)) fsi 1548 sound/soc/sh/fsi.c return fsi_clk_disable(dev, fsi); fsi 1556 sound/soc/sh/fsi.c struct fsi_priv *fsi = fsi_get_priv(substream); fsi 1558 sound/soc/sh/fsi.c fsi_clk_invalid(fsi); fsi 1566 sound/soc/sh/fsi.c struct fsi_priv *fsi = fsi_get_priv(substream); fsi 1568 sound/soc/sh/fsi.c fsi_clk_invalid(fsi); fsi 1574 sound/soc/sh/fsi.c struct fsi_priv *fsi = fsi_get_priv(substream); fsi 1575 sound/soc/sh/fsi.c struct fsi_stream *io = fsi_stream_get(fsi, substream); fsi 1580 sound/soc/sh/fsi.c fsi_stream_init(fsi, io, substream); fsi 1582 sound/soc/sh/fsi.c ret = fsi_hw_startup(fsi, io, dai->dev); fsi 1584 sound/soc/sh/fsi.c ret = fsi_stream_start(fsi, io); fsi 1590 sound/soc/sh/fsi.c ret = fsi_hw_shutdown(fsi, dai->dev); fsi 1591 sound/soc/sh/fsi.c fsi_stream_stop(fsi, io); fsi 1592 sound/soc/sh/fsi.c fsi_stream_quit(fsi, io); fsi 1599 sound/soc/sh/fsi.c static int fsi_set_fmt_dai(struct fsi_priv *fsi, unsigned int fmt) fsi 1603 sound/soc/sh/fsi.c fsi->fmt = CR_I2S; fsi 1604 sound/soc/sh/fsi.c fsi->chan_num = 2; fsi 1607 sound/soc/sh/fsi.c fsi->fmt = CR_PCM; fsi 1608 sound/soc/sh/fsi.c fsi->chan_num = 2; fsi 1617 sound/soc/sh/fsi.c static int fsi_set_fmt_spdif(struct fsi_priv *fsi) fsi 1619 sound/soc/sh/fsi.c struct fsi_master *master = fsi_get_master(fsi); fsi 1624 sound/soc/sh/fsi.c fsi->fmt = CR_DTMD_SPDIF_PCM | CR_PCM; fsi 1625 sound/soc/sh/fsi.c fsi->chan_num = 2; fsi 1632 sound/soc/sh/fsi.c struct fsi_priv *fsi = fsi_get_priv_frm_dai(dai); fsi 1640 sound/soc/sh/fsi.c fsi->clk_master = 1; /* codec is slave, cpu is master */ fsi 1649 sound/soc/sh/fsi.c fsi->bit_clk_inv = 0; fsi 1650 sound/soc/sh/fsi.c fsi->lr_clk_inv = 1; fsi 1653 sound/soc/sh/fsi.c fsi->bit_clk_inv = 1; fsi 1654 sound/soc/sh/fsi.c fsi->lr_clk_inv = 0; fsi 1657 sound/soc/sh/fsi.c fsi->bit_clk_inv = 1; fsi 1658 sound/soc/sh/fsi.c fsi->lr_clk_inv = 1; fsi 1662 sound/soc/sh/fsi.c fsi->bit_clk_inv = 0; fsi 1663 sound/soc/sh/fsi.c fsi->lr_clk_inv = 0; fsi 1667 sound/soc/sh/fsi.c if (fsi_is_clk_master(fsi)) { fsi 1668 sound/soc/sh/fsi.c if (fsi->clk_cpg) fsi 1669 sound/soc/sh/fsi.c fsi_clk_init(dai->dev, fsi, 0, 1, 1, fsi 1672 sound/soc/sh/fsi.c fsi_clk_init(dai->dev, fsi, 1, 1, 0, fsi 1677 sound/soc/sh/fsi.c if (fsi_is_spdif(fsi)) fsi 1678 sound/soc/sh/fsi.c ret = fsi_set_fmt_spdif(fsi); fsi 1680 sound/soc/sh/fsi.c ret = fsi_set_fmt_dai(fsi, fmt & SND_SOC_DAIFMT_FORMAT_MASK); fsi 1689 sound/soc/sh/fsi.c struct fsi_priv *fsi = fsi_get_priv(substream); fsi 1691 sound/soc/sh/fsi.c if (fsi_is_clk_master(fsi)) fsi 1692 sound/soc/sh/fsi.c fsi_clk_valid(fsi, params_rate(params)); fsi 1748 sound/soc/sh/fsi.c struct fsi_priv *fsi = fsi_get_priv(substream); fsi 1749 sound/soc/sh/fsi.c struct fsi_stream *io = fsi_stream_get(fsi, substream); fsi 1751 sound/soc/sh/fsi.c return fsi_sample2frame(fsi, io->buff_sample_pos); fsi 1854 sound/soc/sh/fsi.c static void fsi_port_info_init(struct fsi_priv *fsi, fsi 1858 sound/soc/sh/fsi.c fsi->spdif = 1; fsi 1861 sound/soc/sh/fsi.c fsi->clk_cpg = 1; fsi 1864 sound/soc/sh/fsi.c fsi->enable_stream = 1; fsi 1867 sound/soc/sh/fsi.c static void fsi_handler_init(struct fsi_priv *fsi, fsi 1870 sound/soc/sh/fsi.c fsi->playback.handler = &fsi_pio_push_handler; /* default PIO */ fsi 1871 sound/soc/sh/fsi.c fsi->playback.priv = fsi; fsi 1872 sound/soc/sh/fsi.c fsi->capture.handler = &fsi_pio_pop_handler; /* default PIO */ fsi 1873 sound/soc/sh/fsi.c fsi->capture.priv = fsi; fsi 1876 sound/soc/sh/fsi.c fsi->playback.dma_id = info->tx_id; fsi 1877 sound/soc/sh/fsi.c fsi->playback.handler = &fsi_dma_push_handler; fsi 1920 sound/soc/sh/fsi.c struct fsi_priv *fsi; fsi 1969 sound/soc/sh/fsi.c fsi = &master->fsia; fsi 1970 sound/soc/sh/fsi.c fsi->base = master->base; fsi 1971 sound/soc/sh/fsi.c fsi->phys = res->start; fsi 1972 sound/soc/sh/fsi.c fsi->master = master; fsi 1973 sound/soc/sh/fsi.c fsi_port_info_init(fsi, &info.port_a); fsi 1974 sound/soc/sh/fsi.c fsi_handler_init(fsi, &info.port_a); fsi 1975 sound/soc/sh/fsi.c ret = fsi_stream_probe(fsi, &pdev->dev); fsi 1982 sound/soc/sh/fsi.c fsi = &master->fsib; fsi 1983 sound/soc/sh/fsi.c fsi->base = master->base + 0x40; fsi 1984 sound/soc/sh/fsi.c fsi->phys = res->start + 0x40; fsi 1985 sound/soc/sh/fsi.c fsi->master = master; fsi 1986 sound/soc/sh/fsi.c fsi_port_info_init(fsi, &info.port_b); fsi 1987 sound/soc/sh/fsi.c fsi_handler_init(fsi, &info.port_b); fsi 1988 sound/soc/sh/fsi.c ret = fsi_stream_probe(fsi, &pdev->dev); fsi 2036 sound/soc/sh/fsi.c static void __fsi_suspend(struct fsi_priv *fsi, fsi 2040 sound/soc/sh/fsi.c if (!fsi_stream_is_working(fsi, io)) fsi 2043 sound/soc/sh/fsi.c fsi_stream_stop(fsi, io); fsi 2044 sound/soc/sh/fsi.c fsi_hw_shutdown(fsi, dev); fsi 2047 sound/soc/sh/fsi.c static void __fsi_resume(struct fsi_priv *fsi, fsi 2051 sound/soc/sh/fsi.c if (!fsi_stream_is_working(fsi, io)) fsi 2054 sound/soc/sh/fsi.c fsi_hw_startup(fsi, io, dev); fsi 2055 sound/soc/sh/fsi.c fsi_stream_start(fsi, io);