Home
last modified time | relevance | path

Searched refs:sb (Results 1 – 25 of 34) sorted by relevance

12

/Zephyr-Core-3.6.0/subsys/fs/ext2/
Dext2_format.c207 struct ext2_disk_superblock *sb = in ext2_format() local
210 memset(sb, 0, 1024); in ext2_format()
211 sb->s_inodes_count = sys_cpu_to_le32(inodes_count); in ext2_format()
212 sb->s_blocks_count = sys_cpu_to_le32(blocks_count); in ext2_format()
213 sb->s_r_blocks_count = sys_cpu_to_le32(0); in ext2_format()
214 sb->s_free_blocks_count = sys_cpu_to_le32(free_blocks); in ext2_format()
215 sb->s_free_inodes_count = sys_cpu_to_le32(inodes_count - used_inodes); in ext2_format()
216 sb->s_first_data_block = sys_cpu_to_le32(first_data_block); in ext2_format()
217 sb->s_log_block_size = sys_cpu_to_le32(block_log_size); in ext2_format()
218 sb->s_log_frag_size = sys_cpu_to_le32(block_log_size); in ext2_format()
[all …]
Dext2_diskops.c32 static void fill_sblock(struct ext2_superblock *sb, struct ext2_disk_superblock *disk_sb) in fill_sblock() argument
34 sb->s_inodes_count = sys_le32_to_cpu(disk_sb->s_inodes_count); in fill_sblock()
35 sb->s_blocks_count = sys_le32_to_cpu(disk_sb->s_blocks_count); in fill_sblock()
36 sb->s_free_blocks_count = sys_le32_to_cpu(disk_sb->s_free_blocks_count); in fill_sblock()
37 sb->s_free_inodes_count = sys_le32_to_cpu(disk_sb->s_free_inodes_count); in fill_sblock()
38 sb->s_first_data_block = sys_le32_to_cpu(disk_sb->s_first_data_block); in fill_sblock()
39 sb->s_log_block_size = sys_le32_to_cpu(disk_sb->s_log_block_size); in fill_sblock()
40 sb->s_log_frag_size = sys_le32_to_cpu(disk_sb->s_log_frag_size); in fill_sblock()
41 sb->s_blocks_per_group = sys_le32_to_cpu(disk_sb->s_blocks_per_group); in fill_sblock()
42 sb->s_frags_per_group = sys_le32_to_cpu(disk_sb->s_frags_per_group); in fill_sblock()
[all …]
Dext2_impl.c233 int ext2_verify_disk_superblock(struct ext2_disk_superblock *sb) in ext2_verify_disk_superblock() argument
236 if (sys_le16_to_cpu(sb->s_magic) != EXT2_MAGIC_NUMBER) { in ext2_verify_disk_superblock()
237 LOG_ERR("Wrong file system magic number (%x)", sb->s_magic); in ext2_verify_disk_superblock()
242 if (sys_le32_to_cpu(sb->s_log_block_size) != sb->s_log_frag_size) { in ext2_verify_disk_superblock()
248 if (sys_le32_to_cpu(sb->s_rev_level) != EXT2_DYNAMIC_REV) { in ext2_verify_disk_superblock()
249 LOG_ERR("Filesystem with revision %d is not supported", sb->s_rev_level); in ext2_verify_disk_superblock()
253 if (sys_le16_to_cpu(sb->s_inode_size) != EXT2_GOOD_OLD_INODE_SIZE) { in ext2_verify_disk_superblock()
254 LOG_ERR("Filesystem with inode size %d is not supported", sb->s_inode_size); in ext2_verify_disk_superblock()
259 if (sys_le16_to_cpu(sb->s_state) == EXT2_ERROR_FS) { in ext2_verify_disk_superblock()
261 switch (sys_le16_to_cpu(sb->s_errors)) { in ext2_verify_disk_superblock()
[all …]
Dext2_disk_access.c117 static int disk_access_read_superblock(struct ext2_data *fs, struct ext2_disk_superblock *sb) in disk_access_read_superblock() argument
128 return disk_read(disk->name, (uint8_t *)sb, sector_start, sector_count); in disk_access_read_superblock()
Dext2_impl.h83 int ext2_verify_disk_superblock(struct ext2_disk_superblock *sb);
Dext2_struct.h223 int (*read_superblock)(struct ext2_data *fs, struct ext2_disk_superblock *sb);
/Zephyr-Core-3.6.0/soc/arm/microchip_mec/common/spigen/
Dmec_spi_gen.py442 for sb in spi_bufs:
443 … print("buf[{0}]: {1} location=0x{2:0x} length=0x{3:0x}".format(i, sb[0], sb[1], len(sb[2])))
452 for sb in spi_bufs:
454 print("sb: {0} location=0x{1:0x} len=0x{2:0x}".format(sb[0], sb[1], len(sb[2])))
455 if loc < sb[1]:
456 fill_len = sb[1] - loc
467 print("loc = 0x{0:0x}: write {1} len=0x{2:0x}".format(loc, sb[0], len(sb[2])))
468 fout.write(sb[2])
469 loc = loc + len(sb[2])
/Zephyr-Core-3.6.0/samples/boards/mec172xevb_assy6906/qmspi_ldma/src/
Dmain.c370 static struct spi_buf sb[NUM_ASYNC_SPI_BUFS]; variable
404 sb[cnt].buf = spi_async_txbuf; in spi_flash_read_fd_async()
405 sb[cnt++].len = param_len + 1; in spi_flash_read_fd_async()
408 sb[cnt].buf = NULL; /* 8 clocks with output tri-stated */ in spi_flash_read_fd_async()
409 sb[cnt++].len = 1; in spi_flash_read_fd_async()
412 sb[cnt].buf = data; in spi_flash_read_fd_async()
413 sb[cnt++].len = datasz; in spi_flash_read_fd_async()
415 txbs.buffers = &sb[0]; in spi_flash_read_fd_async()
418 rxbs.buffers = &sb[0]; in spi_flash_read_fd_async()
453 memset(sb, 0, sizeof(sb)); in main()
/Zephyr-Core-3.6.0/soc/riscv/ite_ec/common/
Dvector.S45 sb t1, 0(t0)
/Zephyr-Core-3.6.0/drivers/serial/
Duart_numicro.c52 static inline int32_t uart_numicro_convert_stopbit(enum uart_config_stop_bits sb) in uart_numicro_convert_stopbit() argument
54 switch (sb) { in uart_numicro_convert_stopbit()
Duart_numaker.c95 static inline int32_t uart_numaker_convert_stopbit(enum uart_config_stop_bits sb) in uart_numaker_convert_stopbit() argument
97 switch (sb) { in uart_numaker_convert_stopbit()
Duart_stm32.c317 enum uart_config_stop_bits sb) in uart_stm32_cfg2ll_stopbits() argument
319 switch (sb) { in uart_stm32_cfg2ll_stopbits()
350 static inline enum uart_config_stop_bits uart_stm32_ll2cfg_stopbits(uint32_t sb) in uart_stm32_ll2cfg_stopbits() argument
352 switch (sb) { in uart_stm32_ll2cfg_stopbits()
/Zephyr-Core-3.6.0/arch/riscv/core/
Disr.S147 sb zero, %tprel_lo(is_user_mode)(t0)
272 sb t1, _thread_offset_to_exception_depth(t0)
645 sb t1, _thread_offset_to_exception_depth(t0)
675 sb t1, %tprel_lo(is_user_mode)(t0)
/Zephyr-Core-3.6.0/samples/boards/intel_adsp/code_relocation/
Dlinker_xtensa_intel_adsp_cavs.ld65 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/xtensa/nxp_adsp/rt5xx/
Dlinker.ld374 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/riscv/espressif_esp32/esp32c3/
Dmcuboot.ld170 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/xtensa/nxp_adsp/imx8/
Dlinker.ld419 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/xtensa/nxp_adsp/imx8m/
Dlinker.ld430 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/xtensa/nxp_adsp/imx8ulp/
Dlinker.ld419 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/xtensa/espressif_esp32/esp32/
Dmcuboot.ld274 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/xtensa/espressif_esp32/esp32s2/
Dmcuboot.ld277 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/xtensa/espressif_esp32/esp32s3/
Dmcuboot.ld273 *(.gnu.linkonce.sb.*)
Ddefault_appcpu.ld274 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/xtensa/intel_adsp/ace/
Dace-link.ld376 *(.gnu.linkonce.sb.*)
/Zephyr-Core-3.6.0/soc/xtensa/sample_controller/include/
Dxtensa-sample-controller.ld577 *(.gnu.linkonce.sb.*)

12