/openbmc/linux/drivers/block/ |
H A D | swim3.c | 209 #define swim3_err(fmt, arg...) dev_err(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 210 #define swim3_warn(fmt, arg...) dev_warn(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 211 #define swim3_info(fmt, arg...) dev_info(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 214 #define swim3_dbg(fmt, arg...) dev_dbg(&fs->mdev->ofdev.dev, "[fd%d] " fmt, fs->index, arg) 237 static void seek_track(struct floppy_state *fs, int n); 238 static void act(struct floppy_state *fs); 245 static int grab_drive(struct floppy_state *fs, enum swim_state state, 247 static void release_drive(struct floppy_state *fs); 248 static int fd_eject(struct floppy_state *fs); 256 static bool swim3_end_request(struct floppy_state *fs, blk_status_t err, unsigned int nr_bytes) in swim3_end_request() argument [all …]
|
H A D | swim.c | 426 static inline int swim_track(struct floppy_state *fs, int track) in swim_track() argument 428 struct swim __iomem *base = fs->swd->base; in swim_track() 431 ret = swim_seek(base, track - fs->track); in swim_track() 434 fs->track = track; in swim_track() 437 fs->track = 0; in swim_track() 443 static int floppy_eject(struct floppy_state *fs) in floppy_eject() argument 445 struct swim __iomem *base = fs->swd->base; in floppy_eject() 447 swim_drive(base, fs->location); in floppy_eject() 451 fs->disk_in = 0; in floppy_eject() 452 fs->ejected = 1; in floppy_eject() [all …]
|
/openbmc/u-boot/fs/ext4/ |
H A D | ext4_write.c | 41 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_inodes_inc() argument 44 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_inc() 49 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_inc() 54 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_blocks_inc() argument 57 if (fs->gdsize == 64) in ext4fs_bg_free_blocks_inc() 62 if (fs->gdsize == 64) in ext4fs_bg_free_blocks_inc() 70 struct ext_filesystem *fs = get_fs(); in ext4fs_update() local 75 (struct ext2_sblock *)fs->sb, (uint32_t)SUPERBLOCK_SIZE); in ext4fs_update() 78 for (i = 0; i < fs->no_blkgrp; i++) { in ext4fs_update() 79 bgd = ext4fs_get_group_descriptor(fs, i); in ext4fs_update() [all …]
|
H A D | ext4_common.c | 49 (const struct ext_filesystem *fs, uint32_t bg_idx) in ext4fs_get_group_descriptor() argument 51 return (struct ext2_block_group *)(fs->gdtable + (bg_idx * fs->gdsize)); in ext4fs_get_group_descriptor() 70 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_inodes_dec() argument 73 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_dec() 78 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_dec() 83 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_free_blocks_dec() argument 86 if (fs->gdsize == 64) in ext4fs_bg_free_blocks_dec() 91 if (fs->gdsize == 64) in ext4fs_bg_free_blocks_dec() 96 (struct ext2_block_group *bg, const struct ext_filesystem *fs) in ext4fs_bg_itable_unused_dec() argument 99 if (fs->gdsize == 64) in ext4fs_bg_itable_unused_dec() [all …]
|
H A D | ext4_journal.c | 36 struct ext_filesystem *fs = get_fs(); in ext4fs_init_journal() local 59 if (fs->blksz == 4096) { in ext4fs_init_journal() 60 temp = zalloc(fs->blksz); in ext4fs_init_journal() 63 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_init_journal() 66 ext4fs_devread(0, 0, fs->blksz, temp); in ext4fs_init_journal() 67 memcpy(temp + SUPERBLOCK_SIZE, fs->sb, SUPERBLOCK_SIZE); in ext4fs_init_journal() 68 memcpy(journal_ptr[gindex]->buf, temp, fs->blksz); in ext4fs_init_journal() 72 journal_ptr[gindex]->buf = zalloc(fs->blksz); in ext4fs_init_journal() 75 memcpy(journal_ptr[gindex]->buf, fs->sb, SUPERBLOCK_SIZE); in ext4fs_init_journal() 93 struct ext_filesystem *fs = get_fs(); in ext4fs_dump_metadata() local [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs.c | 74 static int mlx5e_add_l2_flow_rule(struct mlx5e_flow_steering *fs, 76 static void mlx5e_del_l2_flow_rule(struct mlx5e_flow_steering *fs, 109 struct dentry *mlx5e_fs_get_debugfs_root(struct mlx5e_flow_steering *fs) in mlx5e_fs_get_debugfs_root() argument 111 return fs->dfs_root; in mlx5e_fs_get_debugfs_root() 170 static int mlx5e_vport_context_update_vlans(struct mlx5e_flow_steering *fs) in mlx5e_vport_context_update_vlans() argument 180 for_each_set_bit(vlan, fs->vlan->active_cvlans, VLAN_N_VID) in mlx5e_vport_context_update_vlans() 183 max_list_size = 1 << MLX5_CAP_GEN(fs->mdev, log_max_vlan_list); in mlx5e_vport_context_update_vlans() 186 …fs_warn(fs, "netdev vlans list size (%d) > (%d) max vport list size, some vlans will be dropped\n", in mlx5e_vport_context_update_vlans() 196 for_each_set_bit(vlan, fs->vlan->active_cvlans, VLAN_N_VID) { in mlx5e_vport_context_update_vlans() 202 err = mlx5_modify_nic_vport_vlans(fs->mdev, vlans, list_size); in mlx5e_vport_context_update_vlans() [all …]
|
H A D | en_fs_ethtool.c | 82 struct ethtool_rx_flow_spec *fs, in get_flow_table() argument 85 struct mlx5e_ethtool_steering *ethtool = mlx5e_fs_get_ethtool(priv->fs); in get_flow_table() 94 switch (flow_type_mask(fs->flow_type)) { in get_flow_table() 233 parse_tcp4(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) in parse_tcp4() argument 235 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.tcp_ip4_spec; in parse_tcp4() 236 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.tcp_ip4_spec; in parse_tcp4() 246 parse_udp4(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) in parse_udp4() argument 248 struct ethtool_tcpip4_spec *l4_mask = &fs->m_u.udp_ip4_spec; in parse_udp4() 249 struct ethtool_tcpip4_spec *l4_val = &fs->h_u.udp_ip4_spec; in parse_udp4() 259 parse_ip4(void *headers_c, void *headers_v, struct ethtool_rx_flow_spec *fs) in parse_ip4() argument [all …]
|
/openbmc/linux/fs/ |
H A D | fs_struct.c | 15 void set_fs_root(struct fs_struct *fs, const struct path *path) in set_fs_root() argument 20 spin_lock(&fs->lock); in set_fs_root() 21 write_seqcount_begin(&fs->seq); in set_fs_root() 22 old_root = fs->root; in set_fs_root() 23 fs->root = *path; in set_fs_root() 24 write_seqcount_end(&fs->seq); in set_fs_root() 25 spin_unlock(&fs->lock); in set_fs_root() 34 void set_fs_pwd(struct fs_struct *fs, const struct path *path) in set_fs_pwd() argument 39 spin_lock(&fs->lock); in set_fs_pwd() 40 write_seqcount_begin(&fs->seq); in set_fs_pwd() [all …]
|
H A D | filesystems.c | 38 struct file_system_type *get_filesystem(struct file_system_type *fs) in get_filesystem() argument 40 __module_get(fs->owner); in get_filesystem() 41 return fs; in get_filesystem() 44 void put_filesystem(struct file_system_type *fs) in put_filesystem() argument 46 module_put(fs->owner); in put_filesystem() 72 int register_filesystem(struct file_system_type * fs) in register_filesystem() argument 77 if (fs->parameters && in register_filesystem() 78 !fs_validate_description(fs->name, fs->parameters)) in register_filesystem() 81 BUG_ON(strchr(fs->name, '.')); in register_filesystem() 82 if (fs->next) in register_filesystem() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_filter.c | 75 set_wr_txq(skb, CPL_PRIORITY_CONTROL, f->fs.val.iport & 0x3); in set_tcb_field() 168 u8 *nat_lp = (u8 *)&f->fs.nat_lport; in set_nat_params() 169 u8 *nat_fp = (u8 *)&f->fs.nat_fport; in set_nat_params() 172 if (f->fs.type) { in set_nat_params() 174 WORD_MASK, f->fs.nat_lip[15] | in set_nat_params() 175 f->fs.nat_lip[14] << 8 | in set_nat_params() 176 f->fs.nat_lip[13] << 16 | in set_nat_params() 177 (u64)f->fs.nat_lip[12] << 24, 1); in set_nat_params() 180 WORD_MASK, f->fs.nat_lip[11] | in set_nat_params() 181 f->fs.nat_lip[10] << 8 | in set_nat_params() [all …]
|
H A D | cxgb4_tc_flower.c | 128 static void cxgb4_action_natmode_tweak(struct ch_filter_specification *fs, in cxgb4_action_natmode_tweak() argument 140 fs->nat_mode = cxgb4_natmode_config_array[i].natmode; in cxgb4_action_natmode_tweak() 164 struct ch_filter_specification *fs) in cxgb4_process_flow_match() argument 193 fs->type = 1; in cxgb4_process_flow_match() 195 fs->val.ethtype = ethtype_key; in cxgb4_process_flow_match() 196 fs->mask.ethtype = ethtype_mask; in cxgb4_process_flow_match() 197 fs->val.proto = match.key->ip_proto; in cxgb4_process_flow_match() 198 fs->mask.proto = match.mask->ip_proto; in cxgb4_process_flow_match() 205 fs->type = 0; in cxgb4_process_flow_match() 206 memcpy(&fs->val.lip[0], &match.key->dst, sizeof(match.key->dst)); in cxgb4_process_flow_match() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | fs.h | 100 int mlx5e_arfs_create_tables(struct mlx5e_flow_steering *fs, 102 void mlx5e_arfs_destroy_tables(struct mlx5e_flow_steering *fs, bool ntuple); 103 int mlx5e_arfs_enable(struct mlx5e_flow_steering *fs); 104 int mlx5e_arfs_disable(struct mlx5e_flow_steering *fs); 108 static inline int mlx5e_arfs_create_tables(struct mlx5e_flow_steering *fs, in mlx5e_arfs_create_tables() argument 111 static inline void mlx5e_arfs_destroy_tables(struct mlx5e_flow_steering *fs, bool ntuple) {} in mlx5e_arfs_destroy_tables() argument 112 static inline int mlx5e_arfs_enable(struct mlx5e_flow_steering *fs) in mlx5e_arfs_enable() argument 114 static inline int mlx5e_arfs_disable(struct mlx5e_flow_steering *fs) in mlx5e_arfs_disable() argument 127 void mlx5e_set_ttc_params(struct mlx5e_flow_steering *fs, 131 void mlx5e_destroy_ttc_table(struct mlx5e_flow_steering *fs); [all …]
|
H A D | fs_tt_redirect.c | 77 mlx5e_fs_tt_redirect_udp_add_rule(struct mlx5e_flow_steering *fs, in mlx5e_fs_tt_redirect_udp_add_rule() argument 81 struct mlx5e_fs_udp *fs_udp = mlx5e_fs_get_udp(fs); in mlx5e_fs_tt_redirect_udp_add_rule() 108 fs_err(fs, "%s: add %s rule failed, err %d\n", in mlx5e_fs_tt_redirect_udp_add_rule() 114 static int fs_udp_add_default_rule(struct mlx5e_flow_steering *fs, enum fs_udp_type type) in fs_udp_add_default_rule() argument 116 struct mlx5_ttc_table *ttc = mlx5e_fs_get_ttc(fs, false); in fs_udp_add_default_rule() 117 struct mlx5e_fs_udp *fs_udp = mlx5e_fs_get_udp(fs); in fs_udp_add_default_rule() 130 fs_err(fs, "%s: add default rule failed, fs type=%d, err %d\n", in fs_udp_add_default_rule() 208 static int fs_udp_create_table(struct mlx5e_flow_steering *fs, enum fs_udp_type type) in fs_udp_create_table() argument 210 struct mlx5_flow_namespace *ns = mlx5e_fs_get_ns(fs, false); in fs_udp_create_table() 211 struct mlx5e_fs_udp *fs_udp = mlx5e_fs_get_udp(fs); in fs_udp_create_table() [all …]
|
/openbmc/phosphor-power/test/ |
H A D | temporary_subdirectory_tests.cpp | 26 namespace fs = std::filesystem; 32 fs::path path = subdirectory.getPath(); in TEST() 34 EXPECT_TRUE(fs::exists(path)); in TEST() 35 EXPECT_TRUE(fs::is_directory(path)); in TEST() 37 fs::path parentDir = path.parent_path(); in TEST() 49 EXPECT_TRUE(fs::exists(subdirectory1.getPath())); in TEST() 52 fs::path path = subdirectory1.getPath(); in TEST() 62 EXPECT_TRUE(fs::exists(subdirectory2.getPath())); in TEST() 72 EXPECT_TRUE(fs::exists(subdirectory1.getPath())); in TEST() 75 fs::path path1 = subdirectory1.getPath(); in TEST() [all …]
|
H A D | temporary_file_tests.cpp | 26 namespace fs = std::filesystem; 35 inline void makeFileUnRemovable(const fs::path& path) in makeFileUnRemovable() 38 fs::path savePath{path.native() + ".save"}; in makeFileUnRemovable() 39 fs::rename(path, savePath); in makeFileUnRemovable() 42 fs::create_directory(path); in makeFileUnRemovable() 56 inline void makeFileRemovable(const fs::path& path) in makeFileRemovable() 60 fs::remove_all(path); in makeFileRemovable() 63 fs::path savePath{path.native() + ".save"}; in makeFileRemovable() 64 fs::rename(savePath, path); in makeFileRemovable() 71 fs::path path = file.getPath(); in TEST() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-user-fs.c | 43 VHostUserFS *fs = VHOST_USER_FS(vdev); in vuf_get_config() local 46 memcpy((char *)fscfg.tag, fs->conf.tag, in vuf_get_config() 47 MIN(strlen(fs->conf.tag) + 1, sizeof(fscfg.tag))); in vuf_get_config() 49 virtio_stl_p(vdev, &fscfg.num_request_queues, fs->conf.num_request_queues); in vuf_get_config() 56 VHostUserFS *fs = VHOST_USER_FS(vdev); in vuf_start() local 67 ret = vhost_dev_enable_notifiers(&fs->vhost_dev, vdev); in vuf_start() 73 ret = k->set_guest_notifiers(qbus->parent, fs->vhost_dev.nvqs, true); in vuf_start() 79 fs->vhost_dev.acked_features = vdev->guest_features; in vuf_start() 80 ret = vhost_dev_start(&fs->vhost_dev, vdev, true); in vuf_start() 91 for (i = 0; i < fs->vhost_dev.nvqs; i++) { in vuf_start() [all …]
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | temporary_file_test.cpp | 26 namespace fs = std::filesystem; 35 inline void makeFileRemovable(const fs::path& path) in makeFileRemovable() 39 fs::remove_all(path); in makeFileRemovable() 42 fs::path savePath{path.native() + ".save"}; in makeFileRemovable() 43 fs::rename(savePath, path); in makeFileRemovable() 53 inline void makeFileUnRemovable(const fs::path& path) in makeFileUnRemovable() 56 fs::path savePath{path.native() + ".save"}; in makeFileUnRemovable() 57 fs::rename(path, savePath); in makeFileUnRemovable() 60 fs::create_directory(path); in makeFileUnRemovable() 100 fs::path path = tmpFile->getPath(); in TEST_F() [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | asc.c | 117 static uint8_t asc_fifo_get(ASCFIFOState *fs) in asc_fifo_get() argument 119 ASCState *s = container_of(fs, ASCState, fifos[fs->index]); in asc_fifo_get() 120 bool fifo_half_irq_enabled = fs->extregs[ASC_EXTREGS_INTCTRL] & 1; in asc_fifo_get() 123 assert(fs->cnt); in asc_fifo_get() 125 val = fs->fifo[fs->rptr]; in asc_fifo_get() 126 trace_asc_fifo_get('A' + fs->index, fs->rptr, fs->cnt, val); in asc_fifo_get() 128 fs->rptr++; in asc_fifo_get() 129 fs->rptr &= 0x3ff; in asc_fifo_get() 130 fs->cnt--; in asc_fifo_get() 132 if (fs->cnt <= 0x1ff) { in asc_fifo_get() [all …]
|
/openbmc/linux/tools/lib/api/fs/ |
H A D | fs.c | 90 struct fs { struct 102 static void fs__init_once(struct fs *fs); argument 103 static const char *fs__mountpoint(const struct fs *fs); 104 static const char *fs__mount(struct fs *fs); 107 static struct fs fs__##lower_name = { \ 116 struct fs *fs = &fs__##lower_name; \ 118 fs__init_once(fs); \ 124 struct fs *fs = &fs__##lower_name; \ 127 return fs__mountpoint(fs); \ 133 struct fs *fs = &fs__##lower_name; \ [all …]
|
/openbmc/linux/drivers/clk/st/ |
H A D | clkgen-fsyn.c | 82 unsigned long output, struct stm_fs *fs); 322 static int clk_fs660c32_vco_get_rate(unsigned long input, struct stm_fs *fs, in clk_fs660c32_vco_get_rate() argument 325 unsigned long nd = fs->ndiv + 16; /* ndiv value */ in clk_fs660c32_vco_get_rate() 350 unsigned long output, struct stm_fs *fs) in clk_fs660c32_vco_get_params() argument 373 fs->ndiv = n - 16; /* Converting formula value to reg value */ in clk_fs660c32_vco_get_params() 533 static void quadfs_fsynth_program_enable(struct st_clk_quadfs_fsynth *fs) in quadfs_fsynth_program_enable() argument 539 CLKGEN_WRITE(fs, en[fs->chan], 1); in quadfs_fsynth_program_enable() 540 CLKGEN_WRITE(fs, en[fs->chan], 0); in quadfs_fsynth_program_enable() 543 static void quadfs_fsynth_program_rate(struct st_clk_quadfs_fsynth *fs) in quadfs_fsynth_program_rate() argument 552 CLKGEN_WRITE(fs, en[fs->chan], 0); in quadfs_fsynth_program_rate() [all …]
|
/openbmc/linux/Documentation/filesystems/ |
H A D | api-summary.rst | 14 .. kernel-doc:: include/linux/fs.h 20 .. kernel-doc:: fs/dcache.c 29 .. kernel-doc:: fs/inode.c 32 .. kernel-doc:: fs/bad_inode.c 38 .. kernel-doc:: fs/super.c 44 .. kernel-doc:: fs/locks.c 47 .. kernel-doc:: fs/locks.c 53 .. kernel-doc:: fs/mpage.c 56 .. kernel-doc:: fs/namei.c 59 .. kernel-doc:: fs/buffer.c [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | lmmi_helper.c | 56 uint64_t helper_paddsb(uint64_t fs, uint64_t ft) in helper_paddsb() argument 61 vs.d = fs; in helper_paddsb() 70 uint64_t helper_paddusb(uint64_t fs, uint64_t ft) in helper_paddusb() argument 75 vs.d = fs; in helper_paddusb() 84 uint64_t helper_paddsh(uint64_t fs, uint64_t ft) in helper_paddsh() argument 89 vs.d = fs; in helper_paddsh() 98 uint64_t helper_paddush(uint64_t fs, uint64_t ft) in helper_paddush() argument 103 vs.d = fs; in helper_paddush() 112 uint64_t helper_paddb(uint64_t fs, uint64_t ft) in helper_paddb() argument 117 vs.d = fs; in helper_paddb() [all …]
|
/openbmc/linux/include/math-emu/ |
H A D | op-common.h | 36 #define _FP_UNPACK_CANONICAL(fs, wc, X) \ argument 41 _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_IMPLBIT_##fs; \ 43 X##_e -= _FP_EXPBIAS_##fs; \ 55 _shift -= _FP_FRACXBITS_##fs; \ 57 X##_e -= _FP_EXPBIAS_##fs - 1 + _shift; \ 68 case _FP_EXPMAX_##fs: \ 75 if (!(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \ 89 #define _FP_PACK_CANONICAL(fs, wc, X) \ argument 94 X##_e += _FP_EXPBIAS_##fs; \ 98 if (_FP_FRAC_OVERP_##wc(fs, X)) \ [all …]
|
/openbmc/phosphor-bmc-code-mgmt/bmc/ |
H A D | image_verify.cpp | 39 Signature::Signature(const fs::path& imageDirPath, in Signature() 40 const fs::path& signedConfPath) : in Signature() 43 fs::path file(imageDirPath / MANIFEST_FILE_NAME); in Signature() 61 if (!fs::is_directory(signedConfPath, ec)) in getAvailableKeyTypesFromSystem() 76 for (const auto& p : fs::recursive_directory_iterator(signedConfPath)) in getAvailableKeyTypesFromSystem() 93 fs::path hashpath(signedConfPath / key / HASH_FILE_NAME); in getKeyHashFileNames() 94 fs::path keyPath(signedConfPath / key / PUBLICKEY_FILE_NAME); in getKeyHashFileNames() 110 fs::path(imageDirPath) / "image-bmc.sig", in verifyFullImage() 111 fs::path(imageDirPath) / "image-hostfw.sig", in verifyFullImage() 112 fs::path(imageDirPath) / "image-kernel.sig", in verifyFullImage() [all …]
|
/openbmc/linux/fs/fuse/ |
H A D | virtio_fs.c | 144 struct virtio_fs *fs = vq->vdev->priv; in vq_to_fsvq() local 146 return &fs->vqs[vq->index]; in vq_to_fsvq() 173 static void virtio_fs_put(struct virtio_fs *fs) in virtio_fs_put() argument 175 kref_put(&fs->refcount, release_virtio_fs_obj); in virtio_fs_put() 208 static void virtio_fs_drain_all_queues_locked(struct virtio_fs *fs) in virtio_fs_drain_all_queues_locked() argument 213 for (i = 0; i < fs->nvqs; i++) { in virtio_fs_drain_all_queues_locked() 214 fsvq = &fs->vqs[i]; in virtio_fs_drain_all_queues_locked() 219 static void virtio_fs_drain_all_queues(struct virtio_fs *fs) in virtio_fs_drain_all_queues() argument 228 virtio_fs_drain_all_queues_locked(fs); in virtio_fs_drain_all_queues() 232 static void virtio_fs_start_all_queues(struct virtio_fs *fs) in virtio_fs_start_all_queues() argument [all …]
|