/kernel/linux/linux-5.10/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 681 int pnum; member 826 struct ubi_ainf_peb *ubi_alloc_aeb(struct ubi_attach_info *ai, int pnum, 829 int ubi_add_to_av(struct ubi_device *ubi, struct ubi_attach_info *ai, int pnum, 911 int pnum, int torture); 913 int ubi_wl_scrub_peb(struct ubi_device *ubi, int pnum); 923 int ubi_bitflip_check(struct ubi_device *ubi, int pnum, int force_scrub); 926 int ubi_io_read(const struct ubi_device *ubi, void *buf, int pnum, int offset, 928 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() 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() 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() [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 | ubi-media.h | 465 __be32 pnum; member 501 __be32 pnum[]; member
|
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 | 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()
|
/kernel/linux/linux-5.10/security/selinux/ |
D | netport.c | 69 static unsigned int sel_netport_hashfn(u16 pnum) in sel_netport_hashfn() argument 71 return (pnum & (SEL_NETPORT_HASH_SIZE - 1)); in sel_netport_hashfn() 84 static struct sel_netport *sel_netport_find(u8 protocol, u16 pnum) in sel_netport_find() argument 89 idx = sel_netport_hashfn(pnum); in sel_netport_find() 91 if (port->psec.port == pnum && port->psec.protocol == protocol) in sel_netport_find() 138 static int sel_netport_sid_slow(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid_slow() argument 145 port = sel_netport_find(protocol, pnum); in sel_netport_sid_slow() 152 ret = security_port_sid(&selinux_state, protocol, pnum, sid); in sel_netport_sid_slow() 157 new->psec.port = pnum; in sel_netport_sid_slow() 184 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid) in sel_netport_sid() argument [all …]
|
/kernel/linux/linux-5.10/mm/ |
D | sparse.c | 306 static unsigned long sparse_encode_mem_map(struct page *mem_map, unsigned long pnum) in sparse_encode_mem_map() argument 309 (unsigned long)(mem_map - (section_nr_to_pfn(pnum))); in sparse_encode_mem_map() 319 struct page *sparse_decode_mem_map(unsigned long coded_mem_map, unsigned long pnum) in sparse_decode_mem_map() argument 323 return ((struct page *)coded_mem_map) + section_nr_to_pfn(pnum); in sparse_decode_mem_map() 328 unsigned long pnum, struct page *mem_map, in sparse_init_one_section() argument 332 ms->section_mem_map |= sparse_encode_mem_map(mem_map, pnum) in sparse_init_one_section() 528 unsigned long pnum; in sparse_init_nid() local 538 for_each_present_section_nr(pnum_begin, pnum) { in sparse_init_nid() 539 unsigned long pfn = section_nr_to_pfn(pnum); in sparse_init_nid() 541 if (pnum >= pnum_end) in sparse_init_nid() [all …]
|
/kernel/linux/linux-5.10/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 …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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);
|
/kernel/linux/linux-5.10/security/selinux/include/ |
D | netport.h | 21 int sel_netport_sid(u8 protocol, u16 pnum, u32 *sid);
|
/kernel/linux/linux-5.10/drivers/md/ |
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() 893 static inline void set_page_attr(struct bitmap *bitmap, int pnum, in set_page_attr() argument [all …]
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/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()
|
/kernel/linux/linux-5.10/net/bridge/netfilter/ |
D | nf_conntrack_bridge.c | 383 unsigned char pnum = ipv6_hdr(skb)->nexthdr; in nf_ct_bridge_confirm() local 386 protoff = ipv6_skip_exthdr(skb, sizeof(struct ipv6hdr), &pnum, in nf_ct_bridge_confirm()
|
/kernel/linux/linux-5.10/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
|