ESP-IDF
spiffs_t::work
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
spiffs_t::work
spiffs_t::work field
Syntax
Show:
Summary
Declaration
from
spiffs.h:249
u8_t
*
work
;
Examples
References
from
examples
Code
Location
Referrer
u8_t
*
work
;
spiffs.h:249
memset
(
fs
->
work
,
0
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
)
;
spiffs_check.c:533
spiffs_page_consistency_check_i()
fs
->
work
[
pix_byte_ix
]
|=
(
1
<
<
(
pix_bit_ix
+
0
)
)
;
spiffs_check.c:562
spiffs_page_consistency_check_i()
fs
->
work
[
pix_byte_ix
]
|=
(
1
<
<
(
pix_bit_ix
+
2
)
)
;
spiffs_check.c:569
spiffs_page_consistency_check_i()
if
(
fs
->
work
[
rpix_byte_ix
]
&
(
1
<
<
(
rpix_bit_ix
+
1
)
)
)
{
spiffs_check.c:696
spiffs_page_consistency_check_i()
fs
->
work
[
rpix_byte_ix
]
|=
(
1
<
<
(
rpix_bit_ix
+
1
)
)
;
spiffs_check.c:712
spiffs_page_consistency_check_i()
u8_t
bitmask
=
(
fs
->
work
[
byte_ix
]
>
>
(
bit_ix
*
bits
)
)
&
0x7
;
spiffs_check.c:733
spiffs_page_consistency_check_i()
spiffs_obj_id
*
obj_table
=
(
spiffs_obj_id
*
)
fs
->
work
;
spiffs_check.c:881
spiffs_object_index_search()
spiffs_obj_id
*
obj_table
=
(
spiffs_obj_id
*
)
fs
->
work
;
spiffs_check.c:897
spiffs_object_index_consistency_check_v()
memset
(
fs
->
work
,
0
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
)
;
spiffs_check.c:993
spiffs_object_index_consistency_check()
memset
(
fs
->
work
,
0xff
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
)
;
spiffs_gc.c:251
spiffs_gc_find_candidate()
spiffs_block_ix
*
cand_blocks
=
(
spiffs_block_ix
*
)
fs
->
work
;
spiffs_gc.c:254
spiffs_gc_find_candidate()
s32_t
*
cand_scores
=
(
s32_t
*
)
(
fs
->
work
+
max_candidates
*
sizeof
(
spiffs_block_ix
)
)
;
spiffs_gc.c:255
spiffs_gc_find_candidate()
spiffs_page_object_ix_header
*
objix_hdr
=
(
spiffs_page_object_ix_header
*
)
fs
->
work
;
spiffs_gc.c:385
spiffs_gc_clean()
spiffs_page_object_ix
*
objix
=
(
spiffs_page_object_ix
*
)
fs
->
work
;
spiffs_gc.c:386
spiffs_gc_clean()
0
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
objix_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_gc.c:557
spiffs_gc_clean()
res
=
spiffs_object_update_index_hdr
(
fs
,
0
,
gc
.
cur_obj_id
|
SPIFFS_OBJ_ID_IX_FLAG
,
gc
.
cur_objix_pix
,
fs
->
work
,
0
,
0
,
0
,
&
new_objix_pix
)
;
spiffs_gc.c:578
spiffs_gc_clean()
res
=
spiffs_page_move
(
fs
,
0
,
fs
->
work
,
gc
.
cur_obj_id
|
SPIFFS_OBJ_ID_IX_FLAG
,
0
,
gc
.
cur_objix_pix
,
&
new_objix_pix
)
;
spiffs_gc.c:583
spiffs_gc_clean()
spiffs_cb_object_event
(
fs
,
(
spiffs_page_object_ix
*
)
fs
->
work
,
spiffs_gc.c:586
spiffs_gc_clean()
fs
->
work
=
&
work
[
0
]
;
spiffs_hydrogen.c:94
SPIFFS_mount()
spiffs_page_object_ix
*
objix
=
(
spiffs_page_object_ix
*
)
fs
->
work
;
spiffs_nucleus.c:678
spiffs_populate_ix_map_v()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
objix_hdr_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1012
spiffs_object_update_index_hdr()
objix_hdr
=
(
spiffs_page_object_ix_header
*
)
fs
->
work
;
spiffs_nucleus.c:1014
spiffs_object_update_index_hdr()
spiffs_page_object_ix_header
*
objix_hdr
=
(
spiffs_page_object_ix_header
*
)
fs
->
work
;
spiffs_nucleus.c:1242
spiffs_object_append()
spiffs_page_object_ix
*
objix
=
(
spiffs_page_object_ix
*
)
fs
->
work
;
spiffs_nucleus.c:1243
spiffs_object_append()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
cur_objix_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1276
spiffs_object_append()
fd
->
objix_hdr_pix
,
fs
->
work
,
0
,
0
,
offset
+
written
,
&
new_objix_hdr_page
)
;
spiffs_nucleus.c:1281
spiffs_object_append()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
cur_objix_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1292
spiffs_object_append()
spiffs_cb_object_event
(
fs
,
(
spiffs_page_object_ix
*
)
fs
->
work
,
spiffs_nucleus.c:1294
spiffs_object_append()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
cur_objix_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1312
spiffs_object_append()
memset
(
fs
->
work
,
0xff
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
)
;
spiffs_nucleus.c:1326
spiffs_object_append()
_SPIFFS_MEMCPY
(
fs
->
work
,
&
p_hdr
,
sizeof
(
spiffs_page_header
)
)
;
spiffs_nucleus.c:1327
spiffs_object_append()
spiffs_cb_object_event
(
fs
,
(
spiffs_page_object_ix
*
)
fs
->
work
,
spiffs_nucleus.c:1328
spiffs_object_append()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1344
spiffs_object_append()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
cur_objix_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1426
spiffs_object_append()
spiffs_cb_object_event
(
fs
,
(
spiffs_page_object_ix
*
)
fs
->
work
,
spiffs_nucleus.c:1428
spiffs_object_append()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
cur_objix_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1449
spiffs_object_append()
spiffs_cb_object_event
(
fs
,
(
spiffs_page_object_ix
*
)
fs
->
work
,
spiffs_nucleus.c:1452
spiffs_object_append()
fd
->
objix_hdr_pix
,
fs
->
work
,
0
,
0
,
offset
+
written
,
&
new_objix_hdr_page
)
;
spiffs_nucleus.c:1457
spiffs_object_append()
spiffs_page_object_ix_header
*
objix_hdr
=
(
spiffs_page_object_ix_header
*
)
fs
->
work
;
spiffs_nucleus.c:1479
spiffs_object_modify()
spiffs_page_object_ix
*
objix
=
(
spiffs_page_object_ix
*
)
fs
->
work
;
spiffs_nucleus.c:1480
spiffs_object_modify()
fd
->
objix_hdr_pix
,
fs
->
work
,
0
,
0
,
0
,
&
new_objix_hdr_pix
)
;
spiffs_nucleus.c:1507
spiffs_object_modify()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
cur_objix_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1530
spiffs_object_modify()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1545
spiffs_object_modify()
fd
->
objix_hdr_pix
,
fs
->
work
,
0
,
0
,
0
,
&
new_objix_hdr_pix
)
;
spiffs_nucleus.c:1664
spiffs_object_modify()
spiffs_page_object_ix_header
*
objix_hdr
=
(
spiffs_page_object_ix_header
*
)
fs
->
work
;
spiffs_nucleus.c:1762
spiffs_object_truncate()
spiffs_page_object_ix
*
objix
=
(
spiffs_page_object_ix
*
)
fs
->
work
;
spiffs_nucleus.c:1763
spiffs_object_truncate()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
objix_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:1820
spiffs_object_truncate()
memset
(
fs
->
work
+
sizeof
(
spiffs_page_object_ix_header
)
,
0xff
,
spiffs_nucleus.c:1938
spiffs_object_truncate()
objix_pix
,
fs
->
work
,
0
,
0
,
SPIFFS_UNDEFINED_LEN
,
&
new_objix_hdr_pix
)
;
spiffs_nucleus.c:1941
spiffs_object_truncate()
objix_pix
,
fs
->
work
,
0
,
0
,
cur_size
,
&
new_objix_hdr_pix
)
;
spiffs_nucleus.c:1948
spiffs_object_truncate()
spiffs_page_object_ix_header
*
objix_hdr
=
(
spiffs_page_object_ix_header
*
)
fs
->
work
;
spiffs_nucleus.c:1991
spiffs_object_read()
spiffs_page_object_ix
*
objix
=
(
spiffs_page_object_ix
*
)
fs
->
work
;
spiffs_nucleus.c:1992
spiffs_object_read()
fd
->
file_nbr
,
SPIFFS_PAGE_TO_PADDR
(
fs
,
objix_pix
)
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
,
fs
->
work
)
;
spiffs_nucleus.c:2019
spiffs_object_read()
fs
->
work
[
byte_ix
]
|=
(
1
<
<
bit_ix
)
;
spiffs_nucleus.c:2105
spiffs_obj_lu_find_free_obj_id_bitmap_v()
u8_t
*
map
=
(
u8_t
*
)
fs
->
work
;
spiffs_nucleus.c:2131
spiffs_obj_lu_find_free_obj_id_compact_v()
memset
(
fs
->
work
,
0
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
)
;
spiffs_nucleus.c:2163
spiffs_obj_lu_find_free_obj_id()
u8_t
mask
=
fs
->
work
[
i
]
;
spiffs_nucleus.c:2170
spiffs_obj_lu_find_free_obj_id()
u8_t
*
map
=
(
u8_t
*
)
fs
->
work
;
spiffs_nucleus.c:2187
spiffs_obj_lu_find_free_obj_id()
memset
(
fs
->
work
,
0
,
SPIFFS_CFG_LOG_PAGE_SZ
(
fs
)
)
;
spiffs_nucleus.c:2228
spiffs_obj_lu_find_free_obj_id()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
spiffs_t::work
is written by 1 function and is read by 15 functions:
SPIFFS_mount()
All items filtered out
spiffs_t::work
spiffs_page_consistency_check_i()
spiffs_object_index_search()
spiffs_object_index_consistency_check_v()
spiffs_object_index_consistency_check()
spiffs_gc_find_candidate()
spiffs_gc_clean()
spiffs_populate_ix_map_v()
spiffs_object_update_index_hdr()
spiffs_object_append()
spiffs_object_modify()
spiffs_object_truncate()
spiffs_object_read()
spiffs_obj_lu_find_free_obj_id_bitmap_v()
spiffs_obj_lu_find_free_obj_id_compact_v()
spiffs_obj_lu_find_free_obj_id()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out