/openbmc/linux/drivers/block/ |
H A D | swim3.c | 349 fs->head = x / fs->secpertrack; in swim3_queue_rq() 396 fs->expect_cyl = (fs->cur_cyl >= 0)? fs->cur_cyl + n: -1; in seek_track() 452 fs->req_sector, fs->secpertrack, fs->head, n); in setup_transfer() 491 fs->state, fs->req_cyl, fs->cur_cyl); in act() 516 if (fs->req_cyl == fs->cur_cyl) { in act() 521 seek_track(fs, fs->req_cyl - fs->cur_cyl); in act() 531 if (fs->cur_cyl != fs->req_cyl) { in act() 534 fs->req_cyl, fs->cur_cyl); in act() 696 if (fs->expect_cyl != -1 && fs->expect_cyl != fs->cur_cyl) in swim3_interrupt() 783 fs->req_sector += fs->scount; in swim3_interrupt() [all …]
|
H A D | swim.c | 437 fs->track = 0; in swim_track() 451 fs->disk_in = 0; in floppy_eject() 452 fs->ejected = 1; in floppy_eject() 589 fs->disk_in = 1; in setup_medium() 605 fs->track = 0; in setup_medium() 607 fs->disk_in = 0; in setup_medium() 622 fs->ref_count++; in floppy_open() 628 if (fs->ejected) in floppy_open() 635 set_capacity(fs->disk, fs->total_secs); in floppy_open() 653 --fs->ref_count; in floppy_open() [all …]
|
/openbmc/linux/fs/ |
H A D | fs_struct.c | 23 fs->root = *path; in set_fs_root() 42 fs->pwd = *path; in set_fs_pwd() 67 fs = p->fs; in chroot_fs_refs() 68 if (fs) { in chroot_fs_refs() 97 struct fs_struct *fs = tsk->fs; in exit_fs() local 99 if (fs) { in exit_fs() 116 if (fs) { in copy_fs_struct() 117 fs->users = 1; in copy_fs_struct() 120 seqcount_spinlock_init(&fs->seq, &fs->lock); in copy_fs_struct() 130 return fs; in copy_fs_struct() [all …]
|
H A D | filesystems.c | 41 return fs; in get_filesystem() 78 !fs_validate_description(fs->name, fs->parameters)) in register_filesystem() 85 p = find_filesystem(fs->name, strlen(fs->name)); in register_filesystem() 89 *p = fs; in register_filesystem() 267 if (fs && !try_module_get(fs->owner)) in __get_fs_type() 268 fs = NULL; in __get_fs_type() 270 return fs; in __get_fs_type() 282 if (!fs) in get_fs_type() 287 if (dot && fs && !(fs->fs_flags & FS_HAS_SUBTYPE)) { in get_fs_type() 289 fs = NULL; in get_fs_type() [all …]
|
/openbmc/u-boot/fs/ext4/ |
H A D | ext4_write.c | 83 fs->blk_bmaps[i], fs->blksz); in ext4fs_update() 91 fs->inode_bmaps[i], fs->blksz); in ext4fs_update() 97 (fs->blksz * fs->no_blk_pergdt)); in ext4fs_update() 109 int gdsize_total = ROUND(fs->no_blkgrp * fs->gdsize, fs->blksz); in ext4fs_get_bgdtable() 110 fs->no_blk_pergdt = gdsize_total / fs->blksz; in ext4fs_get_bgdtable() 118 0, fs->blksz * fs->no_blk_pergdt, fs->gdtable); in ext4fs_get_bgdtable() 321 fs->sect_perblk, 0, fs->blksz, in delete_triple_indirect_block() 517 inodes_per_block = fs->blksz / fs->inodesz; in ext4fs_delete_file() 594 fs->sect_perblk = fs->blksz >> fs->dev_desc->log2blksz; in ext4fs_init() 625 fs->blk_bmaps[i] = zalloc(fs->blksz); in ext4fs_init() [all …]
|
H A D | ext4_journal.c | 59 if (fs->blksz == 4096) { in ext4fs_init_journal() 60 temp = zalloc(fs->blksz); in ext4fs_init_journal() 100 fs->blksz); in ext4fs_dump_metadata() 142 gd_table += fs->blksz; in ext4fs_log_gdt() 351 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, fs->blksz, in recover_transaction() 361 if (ofs > fs->blksz) in recover_transaction() 423 ext4fs_devread((lbaint_t)blknr * fs->sect_perblk, 0, fs->blksz, in ext4fs_check_journal_state() 471 if (ofs > fs->blksz) in ext4fs_check_journal_state() 570 ext4fs_devread((lbaint_t)jsb_blknr * fs->sect_perblk, 0, fs->blksz, in update_descriptor_block() 577 buf = zalloc(fs->blksz); in update_descriptor_block() [all …]
|
H A D | ext4_common.c | 51 return (struct ext2_block_group *)(fs->gdtable + (bg_idx * fs->gdsize)); in ext4fs_get_group_descriptor() 73 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_dec() 78 if (fs->gdsize == 64) in ext4fs_bg_free_inodes_dec() 983 fs->blk_bmaps[i], fs->blksz); in ext4fs_get_new_blk_no() 992 fs->curr_blkno = fs->curr_blkno + in ext4fs_get_new_blk_no() 1044 memcpy(fs->blk_bmaps[bg_idx], zero_buffer, fs->blksz); in ext4fs_get_new_blk_no() 1051 if (ext4fs_set_block_bmap(fs->curr_blkno, fs->blk_bmaps[bg_idx], in ext4fs_get_new_blk_no() 1126 fs->curr_inode_no = fs->curr_inode_no + in ext4fs_get_new_inode_no() 1163 fs->blksz); in ext4fs_get_new_inode_no() 1331 fs->blksz, in alloc_double_indirect_block() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/ |
H A D | en_fs.c | 451 if (!fs->vlan || fs->vlan->cvlan_filter_disabled) in mlx5e_disable_cvlan_filter() 1284 fs->inner_ttc = mlx5_create_inner_ttc_table(fs->mdev, in mlx5e_create_inner_ttc_table() 1383 fs->vlan = kvzalloc(sizeof(*fs->vlan), GFP_KERNEL); in mlx5e_fs_vlan_alloc() 1455 fs = kvzalloc(sizeof(*fs), GFP_KERNEL); in mlx5e_fs_init() 1456 if (!fs) in mlx5e_fs_init() 1479 return fs; in mlx5e_fs_init() 1485 kvfree(fs); in mlx5e_fs_init() 1492 if (!fs) in mlx5e_fs_cleanup() 1498 kvfree(fs); in mlx5e_fs_cleanup() 1508 return egress ? fs->egress_ns : fs->ns; in mlx5e_fs_get_ns() [all …]
|
H A D | en_fs_ethtool.c | 387 mask_spec(fs->m_ext.h_dest, fs->h_ext.h_dest, ETH_ALEN); in set_flow_attrs() 389 fs->h_ext.h_dest); in set_flow_attrs() 472 fs); in add_ethtool_flow_rule() 652 if (fs->m_ext.vlan_etype || in validate_vlan() 656 if (fs->m_ext.vlan_tci && in validate_vlan() 682 ret = validate_tcpudp4(fs); in validate_flow() 688 ret = validate_ip4(fs); in validate_flow() 695 ret = validate_tcpudp6(fs); in validate_flow() 701 ret = validate_ip6(fs); in validate_flow() 710 ret = validate_vlan(fs); in validate_flow() [all …]
|
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/ |
H A D | cxgb4_filter.c | 815 f->fs.eport, f->fs.dmac); in set_filter_wr() 1084 if (fs->val.pf && !fs->mask.pf) in fill_default_mask() 1086 if (fs->val.vf && !fs->mask.vf) in fill_default_mask() 1395 f->fs = *fs; in cxgb4_set_hash_filter() 1407 f->fs.eport, f->fs.dmac); in cxgb4_set_hash_filter() 1437 f->fs.val.ovlan = (fs->val.pf << 13) | fs->val.vf; in cxgb4_set_hash_filter() 1438 f->fs.mask.ovlan = (fs->mask.pf << 13) | fs->mask.vf; in cxgb4_set_hash_filter() 1678 f->fs = *fs; in __cxgb4_set_filter() 1684 f->fs.val.ovlan = (fs->val.pf << 13) | fs->val.vf; in __cxgb4_set_filter() 1685 f->fs.mask.ovlan = (fs->mask.pf << 13) | fs->mask.vf; in __cxgb4_set_filter() [all …]
|
H A D | cxgb4_tc_flower.c | 193 fs->type = 1; in cxgb4_process_flow_match() 205 fs->type = 0; in cxgb4_process_flow_match() 220 fs->type = 1; in cxgb4_process_flow_match() 247 fs->nat_lport = fs->val.lport; in cxgb4_process_flow_match() 248 fs->nat_fport = fs->val.fport; in cxgb4_process_flow_match() 873 fs->hash = is_filter_exact_match(adap, fs); in cxgb4_flow_rule_replace() 889 fs->prio = 1; in cxgb4_flow_rule_replace() 896 if (fs->hash) in cxgb4_flow_rule_replace() 920 if (fs->hash) in cxgb4_flow_rule_replace() 942 fs = &ch_flower->fs; in cxgb4_tc_flower_replace() [all …]
|
/openbmc/linux/drivers/net/ethernet/mellanox/mlx5/core/en/ |
H A D | fs.h | 103 int mlx5e_arfs_enable(struct mlx5e_flow_steering *fs); 104 int mlx5e_arfs_disable(struct mlx5e_flow_steering *fs); 127 void mlx5e_set_ttc_params(struct mlx5e_flow_steering *fs, 132 int mlx5e_create_ttc_table(struct mlx5e_flow_steering *fs, 151 void mlx5e_fs_cleanup(struct mlx5e_flow_steering *fs); 196 #define fs_err(fs, fmt, ...) \ argument 197 mlx5_core_err(mlx5e_fs_get_mdev(fs), fmt, ##__VA_ARGS__) 199 #define fs_dbg(fs, fmt, ...) \ argument 200 mlx5_core_dbg(mlx5e_fs_get_mdev(fs), fmt, ##__VA_ARGS__) 202 #define fs_warn(fs, fmt, ...) \ argument [all …]
|
/openbmc/phosphor-power/test/ |
H A D | temporary_subdirectory_tests.cpp | 26 namespace fs = std::filesystem; 143 fs::permissions(path2, fs::perms::none); in TEST() 157 fs::permissions(path2, fs::perms::owner_all); in TEST() 173 fs::path path{}; in TEST() 184 fs::path path{}; in TEST() 197 fs::path path{}; in TEST() 205 fs::permissions(path, fs::perms::none); in TEST() 213 fs::permissions(path, fs::perms::owner_all); in TEST() 219 fs::remove_all(path); in TEST() 259 fs::permissions(path, fs::perms::none); in TEST() [all …]
|
H A D | temporary_file_tests.cpp | 26 namespace fs = std::filesystem; 39 fs::rename(path, savePath); in makeFileUnRemovable() 42 fs::create_directory(path); in makeFileUnRemovable() 60 fs::remove_all(path); in makeFileRemovable() 64 fs::rename(savePath, path); in makeFileRemovable() 71 fs::path path = file.getPath(); in TEST() 73 EXPECT_TRUE(fs::exists(path)); in TEST() 212 fs::path path{}; in TEST() 223 fs::path path{}; in TEST() 236 fs::path path{}; in TEST() [all …]
|
/openbmc/qemu/hw/virtio/ |
H A D | vhost-user-fs.c | 203 if (!fs->conf.tag) { in vuf_device_realize() 234 if (!vhost_user_init(&fs->vhost_user, &fs->conf.chardev, errp)) { in vuf_device_realize() 241 fs->hiprio_vq = virtio_add_queue(vdev, fs->conf.queue_size, vuf_handle_output); in vuf_device_realize() 244 fs->req_vqs = g_new(VirtQueue *, fs->conf.num_request_queues); in vuf_device_realize() 246 fs->req_vqs[i] = virtio_add_queue(vdev, fs->conf.queue_size, vuf_handle_output); in vuf_device_realize() 250 fs->vhost_dev.nvqs = 1 + fs->conf.num_request_queues; in vuf_device_realize() 251 fs->vhost_dev.vqs = g_new0(struct vhost_virtqueue, fs->vhost_dev.nvqs); in vuf_device_realize() 252 ret = vhost_dev_init(&fs->vhost_dev, &fs->vhost_user, in vuf_device_realize() 266 g_free(fs->req_vqs); in vuf_device_realize() 290 g_free(fs->req_vqs); in vuf_device_unrealize() [all …]
|
/openbmc/phosphor-logging/test/openpower-pels/ |
H A D | temporary_file_test.cpp | 26 namespace fs = std::filesystem; 39 fs::remove_all(path); in makeFileRemovable() 43 fs::rename(savePath, path); in makeFileRemovable() 57 fs::rename(path, savePath); in makeFileUnRemovable() 60 fs::create_directory(path); in makeFileUnRemovable() 102 EXPECT_TRUE(fs::exists(path)); in TEST_F() 253 fs::path path{}; in TEST_F() 260 fs::remove(path); in TEST_F() 265 fs::path path{}; in TEST_F() 278 fs::path path{}; in TEST_F() [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 104 static const char *fs__mount(struct fs *fs); 116 struct fs *fs = &fs__##lower_name; \ 124 struct fs *fs = &fs__##lower_name; \ 133 struct fs *fs = &fs__##lower_name; \ 153 static bool fs__read_mounts(struct fs *fs) in fs__read_mounts() argument 188 static bool fs__check_mounts(struct fs *fs) in fs__check_mounts() argument 220 static bool fs__env_override(struct fs *fs) in fs__env_override() argument 241 static void fs__init_once(struct fs *fs) in fs__init_once() argument [all …]
|
/openbmc/qemu/hw/audio/ |
H A D | asc.c | 119 ASCState *s = container_of(fs, ASCState, fifos[fs->index]); 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() 130 fs->cnt--; in asc_fifo_get() 183 fs->xa_flags = asc_fifo_get(fs); in generate_fifo() 200 fs->xa_val = asc_fifo_get(fs); in generate_fifo() 222 fs->xa_last[1] = fs->xa_last[0]; in generate_fifo() 378 ASCState *s = container_of(fs, ASCState, fifos[fs->index]); in asc_fifo_write() 381 trace_asc_write_fifo('A' + fs->index, addr, size, fs->wptr, fs->cnt, value); in asc_fifo_write() [all …]
|
/openbmc/linux/drivers/clk/st/ |
H A D | clkgen-fsyn.c | 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() 552 CLKGEN_WRITE(fs, en[fs->chan], 0); in quadfs_fsynth_program_rate() 554 CLKGEN_WRITE(fs, mdiv[fs->chan], fs->md); in quadfs_fsynth_program_rate() 555 CLKGEN_WRITE(fs, pe[fs->chan], fs->pe); in quadfs_fsynth_program_rate() 556 CLKGEN_WRITE(fs, sdiv[fs->chan], fs->sdiv); in quadfs_fsynth_program_rate() 562 CLKGEN_WRITE(fs, nsdiv[fs->chan], fs->nsdiv); in quadfs_fsynth_program_rate() 580 CLKGEN_WRITE(fs, nsb[fs->chan], !fs->data->standby_polarity); in quadfs_fsynth_enable() 583 CLKGEN_WRITE(fs, nrst[fs->chan], 0); in quadfs_fsynth_enable() 603 CLKGEN_WRITE(fs, nsb[fs->chan], fs->data->standby_polarity); in quadfs_fsynth_disable() [all …]
|
/openbmc/linux/Documentation/filesystems/ |
H A D | api-summary.rst | 20 .. kernel-doc:: fs/dcache.c 29 .. kernel-doc:: fs/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 71 .. kernel-doc:: fs/fs-writeback.c 77 .. kernel-doc:: fs/attr.c 83 .. kernel-doc:: fs/dax.c [all …]
|
/openbmc/qemu/target/mips/tcg/ |
H A D | lmmi_helper.c | 61 vs.d = fs; in helper_paddsb() 75 vs.d = fs; in helper_paddusb() 89 vs.d = fs; in helper_paddsh() 103 vs.d = fs; in helper_paddush() 117 vs.d = fs; in helper_paddb() 130 vs.d = fs; in helper_paddh() 143 vs.d = fs; in helper_paddw() 156 vs.d = fs; in helper_psubsb() 170 vs.d = fs; in helper_psubusb() 184 vs.d = fs; in helper_psubsh() [all …]
|
/openbmc/linux/include/math-emu/ |
H A D | op-common.h | 41 _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_IMPLBIT_##fs; \ 68 case _FP_EXPMAX_##fs: \ 75 if (!(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \ 122 X##_e = _FP_EXPMAX_##fs; \ 151 if (_FP_FRAC_HIGH_##fs(X) \ 198 X##_s = _FP_NANSIGN_##fs; \ 201 _FP_FRAC_HIGH_RAW_##fs(X) |= _FP_QNANBIT_##fs; \ 215 && !(_FP_FRAC_HIGH_RAW_##fs(X) & _FP_QNANBIT_##fs)) \ 369 #define _FP_ADD(fs, wc, R, X, Y) _FP_ADD_INTERNAL(fs, wc, R, X, Y, '+') argument 758 _FP_WFRACBITS_##fs); \ [all …]
|
/openbmc/phosphor-bmc-code-mgmt/ |
H A D | image_verify.cpp | 125 fs::path pkeyFullFile(tmpFullFile); in verifyFullImage() 137 fs::remove(tmpFullFile, ec); in verifyFullImage() 195 if (fs::exists(file, ec)) in verify() 199 fs::path sigFile(file); in verify() 255 fs::path pkeyFileSig(pkeyFile); in systemLevelVerify() 300 bool Signature::verifyFile(const fs::path& file, const fs::path& sigFile, in verifyFile() 306 if (!(fs::exists(file, ec) && fs::exists(sigFile, ec))) in verifyFile() 362 size = fs::file_size(sigFile, ec); in verifyFile() 423 fs::path file(filePath); in checkAndVerifyImage() 427 if (!fs::exists(file, ec)) in checkAndVerifyImage() [all …]
|
/openbmc/qemu/hw/intc/ |
H A D | etraxfs_pic.c | 60 fs->regs[R_R_MASKED_VECT] = fs->regs[R_R_VECT] & fs->regs[R_RW_MASK]; in pic_update() 66 if (fs->regs[R_R_MASKED_VECT]) { in pic_update() 86 struct etrax_pic *fs = opaque; in pic_read() local 89 rval = fs->regs[addr >> 2]; in pic_read() 97 struct etrax_pic *fs = opaque; in pic_write() local 101 fs->regs[R_RW_MASK] = value; in pic_write() 102 pic_update(fs); in pic_write() 123 fs->regs[R_R_NMI] |= mask; in nmi_handler() 125 fs->regs[R_R_NMI] &= ~mask; in nmi_handler() 127 qemu_set_irq(fs->parent_nmi, !!fs->regs[R_R_NMI]); in nmi_handler() [all …]
|
/openbmc/phosphor-hwmon/ |
H A D | sysfs.cpp | 29 namespace fs = std::filesystem; 49 fs::path ioChannelsPath{iochanneldir}; in findPhandleMatch() 52 if (!fs::exists(ioChannelsPath)) in findPhandleMatch() 89 fs::path devPath{instancePath}; in findCalloutPath() 102 fs::path p{devPath}; in findCalloutPath() 104 p = fs::canonical(p); in findCalloutPath() 114 fs::path ofDevPath{devPath}; in findCalloutPath() 137 p = fs::canonical(p); in findCalloutPath() 168 auto fullOfPath = fs::path(ofRoot) / fs::path(ofNode).relative_path(); in findHwmonFromOFPath() 177 path = fs::canonical(path); in findHwmonFromOFPath() [all …]
|