Home
last modified time | relevance | path

Searched refs:pnum (Results 1 – 25 of 40) sorted by relevance

12

/Linux-v6.1/drivers/mtd/ubi/
Dio.c81 static int self_check_not_bad(const struct ubi_device *ubi, int pnum);
82 static int self_check_peb_ec_hdr(const struct ubi_device *ubi, int pnum);
83 static int self_check_ec_hdr(const struct ubi_device *ubi, int pnum,
85 static int self_check_peb_vid_hdr(const struct ubi_device *ubi, int pnum);
86 static int self_check_vid_hdr(const struct ubi_device *ubi, int pnum,
88 static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum,
113 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, in ubi_io_read() argument
120 dbg_io("read %d bytes from PEB %d:%d", len, pnum, offset); in ubi_io_read()
122 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read()
126 err = self_check_not_bad(ubi, pnum); in ubi_io_read()
[all …]
Dattach.c178 struct ubi_ainf_peb *ubi_alloc_aeb(struct ubi_attach_info *ai, int pnum, in ubi_alloc_aeb() argument
187 aeb->pnum = pnum; in ubi_alloc_aeb()
229 static int add_to_list(struct ubi_attach_info *ai, int pnum, int vol_id, in add_to_list() argument
235 dbg_bld("add to free: PEB %d, EC %d", pnum, ec); in add_to_list()
237 dbg_bld("add to erase: PEB %d, EC %d", pnum, ec); in add_to_list()
239 dbg_bld("add to alien: PEB %d, EC %d", pnum, ec); in add_to_list()
244 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_to_list()
268 static int add_corrupted(struct ubi_attach_info *ai, int pnum, int ec) in add_corrupted() argument
272 dbg_bld("add to corrupted: PEB %d, EC %d", pnum, ec); in add_corrupted()
274 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_corrupted()
[all …]
Dwl.c125 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec);
155 ubi_assert(e->pnum != e1->pnum); in wl_tree_add()
156 if (e->pnum < e1->pnum) in wl_tree_add()
177 ubi->lookuptbl[e->pnum] = NULL; in wl_entry_destroy()
246 if (e->pnum == e1->pnum) { in in_wl_tree()
256 ubi_assert(e->pnum != e1->pnum); in in_wl_tree()
257 if (e->pnum < e1->pnum) in in_wl_tree()
306 dbg_wl("added PEB %d EC %d to the protection queue", e->pnum, e->ec); in prot_queue_add()
400 dbg_wl("PEB %d EC %d", e->pnum, e->ec); in wl_get_wle()
413 static int prot_queue_del(struct ubi_device *ubi, int pnum) in prot_queue_del() argument
[all …]
Deba.c48 int pnum; member
111 ldesc->pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_get_ldesc()
140 tbl->entries[i].pnum = UBI_LEB_UNMAPPED; in ubi_eba_create_table()
184 dst->entries[i].pnum = src->entries[i].pnum; in ubi_eba_copy_table()
437 return vol->eba_tbl->entries[lnum].pnum >= 0; in ubi_eba_is_mapped()
453 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb() local
462 pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_unmap_leb()
463 if (pnum < 0) in ubi_eba_unmap_leb()
467 dbg_eba("erase LEB %d:%d, PEB %d", vol_id, lnum, pnum); in ubi_eba_unmap_leb()
470 vol->eba_tbl->entries[lnum].pnum = UBI_LEB_UNMAPPED; in ubi_eba_unmap_leb()
[all …]
Dfastmap.c45 static inline void set_seen(struct ubi_device *ubi, int pnum, unsigned long *seen) in set_seen() argument
50 set_bit(pnum, seen); in set_seen()
60 int pnum, ret = 0; in self_check_seen() local
65 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen()
66 if (!test_bit(pnum, seen) && ubi->lookuptbl[pnum]) { in self_check_seen()
67 ubi_err(ubi, "self-check failed for PEB %d, fastmap didn't see it", pnum); in self_check_seen()
136 int pnum, int ec, int scrub) in add_aeb() argument
140 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_aeb()
266 if (aeb->pnum == new_aeb->pnum) { in update_vol()
273 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol()
[all …]
Dfastmap-wl.c33 if (e->pnum < UBI_FM_MAX_START && e->ec < max_ec) { in find_anchor_wl_entry()
167 pool->pebs[pool->size] = e->pnum; in ubi_refill_pools()
181 wl_pool->pebs[wl_pool->size] = e->pnum; in ubi_refill_pools()
287 int pnum; in next_peb_for_wl() local
292 pnum = pool->pebs[pool->used]; in next_peb_for_wl()
293 return ubi->lookuptbl[pnum]; in next_peb_for_wl()
337 int pnum; in get_peb_for_wl() local
352 pnum = pool->pebs[pool->used++]; in get_peb_for_wl()
353 return ubi->lookuptbl[pnum]; in get_peb_for_wl()
417 int vol_id, pnum = fm_e->pnum; in ubi_wl_put_fm_peb() local
[all …]
Dubi.h184 int pnum; member
279 int pnum; member
677 int pnum; member
822 struct ubi_ainf_peb *ubi_alloc_aeb(struct ubi_attach_info *ai, int pnum,
825 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum,
907 int pnum, int torture);
909 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum);
919 int ubi_bitflip_check(struct ubi_device *ubi, int pnum, int force_scrub);
922 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset,
924 int ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset,
[all …]
Ddebug.h11 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len);
48 int ubi_self_check_all_ff(struct ubi_device *ubi, int pnum, int offset,
Dubi-media.h465 __be32 pnum; member
501 __be32 pnum[]; member
Ddebug.c22 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) in ubi_dump_flash() argument
27 loff_t addr = (loff_t)pnum * ubi->peb_size + offset; in ubi_dump_flash()
35 err, len, pnum, offset, read); in ubi_dump_flash()
40 len, pnum, offset); in ubi_dump_flash()
181 pr_err("\tpnum %d\n", aeb->pnum); in ubi_dump_aeb()
Dcdev.c967 int pnum; in ubi_cdev_ioctl() local
969 err = get_user(pnum, (__user int32_t *)argp); in ubi_cdev_ioctl()
975 err = ubi_bitflip_check(ubi, pnum, 0); in ubi_cdev_ioctl()
982 int pnum; in ubi_cdev_ioctl() local
984 err = get_user(pnum, (__user int32_t *)argp); in ubi_cdev_ioctl()
990 err = ubi_bitflip_check(ubi, pnum, 1); in ubi_cdev_ioctl()
Dvtbl.c317 err = ubi_io_write_vid_hdr(ubi, new_aeb->pnum, vidb); in create_vtbl()
322 err = ubi_io_write_data(ubi, vtbl, new_aeb->pnum, 0, ubi->vtbl_size); in create_vtbl()
330 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); in create_vtbl()
406 err = ubi_io_read_data(ubi, leb[aeb->lnum], aeb->pnum, 0, in process_lvol()
/Linux-v6.1/security/selinux/
Dnetport.c68 static unsigned int sel_netport_hashfn(u16 pnum) in sel_netport_hashfn() argument
70 return (pnum & (SEL_NETPORT_HASH_SIZE - 1)); in sel_netport_hashfn()
83 static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum) in sel_netport_find() argument
88 idx = sel_netport_hashfn(pnum); in sel_netport_find()
90 if (port->psec.port == pnum && port->psec.protocol == protocol) in sel_netport_find()
137 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument
144 port = sel_netport_find(protocol, pnum); in sel_netport_sid_slow()
151 ret = security_port_sid(&selinux_state, protocol, pnum, sid); in sel_netport_sid_slow()
156 new->psec.port = pnum; in sel_netport_sid_slow()
183 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument
[all …]
/Linux-v6.1/mm/
Dsparse.c280 static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum) in sparse_encode_mem_map() argument
283 (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); in sparse_encode_mem_map()
293 struct page *sparse_decode_mem_map(unsigned long coded_mem_map, unsigned long pnum) in sparse_decode_mem_map() argument
297 return ((struct page *)coded_mem_map) + section_nr_to_pfn(pnum); in sparse_decode_mem_map()
302 unsigned long pnum, struct page *mem_map, in sparse_init_one_section() argument
306 ms->section_mem_map |= sparse_encode_mem_map(mem_map, pnum) in sparse_init_one_section()
511 unsigned long pnum; in sparse_init_nid() local
521 for_each_present_section_nr(pnum_begin, pnum) { in sparse_init_nid()
522 unsigned long pfn = section_nr_to_pfn(pnum); in sparse_init_nid()
524 if (pnum >= pnum_end) in sparse_init_nid()
[all …]
/Linux-v6.1/drivers/gpu/drm/msm/disp/dpu1/
Ddpu_trace.h25 TP_PROTO(u32 pnum, u32 fmt, bool rt, u32 fl,
27 TP_ARGS(pnum, fmt, rt, fl, lut, lut_usage),
29 __field(u32, pnum)
37 __entry->pnum = pnum;
45 __entry->pnum, __entry->fmt,
51 TP_PROTO(u32 pnum, u32 fmt, u32 mode, u32 danger_lut,
53 TP_ARGS(pnum, fmt, mode, danger_lut, safe_lut),
55 __field(u32, pnum)
62 __entry->pnum = pnum;
69 __entry->pnum, __entry->fmt,
[all …]
/Linux-v6.1/drivers/rapidio/switches/
Didt_gen3.c231 idtg3_em_handler(struct rio_dev *rdev, u8 pnum) in idtg3_em_handler() argument
237 RIO_DEV_PORT_N_ERR_STS_CSR(rdev, pnum), in idtg3_em_handler()
250 rio_read_config_32(rdev, RIO_PLM_SPx_IMP_SPEC_CTL(pnum), &rval); in idtg3_em_handler()
251 rio_write_config_32(rdev, RIO_PLM_SPx_IMP_SPEC_CTL(pnum), in idtg3_em_handler()
254 rio_write_config_32(rdev, RIO_PLM_SPx_IMP_SPEC_CTL(pnum), rval); in idtg3_em_handler()
/Linux-v6.1/drivers/rapidio/
Drio.c867 int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock) in rio_set_port_lockout() argument
872 RIO_DEV_PORT_N_CTL_CSR(rdev, pnum), in rio_set_port_lockout()
880 RIO_DEV_PORT_N_CTL_CSR(rdev, pnum), in rio_set_port_lockout()
1028 rio_get_input_status(struct rio_dev *rdev, int pnum, u32 *lnkresp) in rio_get_input_status() argument
1037 RIO_DEV_PORT_N_MNT_RSP_CSR(rdev, pnum), in rio_get_input_status()
1044 RIO_DEV_PORT_N_MNT_REQ_CSR(rdev, pnum), in rio_get_input_status()
1055 RIO_DEV_PORT_N_MNT_RSP_CSR(rdev, pnum), in rio_get_input_status()
1079 static int rio_clr_err_stopped(struct rio_dev *rdev, u32 pnum, u32 err_status) in rio_clr_err_stopped() argument
1081 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; in rio_clr_err_stopped()
1087 RIO_DEV_PORT_N_ERR_STS_CSR(rdev, pnum), in rio_clr_err_stopped()
[all …]
Drio.h34 extern int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock);
/Linux-v6.1/drivers/pinctrl/sunplus/
Dsppctl.h77 .pnum = ARRAY_SIZE(p), \
146 const unsigned int pnum; /* number of pins */ member
/Linux-v6.1/drivers/md/
Dmd-bitmap.c780 int pnum, offset = 0; in md_bitmap_storage_alloc() local
802 pnum = 0; in md_bitmap_storage_alloc()
805 pnum = 1; in md_bitmap_storage_alloc()
809 for ( ; pnum < num_pages; pnum++) { in md_bitmap_storage_alloc()
810 store->filemap[pnum] = alloc_page(GFP_KERNEL|__GFP_ZERO); in md_bitmap_storage_alloc()
811 if (!store->filemap[pnum]) { in md_bitmap_storage_alloc()
812 store->file_pages = pnum; in md_bitmap_storage_alloc()
815 store->filemap[pnum]->index = pnum + offset; in md_bitmap_storage_alloc()
817 store->file_pages = pnum; in md_bitmap_storage_alloc()
894 static inline void set_page_attr(struct bitmap *bitmap, int pnum, in set_page_attr() argument
[all …]
/Linux-v6.1/security/selinux/include/
Dnetport.h23 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
/Linux-v6.1/include/dt-bindings/usb/
Dpd.h230 #define VDO_DFP(ver, cap, conn, pnum) \ argument
232 | ((pnum) & 0x1f))
/Linux-v6.1/include/linux/usb/
Dpd_vdo.h253 #define VDO_DFP(ver, cap, conn, pnum) \ argument
255 | ((pnum) & 0x1f))
/Linux-v6.1/drivers/usb/serial/
Dmos7840.c1538 int pnum; in mos7840_port_probe() local
1544 pnum = port->port_number; in mos7840_port_probe()
1546 dev_dbg(&port->dev, "mos7840_startup: configuring port %d\n", pnum); in mos7840_port_probe()
1561 mos7840_port->port_num = pnum + 1; in mos7840_port_probe()
1668 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 2, status); in mos7840_port_probe()
1671 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 2, status); in mos7840_port_probe()
1680 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 1, status); in mos7840_port_probe()
1683 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 1, status); in mos7840_port_probe()
/Linux-v6.1/drivers/message/fusion/
Dmptlan.c87 u8 pnum; /* Port number in the IOC. This is not a Unix network port! */ member
481 pResetReq->PortNumber = priv->pnum; in mpt_lan_reset()
737 pSendReq->PortNumber = priv->pnum; in mpt_lan_sdu_send()
1186 pRecvReq->PortNumber = priv->pnum; in mpt_lan_post_receive_buckets()
1306 mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum) in mpt_register_lan_device() argument
1322 priv->pnum = pnum; in mpt_register_lan_device()

12