/drivers/mtd/ubi/ |
D | io.c | 81 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 …]
|
D | attach.c | 178 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 …]
|
D | wl.c | 125 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 …]
|
D | eba.c | 48 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() 185 dst->entries[i].pnum = src->entries[i].pnum; in ubi_eba_copy_table() 438 return vol->eba_tbl->entries[lnum].pnum >= 0; in ubi_eba_is_mapped() 454 int err, pnum, vol_id = vol->vol_id; in ubi_eba_unmap_leb() local 463 pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_unmap_leb() 464 if (pnum < 0) in ubi_eba_unmap_leb() 468 dbg_eba("erase LEB %d:%d, PEB %d", vol_id, lnum, pnum); in ubi_eba_unmap_leb() 471 vol->eba_tbl->entries[lnum].pnum = UBI_LEB_UNMAPPED; in ubi_eba_unmap_leb() [all …]
|
D | fastmap.c | 46 static inline void set_seen(struct ubi_device *ubi, int pnum, unsigned long *seen) in set_seen() argument 51 set_bit(pnum, seen); in set_seen() 61 int pnum, ret = 0; in self_check_seen() local 66 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen() 67 if (!test_bit(pnum, seen) && ubi->lookuptbl[pnum]) { in self_check_seen() 68 ubi_err(ubi, "self-check failed for PEB %d, fastmap didn't see it", pnum); in self_check_seen() 137 int pnum, int ec, int scrub) in add_aeb() argument 141 aeb = ubi_alloc_aeb(ai, pnum, ec); in add_aeb() 267 if (aeb->pnum == new_aeb->pnum) { in update_vol() 274 cmp_res = ubi_compare_lebs(ubi, aeb, new_aeb->pnum, new_vh); in update_vol() [all …]
|
D | ubi.h | 184 int pnum; member 279 int pnum; member 679 int pnum; member 824 struct ubi_ainf_peb *ubi_alloc_aeb(struct ubi_attach_info *ai, int pnum, 827 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, 909 int pnum, int torture); 911 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum); 921 int ubi_bitflip_check(struct ubi_device *ubi, int pnum, int force_scrub); 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, [all …]
|
D | fastmap-wl.c | 33 if (e->pnum < UBI_FM_MAX_START && e->ec < max_ec) { in find_anchor_wl_entry() 169 pool->pebs[pool->size] = e->pnum; in ubi_refill_pools() 183 wl_pool->pebs[wl_pool->size] = e->pnum; in ubi_refill_pools() 287 int pnum; in get_peb_for_wl() local 302 pnum = pool->pebs[pool->used++]; in get_peb_for_wl() 303 return ubi->lookuptbl[pnum]; in get_peb_for_wl() 367 int vol_id, pnum = fm_e->pnum; in ubi_wl_put_fm_peb() local 369 dbg_wl("PEB %d", pnum); in ubi_wl_put_fm_peb() 371 ubi_assert(pnum >= 0); in ubi_wl_put_fm_peb() 372 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb() [all …]
|
D | debug.h | 11 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,
|
D | debug.c | 22 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()
|
D | ubi-media.h | 465 __be32 pnum; member 501 __be32 pnum[]; member
|
D | cdev.c | 967 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()
|
D | vtbl.c | 317 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()
|
/drivers/gpu/drm/msm/disp/dpu1/ |
D | dpu_trace.h | 25 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 …]
|
/drivers/rapidio/switches/ |
D | idt_gen3.c | 231 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()
|
/drivers/rapidio/ |
D | rio.c | 867 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 …]
|
D | rio.h | 34 extern int rio_set_port_lockout(struct rio_dev *rdev, u32 pnum, int lock);
|
/drivers/md/ |
D | md-bitmap.c | 774 int pnum, offset = 0; in md_bitmap_storage_alloc() local 796 pnum = 0; in md_bitmap_storage_alloc() 799 pnum = 1; in md_bitmap_storage_alloc() 803 for ( ; pnum < num_pages; pnum++) { in md_bitmap_storage_alloc() 804 store->filemap[pnum] = alloc_page(GFP_KERNEL|__GFP_ZERO); in md_bitmap_storage_alloc() 805 if (!store->filemap[pnum]) { in md_bitmap_storage_alloc() 806 store->file_pages = pnum; in md_bitmap_storage_alloc() 809 store->filemap[pnum]->index = pnum + offset; in md_bitmap_storage_alloc() 811 store->file_pages = pnum; in md_bitmap_storage_alloc() 888 static inline void set_page_attr(struct bitmap *bitmap, int pnum, in set_page_attr() argument [all …]
|
/drivers/usb/serial/ |
D | mos7840.c | 1564 int pnum; in mos7840_port_probe() local 1570 pnum = port->port_number; in mos7840_port_probe() 1572 dev_dbg(&port->dev, "mos7840_startup: configuring port %d\n", pnum); in mos7840_port_probe() 1587 mos7840_port->port_num = pnum + 1; in mos7840_port_probe() 1694 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 2, status); in mos7840_port_probe() 1697 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 2, status); in mos7840_port_probe() 1706 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 1, status); in mos7840_port_probe() 1709 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 1, status); in mos7840_port_probe()
|
/drivers/message/fusion/ |
D | mptlan.c | 90 u8 pnum; /* Port number in the IOC. This is not a Unix network port! */ member 484 pResetReq->PortNumber = priv->pnum; in mpt_lan_reset() 739 pSendReq->PortNumber = priv->pnum; in mpt_lan_sdu_send() 1184 pRecvReq->PortNumber = priv->pnum; in mpt_lan_post_receive_buckets() 1303 mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum) in mpt_register_lan_device() argument 1319 priv->pnum = pnum; in mpt_register_lan_device()
|
/drivers/phy/freescale/ |
D | phy-fsl-imx8-mipi-dphy.c | 127 static void get_best_ratio(u32 *pnum, u32 *pdenom, u32 max_n, u32 max_d) in get_best_ratio() argument 129 u32 a = *pnum; in get_best_ratio() 150 *pnum = n[i]; in get_best_ratio()
|
/drivers/net/dsa/ |
D | rtl8366rb.c | 265 #define RTL8366RB_IB_REG(pnum) (RTL8366RB_IB_BASE + (pnum)) argument 271 #define RTL8366RB_EB_REG(pnum) (RTL8366RB_EB_BASE + (pnum)) argument
|
/drivers/infiniband/hw/qib/ |
D | qib_iba7220.c | 3377 u32 pnum; in autoneg_7220_sendpkt() local 3383 while (!(piobuf = get_7220_link_buf(ppd, &pnum))) { in autoneg_7220_sendpkt() 3388 sendctrl_7220_mod(dd->pport, QIB_SENDCTRL_DISARM_BUF(pnum)); in autoneg_7220_sendpkt() 3394 u32 spcl_off = (pnum >= dd->piobcnt2k) ? 2047 : 1023; in autoneg_7220_sendpkt() 3400 qib_sendbuf_done(dd, pnum); in autoneg_7220_sendpkt()
|
D | qib_iba7322.c | 5222 u32 pnum, control, len; in autoneg_7322_sendpkt() local 5229 while (!(piobuf = qib_7322_getsendbuf(ppd, pbc, &pnum))) { in autoneg_7322_sendpkt() 5235 dd->f_txchk_change(dd, pnum, 1, TXCHK_CHG_TYPE_DIS1, NULL); in autoneg_7322_sendpkt() 5241 u32 spcl_off = (pnum >= dd->piobcnt2k) ? 2047 : 1023; in autoneg_7322_sendpkt() 5247 qib_sendbuf_done(dd, pnum); in autoneg_7322_sendpkt() 5249 dd->f_txchk_change(dd, pnum, 1, TXCHK_CHG_TYPE_ENAB1, NULL); in autoneg_7322_sendpkt()
|
/drivers/infiniband/core/ |
D | mad.c | 64 u8 pnum = qp_info->port_priv->port_num; in create_mad_addr_info() local 72 ib_query_pkey(dev, pnum, wr->pkey_index, &pkey); in create_mad_addr_info()
|
/drivers/gpu/drm/ |
D | drm_dp_mst_topology.c | 2234 int pnum, in build_mst_prop_path() argument 2249 snprintf(temp, sizeof(temp), "-%d", pnum); in build_mst_prop_path()
|