/external/u-boot/drivers/mtd/ubi/ |
D | io.c | 87 static int self_check_not_bad(const struct ubi_device *ubi, int pnum); 88 static int self_check_peb_ec_hdr(const struct ubi_device *ubi, int pnum); 89 static int self_check_ec_hdr(const struct ubi_device *ubi, int pnum, 91 static int self_check_peb_vid_hdr(const struct ubi_device *ubi, int pnum); 92 static int self_check_vid_hdr(const struct ubi_device *ubi, int pnum, 94 static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum, 119 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, in ubi_io_read() argument 126 dbg_io("read %d bytes from PEB %d:%d", len, pnum, offset); in ubi_io_read() 128 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read() 132 err = self_check_not_bad(ubi, pnum); in ubi_io_read() [all …]
|
D | attach.c | 114 static int add_to_list(struct ubi_attach_info *ai, int pnum, int vol_id, in add_to_list() argument 120 dbg_bld("add to free: PEB %d, EC %d", pnum, ec); in add_to_list() 122 dbg_bld("add to erase: PEB %d, EC %d", pnum, ec); in add_to_list() 124 dbg_bld("add to alien: PEB %d, EC %d", pnum, ec); in add_to_list() 133 aeb->pnum = pnum; in add_to_list() 155 static int add_corrupted(struct ubi_attach_info *ai, int pnum, int ec) in add_corrupted() argument 159 dbg_bld("add to corrupted: PEB %d, EC %d", pnum, ec); in add_corrupted() 166 aeb->pnum = pnum; in add_corrupted() 189 const struct ubi_ainf_volume *av, int pnum) in validate_vid_hdr() argument 234 ubi_err(ubi, "inconsistent VID header at PEB %d", pnum); in validate_vid_hdr() [all …]
|
D | wl.c | 130 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec); 160 ubi_assert(e->pnum != e1->pnum); in wl_tree_add() 161 if (e->pnum < e1->pnum) in wl_tree_add() 182 ubi->lookuptbl[e->pnum] = NULL; in wl_entry_destroy() 251 if (e->pnum == e1->pnum) { in in_wl_tree() 261 ubi_assert(e->pnum != e1->pnum); in in_wl_tree() 262 if (e->pnum < e1->pnum) in in_wl_tree() 290 dbg_wl("added PEB %d EC %d to the protection queue", e->pnum, e->ec); in prot_queue_add() 330 !ubi->fm && e->pnum < UBI_FM_MAX_START) in find_wl_entry() 392 dbg_wl("PEB %d EC %d", e->pnum, e->ec); in wl_get_wle() [all …]
|
D | fastmap.c | 54 static inline void set_seen(struct ubi_device *ubi, int pnum, int *seen) in set_seen() argument 59 seen[pnum] = 1; in set_seen() 69 int pnum, ret = 0; in self_check_seen() local 74 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen() 75 if (!seen[pnum] && ubi->lookuptbl[pnum]) { in self_check_seen() 76 ubi_err(ubi, "self-check failed for PEB %d, fastmap didn't see it", pnum); in self_check_seen() 143 int pnum, int ec, int scrub) in add_aeb() argument 151 aeb->pnum = pnum; in add_aeb() 297 if (aeb->pnum == new_aeb->pnum) { in update_vol() 304 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol() [all …]
|
D | eba.c | 319 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb() local 328 pnum = vol->eba_tbl[lnum]; in ubi_eba_unmap_leb() 329 if (pnum < 0) in ubi_eba_unmap_leb() 333 dbg_eba("erase LEB %d:%d, PEB %d", vol_id, lnum, pnum); in ubi_eba_unmap_leb() 338 err = ubi_wl_put_peb(ubi, vol_id, lnum, pnum, 0); in ubi_eba_unmap_leb() 367 int err, pnum, scrub = 0, vol_id = vol->vol_id; in ubi_eba_read_leb() local 375 pnum = vol->eba_tbl[lnum]; in ubi_eba_read_leb() 376 if (pnum < 0) { in ubi_eba_read_leb() 391 len, offset, vol_id, lnum, pnum); in ubi_eba_read_leb() 404 err = ubi_io_read_vid_hdr(ubi, pnum, vid_hdr, 1); in ubi_eba_read_leb() [all …]
|
D | fastmap-wl.c | 40 if (e->pnum < UBI_FM_MAX_START && e->ec < max_ec) { in find_anchor_wl_entry() 73 if (e->pnum < UBI_FM_MAX_START) in anchor_pebs_avalible() 142 pool->pebs[pool->size] = e->pnum; in ubi_refill_pools() 157 wl_pool->pebs[wl_pool->size] = e->pnum; in ubi_refill_pools() 261 int pnum; in get_peb_for_wl() local 281 pnum = pool->pebs[pool->used++]; in get_peb_for_wl() 282 return ubi->lookuptbl[pnum]; in get_peb_for_wl() 329 int vol_id, pnum = fm_e->pnum; in ubi_wl_put_fm_peb() local 331 dbg_wl("PEB %d", pnum); in ubi_wl_put_fm_peb() 333 ubi_assert(pnum >= 0); in ubi_wl_put_fm_peb() [all …]
|
D | ubi.h | 178 int pnum; member 648 int pnum; member 785 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, 868 int pnum, int torture); 870 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum); 882 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, 884 int ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset, 886 int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture); 887 int ubi_io_is_bad(const struct ubi_device *ubi, int pnum); 888 int ubi_io_mark_bad(const struct ubi_device *ubi, int pnum); [all …]
|
/external/u-boot/drivers/mtd/ubispl/ |
D | ubispl.c | 37 static int ubi_io_read(struct ubi_scan_info *ubi, void *buf, int pnum, in ubi_io_read() argument 40 return ubi->read(pnum + ubi->peb_offset, from, len, buf); in ubi_io_read() 48 static int ubi_io_read_vid_hdr(struct ubi_scan_info *ubi, int pnum, in ubi_io_read_vid_hdr() argument 55 if (test_bit(pnum, ubi->corrupt)) in ubi_io_read_vid_hdr() 60 if (test_and_set_bit(pnum, ubi->scanned)) in ubi_io_read_vid_hdr() 63 res = ubi_io_read(ubi, vh, pnum, ubi->vid_offset, sizeof(*vh)); in ubi_io_read_vid_hdr() 69 ubi_dbg("Skipping bad or unreadable block %d", pnum); in ubi_io_read_vid_hdr() 71 generic_set_bit(pnum, ubi->corrupt); in ubi_io_read_vid_hdr() 78 generic_set_bit(pnum, ubi->corrupt); in ubi_io_read_vid_hdr() 81 ubi_msg("Bad magic in block 0%d %08x", pnum, magic); in ubi_io_read_vid_hdr() [all …]
|
/external/vboot_reference/utility/ |
D | vbutil_what_keys | 109 for pnum in $(cgpt find -n -t kernel "$file" 2>/dev/null); do 111 psize=$(cgpt show -s -i "$pnum" "$file") 114 pstart=$(cgpt show -b -i "$pnum" "$file") 130 echo " part $pnum kernel: $psum ($flags) $match" 136 for pnum in $(cgpt find -n -t rootfs "$file" 2>/dev/null); do 138 psize=$(cgpt show -s -i "$pnum" "$file") 141 pstart=$(cgpt show -b -i "$pnum" "$file") 143 echo " part $pnum shellball:"
|
/external/iptables/extensions/ |
D | libxt_multiport.c | 143 check_proto(uint16_t pnum, uint8_t invflags) in check_proto() argument 151 if ((proto = proto_to_name(pnum)) != NULL) in check_proto() 153 else if (!pnum) in check_proto() 162 static void __multiport_parse(struct xt_option_call *cb, uint16_t pnum, in __multiport_parse() argument 171 proto = check_proto(pnum, invflags); in __multiport_parse() 177 proto = check_proto(pnum, invflags); in __multiport_parse() 183 proto = check_proto(pnum, invflags); in __multiport_parse() 208 static void __multiport_parse_v1(struct xt_option_call *cb, uint16_t pnum, in __multiport_parse_v1() argument 217 proto = check_proto(pnum, invflags); in __multiport_parse_v1() 222 proto = check_proto(pnum, invflags); in __multiport_parse_v1() [all …]
|
/external/libmtp/examples/ |
D | sendtr.c | 265 char *pnum; in sendtrack_function() local 266 if ( (pnum = prompt("Track number", num, 80, 0)) == NULL ) in sendtrack_function() 269 tracknum = strtoul(pnum, 0, 10); in sendtrack_function() 273 char *pnum; in sendtrack_function() local 274 if ( (pnum = prompt("Year", num, 80, 0)) == NULL ) in sendtrack_function() 277 year = strtoul(pnum, 0, 10); in sendtrack_function() 281 char *pnum; in sendtrack_function() local 282 if ( (pnum = prompt("Length", num, 80, 0)) == NULL ) in sendtrack_function() 285 length = strtoul(pnum, 0, 10); in sendtrack_function()
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/sde_rotator/rot_perf_set_ot/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 13 print fmt: "pnum:%d xin_id:%d ot:%d", REC->pnum, REC->xin_id, REC->rd_lim
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/mdss/mdp_perf_set_ot/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 14 print fmt: "pnum:%d xin_id:%d ot:%d rt:%d", REC->pnum, REC->xin_id, REC->rd_lim, REC->is_vbif_rt
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/sde_rotator/rot_perf_set_qos_luts/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 14 print fmt: "pnum=%d fmt=%d lut=0x%x lin:%d", REC->pnum, REC->fmt, REC->lut, REC->linear
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/sde_rotator/rot_perf_set_panic_luts/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 15 print fmt: "pnum=%d fmt=%d mode=%d luts[0x%x, 0x%x]", REC->pnum, REC->fmt, REC->mode, REC->panic_lu…
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/mdss/mdp_perf_set_panic_luts/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 15 print fmt: "pnum=%d fmt=%d mode=%d luts[0x%x, 0x%x]", REC->pnum, REC->fmt, REC->mode, REC->panic_lu…
|
/external/perfetto/protos/perfetto/trace/ftrace/ |
D | mdss.proto | 20 optional uint32 pnum = 1; field 65 optional uint32 pnum = 1; field 99 optional uint32 pnum = 1; field 119 optional uint32 pnum = 1; field 137 optional uint32 pnum = 1; field
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/mdss/mdp_perf_set_wm_levels/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 18 print fmt: "pnum:%d useable_space:%d priority_bytes:%d watermark:[%d | %d | %d] nmb=%d mb_size=%d",…
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/mdss/mdp_perf_set_wm_levels/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 18 print fmt: "pnum:%d useable_space:%d priority_bytes:%d watermark:[%d | %d | %d] nmb=%d mb_size=%d",…
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/mdss/mdp_perf_set_qos_luts/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 17 print fmt: "pnum=%d fmt=%d intf=%d rot=%d fl:%d lut=0x%x lin:%d", REC->pnum, REC->fmt, REC->intf, R…
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/sde_rotator/rot_perf_set_wm_levels/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 18 print fmt: "pnum:%d useable_space:%d priority_bytes:%d watermark:[%d | %d | %d] nmb=%d mb_size=%d",…
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/mdss/mdp_perf_prefill_calc/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 20 print fmt: "pnum:%d latency_buf:%d ot:%d y_buf:%d y_scaler:%d pp_lines:%d, pp_bytes=%d post_sc:%d f…
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_seed_N2F62_3.10.49/events/mdss/mdp_perf_prefill_calc/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 20 print fmt: "pnum:%d latency_buf:%d ot:%d y_buf:%d y_scaler:%d pp_lines:%d, pp_bytes=%d post_sc:%d f…
|
/external/perfetto/src/traced/probes/ftrace/test/data/android_walleye_OPM5.171019.017.A1_4.4.88/events/sde_rotator/rot_perf_prefill_calc/ |
D | format | 9 field:u32 pnum; offset:8; size:4; signed:0; 20 print fmt: "pnum:%d latency_buf:%d ot:%d y_buf:%d y_scaler:%d pp_lines:%d, pp_bytes=%d post_sc:%d f…
|
/external/u-boot/tools/ |
D | kwboot.c | 67 uint8_t pnum; member 350 size_t size, int pnum) in kwboot_xm_makeblock() argument 357 block->pnum = pnum; in kwboot_xm_makeblock() 358 block->_pnum = ~block->pnum; in kwboot_xm_makeblock() 422 int rc, pnum, N, err; in kwboot_xmodem() local 424 pnum = 1; in kwboot_xmodem() 435 pnum++); in kwboot_xmodem()
|