| /openbmc/u-boot/fs/btrfs/ |
| H A D | super.c | 24 static int btrfs_check_super_roots(struct btrfs_super_block *sb) in btrfs_check_super_roots() argument 31 root_backup = sb->super_roots + i; in btrfs_check_super_roots() 36 if (root_backup->tree_root_gen == sb->generation) in btrfs_check_super_roots() 78 static int btrfs_check_super(struct btrfs_super_block *sb) in btrfs_check_super() argument 82 if (sb->flags & ~BTRFS_SUPER_FLAG_SUPP) { in btrfs_check_super() 84 sb->flags & ~BTRFS_SUPER_FLAG_SUPP); in btrfs_check_super() 87 if (sb->root_level > BTRFS_MAX_LEVEL) { in btrfs_check_super() 89 sb->root_level, BTRFS_MAX_LEVEL); in btrfs_check_super() 93 if (sb->chunk_root_level > BTRFS_MAX_LEVEL) { in btrfs_check_super() 95 sb->chunk_root_level, BTRFS_MAX_LEVEL); in btrfs_check_super() [all …]
|
| H A D | btrfs.c | 45 (u64) btrfs_info.sb.sectorsize)); in readdir_callback() 94 btrfs_info.tree_root.bytenr = btrfs_info.sb.root; in btrfs_probe() 96 btrfs_info.chunk_root.bytenr = btrfs_info.sb.chunk_root; in btrfs_probe() 218 uuid_bin_to_str(btrfs_info.sb.fsid, uuid_str, UUID_STR_FORMAT_STD); in btrfs_uuid()
|
| H A D | chunk-map.c | 108 u8 sys_chunk_array_copy[sizeof(btrfs_info.sb.sys_chunk_array)]; in btrfs_chunk_map_init() 110 u8 * const end = start + btrfs_info.sb.sys_chunk_array_size; in btrfs_chunk_map_init() 117 memcpy(sys_chunk_array_copy, btrfs_info.sb.sys_chunk_array, in btrfs_chunk_map_init()
|
| /openbmc/u-boot/arch/x86/cpu/tangier/ |
| H A D | sdram.c | 56 struct sfi_table_simple *sb; in sfi_get_table_by_sig() local 60 sb = (struct sfi_table_simple *)(addr + i); in sfi_get_table_by_sig() 61 if (sfi_table_is_type(&sb->header, signature)) in sfi_get_table_by_sig() 62 return sb; in sfi_get_table_by_sig() 71 struct sfi_table_simple *sb; in sfi_search_mmap() local 76 sb = sfi_get_table_by_sig(SFI_BASE_ADDR, SFI_SIG_SYST); in sfi_search_mmap() 77 if (!sb) { in sfi_search_mmap() 82 sys_entry_cnt = (sb->header.len - sizeof(*sbh)) / 8; in sfi_search_mmap() 86 sbh = (struct sfi_table_header *)(unsigned long)sb->pentry[i]; in sfi_search_mmap() 96 #define sfi_for_each_mentry(i, sb, mentry) \ argument [all …]
|
| /openbmc/pldm/oem/meta/libpldmresponder/ |
| H A D | file_io_type_http_boot.cpp | 31 struct stat sb; in read() local 46 if (fstat(fd, &sb) == -1) in read() 65 if (sb.st_size == 0) in read() 73 uint8_t* buffer = (uint8_t*)malloc(sb.st_size); in read() 78 "LENGTH", sb.st_size); in read() 83 int ret = ::read(fd, buffer, sb.st_size); in read() 92 uint32_t checksum = pldm_edac_crc32(buffer, sb.st_size); in read() 95 data->info.attr.size = sb.st_size; in read() 103 if (sb.st_size == 0) in read() 125 if (offset + data->length >= sb.st_size) in read() [all …]
|
| /openbmc/u-boot/drivers/dfu/ |
| H A D | dfu_tftp.c | 15 char *s, *sb; in dfu_tftp_write() local 33 sb = s; in dfu_tftp_write() 40 debug("%s: image name: %s strlen: %zd\n", __func__, sb, strlen(sb)); in dfu_tftp_write() 42 alt_setting_num = dfu_get_alt(sb); in dfu_tftp_write() 43 free(sb); in dfu_tftp_write()
|
| /openbmc/ipmitool/src/plugins/bmc/ |
| H A D | bmc.c | 182 struct strbuf sb; in ipmi_bmc_send_cmd_putmsg() local 209 sb.len = msgsz; in ipmi_bmc_send_cmd_putmsg() 210 sb.buf = (unsigned char *)msg; in ipmi_bmc_send_cmd_putmsg() 218 if (putmsg(intf->fd, NULL, &sb, 0) < 0) { in ipmi_bmc_send_cmd_putmsg() 228 sb.buf = malloc(MESSAGE_BUFSIZE); in ipmi_bmc_send_cmd_putmsg() 229 sb.maxlen = MESSAGE_BUFSIZE; in ipmi_bmc_send_cmd_putmsg() 231 if (getmsg(intf->fd, NULL, &sb, &flags) < 0) { in ipmi_bmc_send_cmd_putmsg() 233 free(sb.buf); in ipmi_bmc_send_cmd_putmsg() 234 sb.buf = NULL; in ipmi_bmc_send_cmd_putmsg() 238 msg = (bmc_msg_t *)sb.buf; in ipmi_bmc_send_cmd_putmsg() [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-oe/recipes-multimedia/libmad/libmad/ |
| H A D | CVE-2017-8374.patch | 127 unsigned int nch, bound, ch, s, sb, nb; 150 for (sb = 0; sb < bound; ++sb) { 163 for (sb = bound; sb < 32; ++sb) { 173 for (sb = 0; sb < 32; ++sb) { 175 if (allocation[ch][sb]) { 181 scalefactor[ch][sb] = mad_bit_read(&stream->ptr, 6); 186 nb = allocation[ch][sb]; 187 frame->sbsample[ch][s][sb] = nb ? 190 sf_table[scalefactor[ch][sb]]) : 0; 197 if ((nb = allocation[0][sb])) { [all …]
|
| /openbmc/openbmc/meta-openembedded/meta-initramfs/recipes-devtools/mtd/ubi-utils-klibc-2.0.2/ |
| H A D | 0002-Instead-of-doing-preprocessor-magic-just-output-off_.patch | 77 } else switch (e->sb.st_mode & S_IFMT) { 81 - e->sb.st_mode & ~S_IFMT, e->sb.st_size, 83 + e->sb.st_mode & ~S_IFMT, (long long)e->sb.st_size, 84 (int) (e->sb.st_uid), (int) (e->sb.st_gid), 92 - e->sb.st_mode & ~S_IFMT, e->sb.st_size, 94 + e->sb.st_mode & ~S_IFMT, (long long)e->sb.st_size, 95 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name); 103 - e->sb.st_mode & ~S_IFMT, e->sb.st_size, 105 + e->sb.st_mode & ~S_IFMT, (long long)e->sb.st_size, 106 (int) e->sb.st_uid, (int) e->sb.st_gid, e->name); [all …]
|
| /openbmc/openbmc/poky/meta/recipes-devtools/syslinux/syslinux/ |
| H A D | 0009-linux-syslinux-implement-install_bootblock.patch | 25 + struct ext2_super_block sb; 27 + if (xpread(fd, &sb, sizeof sb, EXT2_SUPER_OFFSET + opt.offset) != sizeof sb) { 32 + if (sb.s_magic != EXT2_SUPER_MAGIC) {
|
| /openbmc/qemu/hw/display/ |
| H A D | dm163.c | 91 uint64_t *sb = in dm163_dck_gpio_handler() local 94 const bool sout = (s->selbk ? sb[2] & MAKE_64BIT_MASK(63, 1) : in dm163_dck_gpio_handler() 95 sb[2] & MAKE_64BIT_MASK(15, 1)) != 0; in dm163_dck_gpio_handler() 98 sb[2] = (sb[2] << 1) | ((sb[1] >> 63) & 1); in dm163_dck_gpio_handler() 99 sb[1] = (sb[1] << 1) | ((sb[0] >> 63) & 1); in dm163_dck_gpio_handler() 100 sb[0] = (sb[0] << 1) | s->sin; in dm163_dck_gpio_handler()
|
| /openbmc/u-boot/fs/ubifs/ |
| H A D | gc.c | 119 struct ubifs_scan_node *sa, *sb; in data_nodes_cmp() local 126 sb = list_entry(b, struct ubifs_scan_node, list); in data_nodes_cmp() 129 ubifs_assert(key_type(c, &sb->key) == UBIFS_DATA_KEY); in data_nodes_cmp() 131 ubifs_assert(sb->type == UBIFS_DATA_NODE); in data_nodes_cmp() 134 inumb = key_inum(c, &sb->key); in data_nodes_cmp() 138 unsigned int blkb = key_block(c, &sb->key); in data_nodes_cmp() 163 struct ubifs_scan_node *sa, *sb; in nondata_nodes_cmp() local 170 sb = list_entry(b, struct ubifs_scan_node, list); in nondata_nodes_cmp() 173 key_type(c, &sb->key) != UBIFS_DATA_KEY); in nondata_nodes_cmp() 175 sb->type != UBIFS_DATA_NODE); in nondata_nodes_cmp() [all …]
|
| H A D | super.c | 58 struct inode *iget_locked(struct super_block *sb, unsigned long ino) in iget_locked() argument 66 inode->i_sb = sb; in iget_locked() 67 list_add(&inode->i_sb_list, &sb->s_inodes); in iget_locked() 238 struct inode *ubifs_iget(struct super_block *sb, unsigned long inum) in ubifs_iget() argument 243 struct ubifs_info *c = sb->s_fs_info; in ubifs_iget() 275 inode = iget_locked(sb, inum); in ubifs_iget() 439 static struct inode *ubifs_alloc_inode(struct super_block *sb) in ubifs_alloc_inode() argument 631 static int ubifs_sync_fs(struct super_block *sb, int wait) in ubifs_sync_fs() argument 634 struct ubifs_info *c = sb->s_fs_info; in ubifs_sync_fs() 1229 struct super_block *sb = c->vfs_sb; in ubifs_parse_options() local [all …]
|
| /openbmc/u-boot/fs/ext4/ |
| H A D | ext4_write.c | 30 static inline void ext4fs_sb_free_inodes_inc(struct ext2_sblock *sb) in ext4fs_sb_free_inodes_inc() argument 32 sb->free_inodes = cpu_to_le32(le32_to_cpu(sb->free_inodes) + 1); in ext4fs_sb_free_inodes_inc() 35 static inline void ext4fs_sb_free_blocks_inc(struct ext2_sblock *sb) in ext4fs_sb_free_blocks_inc() argument 37 sb->free_blocks = cpu_to_le32(le32_to_cpu(sb->free_blocks) + 1); in ext4fs_sb_free_blocks_inc() 75 (struct ext2_sblock *)fs->sb, (uint32_t)SUPERBLOCK_SIZE); in ext4fs_update() 165 ext4fs_sb_free_blocks_inc(fs->sb); in delete_single_indirect_block() 229 ext4fs_sb_free_blocks_inc(fs->sb); in delete_double_indirect_block() 260 ext4fs_sb_free_blocks_inc(fs->sb); in delete_double_indirect_block() 341 ext4fs_sb_free_blocks_inc(fs->sb); in delete_triple_indirect_block() 381 ext4fs_sb_free_blocks_inc(fs->sb); in delete_triple_indirect_block() [all …]
|
| H A D | ext4_common.h | 84 uint64_t ext4fs_sb_get_free_blocks(const struct ext2_sblock *sb); 85 void ext4fs_sb_set_free_blocks(struct ext2_sblock *sb, uint64_t free_blocks);
|
| H A D | ext4_journal.c | 67 memcpy(temp + SUPERBLOCK_SIZE, fs->sb, SUPERBLOCK_SIZE); in ext4fs_init_journal() 75 memcpy(journal_ptr[gindex]->buf, fs->sb, SUPERBLOCK_SIZE); in ext4fs_init_journal() 427 if (le32_to_cpu(fs->sb->feature_incompat) & EXT3_FEATURE_INCOMPAT_RECOVER) { in ext4fs_check_journal_state() 528 ext4_read_superblock((char *)fs->sb); in ext4fs_check_journal_state() 529 new_feature_incompat = le32_to_cpu(fs->sb->feature_incompat); in ext4fs_check_journal_state() 531 fs->sb->feature_incompat = cpu_to_le32(new_feature_incompat); in ext4fs_check_journal_state() 535 (struct ext2_sblock *)fs->sb, in ext4fs_check_journal_state() 537 ext4_read_superblock((char *)fs->sb); in ext4fs_check_journal_state()
|
| /openbmc/openbmc/poky/meta/recipes-devtools/makedevs/makedevs/ |
| H A D | makedevs.c | 259 struct stat sb; in add_new_device() local 266 memset(&sb, 0, sizeof(struct stat)); in add_new_device() 267 status = lstat(path, &sb); in add_new_device() 272 if ((mode & S_IFMT) != (sb.st_mode & S_IFMT)) { in add_new_device() 276 path, (sb.st_mode & S_IFMT), (mode & S_IFMT)); in add_new_device() 278 if (mode != sb.st_mode) { in add_new_device() 280 …fprintf(stderr, " -- applying new mode 04%lo (old was 04%o)\n", mode & ~S_IFMT, sb.st_mode & ~S_IF… in add_new_device() 327 struct stat sb; in add_new_fifo() local 329 memset(&sb, 0, sizeof(struct stat)); in add_new_fifo() 330 status = stat(path, &sb); in add_new_fifo() [all …]
|
| /openbmc/pldm/oem/ibm/libpldmresponder/ |
| H A D | file_io_type_pcie.cpp | 192 struct stat sb; in parseTopologyData() local 193 if (fstat(fd, &sb) == -1) in parseTopologyData() 199 if (sb.st_size == 0) in parseTopologyData() 205 auto topologyCleanup = [sb](void* fileInMemory) { in parseTopologyData() 206 munmap(fileInMemory, sb.st_size); in parseTopologyData() 211 mmap(nullptr, sb.st_size, PROT_READ, MAP_PRIVATE, topologyFd(), 0); in parseTopologyData() 433 struct stat sb; in parseCableInfo() local 435 if (fstat(fd, &sb) == -1) in parseCableInfo() 441 if (sb.st_size == 0) in parseCableInfo() 447 auto cableInfoCleanup = [sb](void* fileInMemory) { in parseCableInfo() [all …]
|
| /openbmc/openbmc-tools/adcapp/src/ |
| H A D | adcifc.c | 31 struct stat sb; in adc_directory_check() local 32 if (!(stat(path, &sb) == 0 && S_ISDIR(sb.st_mode))) { in adc_directory_check()
|
| /openbmc/u-boot/arch/arm/cpu/arm926ejs/mxs/ |
| H A D | Makefile | 75 MKIMAGEFLAGS_u-boot.sb = -n $< -T mxsimage 76 u-boot.sb: $(src)/$(MKIMAGE_TARGET-y) u-boot.bin spl/u-boot-spl.bin FORCE 79 MKIMAGEFLAGS_u-boot-signed.sb = -n $< -T mxsimage 80 u-boot-signed.sb: $(src)/mxsimage-signed.cfg u-boot.ivt u-boot.sig spl/u-boot-spl.ivt spl/u-boot-sp…
|
| /openbmc/qemu/hw/uefi/ |
| H A D | var-service-auth.c | 31 static void set_secure_boot(uefi_vars_state *uv, uint8_t sb) in set_secure_boot() argument 37 &sb, sizeof(sb)); in set_secure_boot() 302 uint8_t platform_mode, sb, sbe, vk; in uefi_vars_auth_init() local 337 sb = SECURE_BOOT_MODE_ENABLE; in uefi_vars_auth_init() 339 sb = SECURE_BOOT_MODE_DISABLE; in uefi_vars_auth_init() 341 set_secure_boot(uv, sb); in uefi_vars_auth_init()
|
| /openbmc/u-boot/drivers/w1-eeprom/ |
| H A D | ds2502.c | 139 u8 sb = status[page + 1]; in ds2502_indirect_page() local 141 if (sb == 0xff) in ds2502_indirect_page() 144 page = ~sb & 0xff; in ds2502_indirect_page() 149 sb); in ds2502_indirect_page()
|
| /openbmc/u-boot/fs/cramfs/ |
| H A D | cramfs.c | 373 struct cramfs_super *sb; in cramfs_check() local 378 sb = (struct cramfs_super *) PART_OFFSET(info); in cramfs_check() 379 if (sb->magic != CRAMFS_32 (CRAMFS_MAGIC)) { in cramfs_check() 381 sb = (struct cramfs_super *) (PART_OFFSET(info) + 512); in cramfs_check() 382 if (sb->magic != CRAMFS_32 (CRAMFS_MAGIC)) in cramfs_check()
|
| /openbmc/u-boot/doc/imx/common/ |
| H A D | mxs.txt | 118 $ make u-boot.sb 123 The code produces "u-boot.sb" file. This file needs to be augmented with a 127 NOTE: The process that produces u-boot.sb uses the mkimage to generate the 135 -o u-boot.sb 137 -o u-boot.sb 175 $ ./tools/mxsboot sd u-boot.sb u-boot.sd 201 is invoked on "u-boot.sb" file from chapter 2): 203 $ ./tools/mxsboot nand u-boot.sb u-boot.nand 244 "u-boot.sb" in it's root directory. This can be changed by 270 The u-boot.sb file can be directly written to SPI NOR from U-Boot prompt. [all …]
|
| /openbmc/openbmc/poky/meta/recipes-bsp/lrzsz/ |
| H A D | lrzsz_0.12.20.bb | 4 These programs use error correcting protocols ({z,x,y}modem) to send (sz, sx, sb) and \ 39 ALTERNATIVE:${PN} = "rz rx rb sz sx sb" 47 ALTERNATIVE_TARGET[sb] = "${bindir}/lsz"
|