Home
last modified time | relevance | path

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

/drivers/mtd/ubi/
Dio.c94 static int self_check_not_bad(const struct ubi_device *ubi, int pnum);
95 static int self_check_peb_ec_hdr(const struct ubi_device *ubi, int pnum);
96 static int self_check_ec_hdr(const struct ubi_device *ubi, int pnum,
98 static int self_check_peb_vid_hdr(const struct ubi_device *ubi, int pnum);
99 static int self_check_vid_hdr(const struct ubi_device *ubi, int pnum,
101 static int self_check_write(struct ubi_device *ubi, const void *buf, int pnum,
126 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, in ubi_io_read() argument
133 dbg_io("read %d bytes from PEB %d:%d", len, pnum, offset); in ubi_io_read()
135 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read()
139 err = self_check_not_bad(ubi, pnum); in ubi_io_read()
[all …]
Dattach.c191 struct ubi_ainf_peb *ubi_alloc_aeb(struct ubi_attach_info *ai, int pnum, in ubi_alloc_aeb() argument
200 aeb->pnum = pnum; in ubi_alloc_aeb()
242 static int add_to_list(struct ubi_attach_info *ai, int pnum, int vol_id, in add_to_list() argument
248 dbg_bld("add to free: PEB %d, EC %d", pnum, ec); in add_to_list()
250 dbg_bld("add to erase: PEB %d, EC %d", pnum, ec); in add_to_list()
252 dbg_bld("add to alien: PEB %d, EC %d", pnum, ec); in add_to_list()
257 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_to_list()
281 static int add_corrupted(struct ubi_attach_info *ai, int pnum, int ec) in add_corrupted() argument
285 dbg_bld("add to corrupted: PEB %d, EC %d", pnum, ec); in add_corrupted()
287 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_corrupted()
[all …]
Dwl.c138 static int self_check_ec(struct ubi_device *ubi, int pnum, int ec);
168 ubi_assert(e->pnum != e1->pnum); in wl_tree_add()
169 if (e->pnum < e1->pnum) in wl_tree_add()
190 ubi->lookuptbl[e->pnum] = NULL; in wl_entry_destroy()
259 if (e->pnum == e1->pnum) { in in_wl_tree()
269 ubi_assert(e->pnum != e1->pnum); in in_wl_tree()
270 if (e->pnum < e1->pnum) in in_wl_tree()
298 dbg_wl("added PEB %d EC %d to the protection queue", e->pnum, e->ec); in prot_queue_add()
338 !ubi->fm && e->pnum < UBI_FM_MAX_START) in find_wl_entry()
400 dbg_wl("PEB %d EC %d", e->pnum, e->ec); in wl_get_wle()
[all …]
Dfastmap.c55 static inline void set_seen(struct ubi_device *ubi, int pnum, unsigned long *seen) in set_seen() argument
60 set_bit(pnum, seen); in set_seen()
70 int pnum, ret = 0; in self_check_seen() local
75 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen()
76 if (test_bit(pnum, seen) && ubi->lookuptbl[pnum]) { in self_check_seen()
77 ubi_err(ubi, "self-check failed for PEB %d, fastmap didn't see it", pnum); in self_check_seen()
146 int pnum, int ec, int scrub) in add_aeb() argument
150 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_aeb()
277 if (aeb->pnum == new_aeb->pnum) { in update_vol()
284 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol()
[all …]
Deba.c61 int pnum; member
124 ldesc->pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_get_ldesc()
153 tbl->entries[i].pnum = UBI_LEB_UNMAPPED; in ubi_eba_create_table()
198 dst->entries[i].pnum = src->entries[i].pnum; in ubi_eba_copy_table()
451 return vol->eba_tbl->entries[lnum].pnum >= 0; in ubi_eba_is_mapped()
467 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb() local
476 pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_unmap_leb()
477 if (pnum < 0) in ubi_eba_unmap_leb()
481 dbg_eba("erase LEB %d:%d, PEB %d", vol_id, lnum, pnum); in ubi_eba_unmap_leb()
484 vol->eba_tbl->entries[lnum].pnum = UBI_LEB_UNMAPPED; in ubi_eba_unmap_leb()
[all …]
Dfastmap-wl.c42 if (e->pnum < UBI_FM_MAX_START && e->ec < max_ec) { in find_anchor_wl_entry()
75 if (e->pnum < UBI_FM_MAX_START) in anchor_pebs_avalible()
144 pool->pebs[pool->size] = e->pnum; in ubi_refill_pools()
159 wl_pool->pebs[wl_pool->size] = e->pnum; in ubi_refill_pools()
263 int pnum; in get_peb_for_wl() local
278 pnum = pool->pebs[pool->used++]; in get_peb_for_wl()
279 return ubi->lookuptbl[pnum]; in get_peb_for_wl()
326 int vol_id, pnum = fm_e->pnum; in ubi_wl_put_fm_peb() local
328 dbg_wl("PEB %d", pnum); in ubi_wl_put_fm_peb()
330 ubi_assert(pnum >= 0); in ubi_wl_put_fm_peb()
[all …]
Dubi.h197 int pnum; member
292 int pnum; member
678 int pnum; member
825 struct ubi_ainf_peb *ubi_alloc_aeb(struct ubi_attach_info *ai, int pnum,
828 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum,
910 int pnum, int torture);
912 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum);
924 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset,
926 int ubi_io_write(struct ubi_device *ubi, const void *buf, int pnum, int offset,
928 int ubi_io_sync_erase(struct ubi_device *ubi, int pnum, int torture);
[all …]
Ddebug.h24 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len);
61 int ubi_self_check_all_ff(struct ubi_device *ubi, int pnum, int offset,
Ddebug.c34 void ubi_dump_flash(struct ubi_device *ubi, int pnum, int offset, int len) in ubi_dump_flash() argument
39 loff_t addr = (loff_t)pnum * ubi->peb_size + offset; in ubi_dump_flash()
47 err, len, pnum, offset, read); in ubi_dump_flash()
52 len, pnum, offset); in ubi_dump_flash()
192 pr_err("\tpnum %d\n", aeb->pnum); in ubi_dump_aeb()
Dubi-media.h475 __be32 pnum; member
511 __be32 pnum[0]; member
Dvtbl.c330 err = ubi_io_write_vid_hdr(ubi, new_aeb->pnum, vidb); in create_vtbl()
335 err = ubi_io_write_data(ubi, vtbl, new_aeb->pnum, 0, ubi->vtbl_size); in create_vtbl()
343 err = ubi_add_to_av(ubi, ai, new_aeb->pnum, new_aeb->ec, vid_hdr, 0); in create_vtbl()
419 err = ubi_io_read_data(ubi, leb[aeb->lnum], aeb->pnum, 0, in process_lvol()
/drivers/rapidio/switches/
Didt_gen3.c235 idtg3_em_handler(struct rio_dev *rdev, u8 pnum) in idtg3_em_handler() argument
241 RIO_DEV_PORT_N_ERR_STS_CSR(rdev, pnum), in idtg3_em_handler()
254 rio_read_config_32(rdev, RIO_PLM_SPx_IMP_SPEC_CTL(pnum), &rval); in idtg3_em_handler()
255 rio_write_config_32(rdev, RIO_PLM_SPx_IMP_SPEC_CTL(pnum), in idtg3_em_handler()
258 rio_write_config_32(rdev, RIO_PLM_SPx_IMP_SPEC_CTL(pnum), rval); in idtg3_em_handler()
/drivers/rapidio/
Drio.c879 int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock) in rio_set_port_lockout() argument
884 RIO_DEV_PORT_N_CTL_CSR(rdev, pnum), in rio_set_port_lockout()
892 RIO_DEV_PORT_N_CTL_CSR(rdev, pnum), in rio_set_port_lockout()
1040 rio_get_input_status(struct rio_dev *rdev, int pnum, u32 *lnkresp) in rio_get_input_status() argument
1049 RIO_DEV_PORT_N_MNT_RSP_CSR(rdev, pnum), in rio_get_input_status()
1056 RIO_DEV_PORT_N_MNT_REQ_CSR(rdev, pnum), in rio_get_input_status()
1067 RIO_DEV_PORT_N_MNT_RSP_CSR(rdev, pnum), in rio_get_input_status()
1091 static int rio_clr_err_stopped(struct rio_dev *rdev, u32 pnum, u32 err_status) in rio_clr_err_stopped() argument
1093 struct rio_dev *nextdev = rdev->rswitch->nextdev[pnum]; in rio_clr_err_stopped()
1099 RIO_DEV_PORT_N_ERR_STS_CSR(rdev, pnum), in rio_clr_err_stopped()
[all …]
Drio.h40 extern int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock);
/drivers/md/
Dbitmap.c753 int pnum, offset = 0; in bitmap_storage_alloc() local
775 pnum = 0; in bitmap_storage_alloc()
778 pnum = 1; in bitmap_storage_alloc()
782 for ( ; pnum < num_pages; pnum++) { in bitmap_storage_alloc()
783 store->filemap[pnum] = alloc_page(GFP_KERNEL|__GFP_ZERO); in bitmap_storage_alloc()
784 if (!store->filemap[pnum]) { in bitmap_storage_alloc()
785 store->file_pages = pnum; in bitmap_storage_alloc()
788 store->filemap[pnum]->index = pnum + offset; in bitmap_storage_alloc()
790 store->file_pages = pnum; in bitmap_storage_alloc()
869 static inline void set_page_attr(struct bitmap *bitmap, int pnum, in set_page_attr() argument
[all …]
/drivers/message/fusion/
Dmptlan.c90 u8 pnum; /* Port number in the IOC. This is not a Unix network port! */ member
483 pResetReq->PortNumber = priv->pnum; in mpt_lan_reset()
748 pSendReq->PortNumber = priv->pnum; in mpt_lan_sdu_send()
1193 pRecvReq->PortNumber = priv->pnum; in mpt_lan_post_receive_buckets()
1313 mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum) in mpt_register_lan_device() argument
1329 priv->pnum = pnum; in mpt_register_lan_device()
/drivers/usb/serial/
Dmos7840.c2149 int pnum; in mos7840_port_probe() local
2155 pnum = port->port_number; in mos7840_port_probe()
2157 dev_dbg(&port->dev, "mos7840_startup: configuring port %d\n", pnum); in mos7840_port_probe()
2173 mos7840_port->port_num = pnum + 1; in mos7840_port_probe()
2286 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 2, status); in mos7840_port_probe()
2289 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 2, status); in mos7840_port_probe()
2298 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 1, status); in mos7840_port_probe()
2301 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 1, status); in mos7840_port_probe()
2341 if (pnum == serial->num_ports - 1) { in mos7840_port_probe()
/drivers/infiniband/hw/qib/
Dqib_iba7220.c3417 u32 pnum; in autoneg_7220_sendpkt() local
3423 while (!(piobuf = get_7220_link_buf(ppd, &pnum))) { in autoneg_7220_sendpkt()
3428 sendctrl_7220_mod(dd->pport, QIB_SENDCTRL_DISARM_BUF(pnum)); in autoneg_7220_sendpkt()
3434 u32 spcl_off = (pnum >= dd->piobcnt2k) ? 2047 : 1023; in autoneg_7220_sendpkt()
3440 qib_sendbuf_done(dd, pnum); in autoneg_7220_sendpkt()
Dqib_iba7322.c5262 u32 pnum, control, len; in autoneg_7322_sendpkt() local
5269 while (!(piobuf = qib_7322_getsendbuf(ppd, pbc, &pnum))) { in autoneg_7322_sendpkt()
5275 dd->f_txchk_change(dd, pnum, 1, TXCHK_CHG_TYPE_DIS1, NULL); in autoneg_7322_sendpkt()
5281 u32 spcl_off = (pnum >= dd->piobcnt2k) ? 2047 : 1023; in autoneg_7322_sendpkt()
5287 qib_sendbuf_done(dd, pnum); in autoneg_7322_sendpkt()
5289 dd->f_txchk_change(dd, pnum, 1, TXCHK_CHG_TYPE_ENAB1, NULL); in autoneg_7322_sendpkt()
/drivers/gpu/drm/
Ddrm_dp_mst_topology.c1078 int pnum, in build_mst_prop_path() argument
1091 snprintf(temp, sizeof(temp), "-%d", pnum); in build_mst_prop_path()