/linux/drivers/mtd/ubi/ |
A D | io.c | 122 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read() 168 pnum); in ubi_io_read() 231 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_write() 313 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in do_sync_erase() 385 pnum); in torture_peb() 423 pnum); in torture_peb() 527 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_sync_erase() 576 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_is_bad() 606 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_mark_bad() 701 ubi_assert(pnum >= 0 && pnum < ubi->peb_count); in ubi_io_read_ec_hdr() [all …]
|
A D | attach.c | 187 aeb->pnum = pnum; in ubi_alloc_aeb() 475 pnum); in ubi_compare_lebs() 482 pnum); in ubi_compare_lebs() 490 pnum = aeb->pnum; in ubi_compare_lebs() 657 aeb->pnum = pnum; in ubi_add_to_av() 901 pnum); in check_corruption() 1173 pnum); in scan_peb() 1392 for (pnum = start; pnum < ubi->peb_count; pnum++) { in scan_all() 1506 for (pnum = 0; pnum < UBI_FM_MAX_START; pnum++) { in scan_fast() 1867 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_ai() [all …]
|
A D | wl.c | 155 ubi_assert(e->pnum != e1->pnum); in wl_tree_add() 156 if (e->pnum < e1->pnum) in wl_tree_add() 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() 922 e1->pnum, e2->pnum, err); 965 err, e1->pnum, e2->pnum); 1076 int pnum = e->pnum; local 1717 e->pnum = aeb->pnum; 1796 e->pnum = aeb->pnum; [all …]
|
A D | eba.c | 48 int pnum; member 111 ldesc->pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_get_ldesc() 184 dst->entries[i].pnum = src->entries[i].pnum; in ubi_eba_copy_table() 462 pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_unmap_leb() 463 if (pnum < 0) in ubi_eba_unmap_leb() 498 int *pnum) in check_mapping() argument 607 pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_read_leb() 953 err = pnum; in try_write_vid_and_data() 979 vol->eba_tbl->entries[lnum].pnum = pnum; in try_write_vid_and_data() 1021 pnum = vol->eba_tbl->entries[lnum].pnum; in ubi_eba_write_leb() [all …]
|
A D | fastmap.c | 66 for (pnum = 0; pnum < ubi->peb_count; pnum++) { in self_check_seen() 267 if (aeb->pnum == new_aeb->pnum) { in update_vol() 294 aeb->pnum = new_aeb->pnum; in update_vol() 378 if (aeb->pnum == pnum) { in unmap_peb() 725 int pnum = be32_to_cpu(fm_eba->pnum[j]); in ubi_attach_fastmap() local 732 if (tmp_aeb->pnum == pnum) { in ubi_attach_fastmap() 1215 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap() 1239 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap() 1251 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap() 1264 fec->pnum = cpu_to_be32(wl_e->pnum); in ubi_write_fastmap() [all …]
|
A D | ubi.h | 184 int pnum; member 279 int pnum; member 679 int pnum; member 909 int pnum, int torture); 911 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum); 931 int ubi_io_read_ec_hdr(struct ubi_device *ubi, int pnum, 962 int pnum, const struct ubi_vid_hdr *vid_hdr); 1134 int pnum, int offset, int len) in ubi_io_read_data() argument 1146 int pnum, int offset, int len) in ubi_io_write_data() argument 1215 int pnum) in ubi_find_fm_block() argument [all …]
|
A D | fastmap-wl.c | 144 pool->pebs[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() 337 int vol_id, pnum = fm_e->pnum; in ubi_wl_put_fm_peb() local 339 dbg_wl("PEB %d", pnum); in ubi_wl_put_fm_peb() 341 ubi_assert(pnum >= 0); in ubi_wl_put_fm_peb() 342 ubi_assert(pnum < ubi->peb_count); in ubi_wl_put_fm_peb() 345 e = ubi->lookuptbl[pnum]; in ubi_wl_put_fm_peb() 354 ubi->lookuptbl[pnum] = e; in ubi_wl_put_fm_peb() [all …]
|
A 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,
|
A 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()
|
A D | ubi-media.h | 465 __be32 pnum; member 501 __be32 pnum[]; member
|
A 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()
|
A 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()
|
/linux/security/selinux/ |
A D | netport.c | 68 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() 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 188 port = sel_netport_find(protocol, pnum); in sel_netport_sid() [all …]
|
/linux/mm/ |
A D | sparse.c | 283 (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); in sparse_encode_mem_map() 302 unsigned long pnum, struct page *mem_map, in sparse_init_one_section() argument 510 unsigned long pnum; in sparse_init_nid() local 520 for_each_present_section_nr(pnum_begin, pnum) { in sparse_init_nid() 521 unsigned long pfn = section_nr_to_pfn(pnum); in sparse_init_nid() 523 if (pnum >= pnum_end) in sparse_init_nid() 531 pnum_begin = pnum; in sparse_init_nid() 536 sparse_init_one_section(__nr_to_section(pnum), pnum, map, usage, in sparse_init_nid() 544 for_each_present_section_nr(pnum_begin, pnum) { in sparse_init_nid() 547 if (pnum >= pnum_end) in sparse_init_nid() [all …]
|
/linux/drivers/gpu/drm/msm/disp/dpu1/ |
A 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, 55 __field(u32, pnum) 62 __entry->pnum = pnum; 69 __entry->pnum, __entry->fmt, 76 TP_ARGS(pnum, xin_id, rd_lim, vbif_idx), 78 __field(u32, pnum) [all …]
|
/linux/drivers/rapidio/ |
A D | rio.c | 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() 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() 1087 RIO_DEV_PORT_N_ERR_STS_CSR(rdev, pnum), in rio_clr_err_stopped() 1095 if (rio_get_input_status(rdev, pnum, ®val)) { in rio_clr_err_stopped() 1101 pnum, regval); in rio_clr_err_stopped() 1105 RIO_DEV_PORT_N_ACK_STS_CSR(rdev, pnum), in rio_clr_err_stopped() 1111 pnum, far_ackid, far_linkstat, near_ackid); in rio_clr_err_stopped() [all …]
|
/linux/drivers/rapidio/switches/ |
A 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()
|
/linux/drivers/md/ |
A D | md-bitmap.c | 779 int pnum, offset = 0; in md_bitmap_storage_alloc() local 801 pnum = 0; in md_bitmap_storage_alloc() 804 pnum = 1; in md_bitmap_storage_alloc() 808 for ( ; pnum < num_pages; pnum++) { in md_bitmap_storage_alloc() 809 store->filemap[pnum] = alloc_page(GFP_KERNEL|__GFP_ZERO); in md_bitmap_storage_alloc() 810 if (!store->filemap[pnum]) { in md_bitmap_storage_alloc() 811 store->file_pages = pnum; in md_bitmap_storage_alloc() 814 store->filemap[pnum]->index = pnum + offset; in md_bitmap_storage_alloc() 816 store->file_pages = pnum; in md_bitmap_storage_alloc() 896 set_bit((pnum<<2) + attr, bitmap->storage.filemap_attr); in set_page_attr() [all …]
|
/linux/security/selinux/include/ |
A D | netport.h | 21 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
|
/linux/drivers/usb/serial/ |
A D | mos7840.c | 1537 int pnum; in mos7840_port_probe() local 1543 pnum = port->port_number; in mos7840_port_probe() 1545 dev_dbg(&port->dev, "mos7840_startup: configuring port %d\n", pnum); in mos7840_port_probe() 1560 mos7840_port->port_num = pnum + 1; in mos7840_port_probe() 1667 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 2, status); in mos7840_port_probe() 1670 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 2, status); in mos7840_port_probe() 1679 dev_dbg(&port->dev, "Writing ZLP_REG%d failed status-0x%x\n", pnum + 1, status); in mos7840_port_probe() 1682 dev_dbg(&port->dev, "ZLP_REG%d Writing success status%d\n", pnum + 1, status); in mos7840_port_probe()
|
/linux/drivers/phy/freescale/ |
A 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()
|
/linux/include/dt-bindings/usb/ |
A D | pd.h | 230 #define VDO_DFP(ver, cap, conn, pnum) \ argument 232 | ((pnum) & 0x1f))
|
/linux/drivers/message/fusion/ |
A D | mptlan.c | 87 u8 pnum; /* Port number in the IOC. This is not a Unix network port! */ member 481 pResetReq->PortNumber = priv->pnum; in mpt_lan_reset() 736 pSendReq->PortNumber = priv->pnum; in mpt_lan_sdu_send() 1181 pRecvReq->PortNumber = priv->pnum; in mpt_lan_post_receive_buckets() 1300 mpt_register_lan_device (MPT_ADAPTER *mpt_dev, int pnum) in mpt_register_lan_device() argument 1316 priv->pnum = pnum; in mpt_register_lan_device()
|
/linux/include/linux/usb/ |
A D | pd_vdo.h | 253 #define VDO_DFP(ver, cap, conn, pnum) \ argument 255 | ((pnum) & 0x1f))
|
/linux/drivers/net/dsa/ |
A D | rtl8366rb.c | 297 #define RTL8366RB_IB_REG(pnum) (RTL8366RB_IB_BASE + (pnum)) argument 303 #define RTL8366RB_EB_REG(pnum) (RTL8366RB_EB_BASE + (pnum)) argument 337 #define RTL8366RB_PORT_ISO(pnum) (RTL8366RB_PORT_ISO_BASE + (pnum)) argument
|