Searched refs:page_id (Results 1 - 13 of 13) sorted by relevance

/linux-4.1.27/arch/cris/arch-v10/mm/
H A Dtlb.c21 * page_id that has to match to give a hit. In page_id_map, we keep track
22 * of which mm's we have assigned which page_id's, so that we know when
25 * The last page_id is never running - it is used as an invalid page_id
48 *R_TLB_HI = ( IO_FIELD(R_TLB_HI, page_id, INVALID_PAGEID ) | flush_tlb_all()
67 int page_id = mm->context.page_id; flush_tlb_mm() local
70 D(printk("tlb: flush mm context %d (%p)\n", page_id, mm)); flush_tlb_mm()
72 if(page_id == NO_CONTEXT) flush_tlb_mm()
75 /* mark the TLB entries that match the page_id as invalid. flush_tlb_mm()
83 if (IO_EXTRACT(R_TLB_HI, page_id, *R_TLB_HI) == page_id) { flush_tlb_mm()
84 *R_TLB_HI = ( IO_FIELD(R_TLB_HI, page_id, INVALID_PAGEID ) | flush_tlb_mm()
102 int page_id = mm->context.page_id; flush_tlb_page() local
106 D(printk("tlb: flush page %p in context %d (%p)\n", addr, page_id, mm)); flush_tlb_page()
108 if(page_id == NO_CONTEXT) flush_tlb_page()
122 if (IO_EXTRACT(R_TLB_HI, page_id, tlb_hi) == page_id && flush_tlb_page()
124 *R_TLB_HI = IO_FIELD(R_TLB_HI, page_id, INVALID_PAGEID ) | flush_tlb_page()
145 mm->context.page_id = NO_CONTEXT; init_new_context()
173 page_id, next->context.page_id); switch_mm()
H A Dfault.c45 int page_id; handle_mmu_bus_fault() local
61 page_id = IO_EXTRACT(R_MMU_CAUSE, page_id, cause); handle_mmu_bus_fault()
71 regs->irp, address, miss, inv, we, acc, index, page_id)); handle_mmu_bus_fault()
H A Dinit.c152 *R_MMU_CONTEXT = ( IO_FIELD(R_MMU_CONTEXT, page_id, 0 ) ); paging_init()
/linux-4.1.27/arch/cris/arch-v32/mm/
H A Dtlb.c31 * context is found in the PID register. Each TLB entry contains a page_id that
33 * mm's is assigned to which page_id's, making sure it's known when to
36 * The last page_id is never running, it is used as an invalid page_id so that
84 unsigned long page_id; __flush_tlb_mm() local
88 page_id = mm->context.page_id; __flush_tlb_mm()
90 if (page_id == NO_CONTEXT) __flush_tlb_mm()
93 /* Mark the TLB entries that match the page_id as invalid. */ __flush_tlb_mm()
101 /* Get the page_id */ __flush_tlb_mm()
104 /* Check if the page_id match. */ __flush_tlb_mm()
105 if ((tlb_hi & 0xff) == page_id) { __flush_tlb_mm()
125 unsigned long page_id; __flush_tlb_page() local
130 page_id = vma->vm_mm->context.page_id; __flush_tlb_page()
132 if (page_id == NO_CONTEXT) __flush_tlb_page()
149 /* Check if page_id and address matches */ __flush_tlb_page()
150 if (((tlb_hi & 0xff) == page_id) && __flush_tlb_page()
171 mm->context.page_id = NO_CONTEXT; init_new_context()
200 SPEC_REG_WR(SPEC_REG_PID, next->context.page_id | switch_mm()
203 SPEC_REG_WR(SPEC_REG_PID, next->context.page_id); switch_mm()
/linux-4.1.27/arch/cris/include/arch-v10/arch/
H A Dtlb.h5 * The last page_id is never running - it is used as an invalid page_id
H A Dmmu.h12 unsigned int page_id; member in struct:__anon342
/linux-4.1.27/arch/cris/include/arch-v32/arch/
H A Dtlb.h5 * The TLB is a 64-entry cache. Each entry has a 8-bit page_id that is used
7 * last page_id is never used so we can make TLB entries that never matches.
H A Dmmu.h7 unsigned int page_id; member in struct:__anon874
/linux-4.1.27/arch/cris/mm/
H A Dtlb.c18 * page_id that has to match to give a hit. In page_id_map, we keep track
19 * of which mm we have assigned to which page_id, so that we know when
22 * The last page_id is never running - it is used as an invalid page_id
52 old_mm->context.page_id = NO_CONTEXT; alloc_context()
57 mm->context.page_id = map_replace_ptr; alloc_context()
73 if(mm->context.page_id == NO_CONTEXT) get_mmu_context()
88 if(mm->context.page_id != NO_CONTEXT) { destroy_context()
89 D(printk("destroy_context %d (%p)\n", mm->context.page_id, mm)); destroy_context()
91 page_id_map[mm->context.page_id] = NULL; destroy_context()
102 /* clear the page_id map */ tlb_init()
/linux-4.1.27/drivers/staging/mt29f_spinand/
H A Dmt29f_spinand.c301 static int spinand_read_page_to_cache(struct spi_device *spi_nand, u16 page_id) spinand_read_page_to_cache() argument
306 row = page_id; spinand_read_page_to_cache()
323 static int spinand_read_from_cache(struct spi_device *spi_nand, u16 page_id, spinand_read_from_cache() argument
333 cmd.addr[0] |= (u8)(((page_id >> 6) & 0x1) << 4); spinand_read_from_cache()
345 * @page_id: the physical page number
354 static int spinand_read_page(struct spi_device *spi_nand, u16 page_id, spinand_read_page() argument
366 ret = spinand_read_page_to_cache(spi_nand, page_id); spinand_read_page()
384 page_id); spinand_read_page()
391 ret = spinand_read_from_cache(spi_nand, page_id, offset, len, rbuf); spinand_read_page()
422 u16 page_id, u16 byte_id, u16 len, u8 *wbuf) spinand_program_data_to_cache()
431 cmd.addr[0] |= (u8)(((page_id >> 6) & 0x1) << 4); spinand_program_data_to_cache()
441 * @page_id: the physical page location to write the page.
448 static int spinand_program_execute(struct spi_device *spi_nand, u16 page_id) spinand_program_execute() argument
453 row = page_id; spinand_program_execute()
464 * @page_id: the physical page location to write the page.
476 u16 page_id, u16 offset, u16 len, u8 *buf) spinand_program_page()
486 spinand_read_page(spi_nand, page_id, 0, CACHE_BUF, wbuf); spinand_program_page()
509 retval = spinand_program_data_to_cache(spi_nand, page_id, spinand_program_page()
513 retval = spinand_program_execute(spi_nand, page_id); spinand_program_page()
528 "program error, page %d\n", page_id); spinand_program_page()
421 spinand_program_data_to_cache(struct spi_device *spi_nand, u16 page_id, u16 byte_id, u16 len, u8 *wbuf) spinand_program_data_to_cache() argument
475 spinand_program_page(struct spi_device *spi_nand, u16 page_id, u16 offset, u16 len, u8 *buf) spinand_program_page() argument
/linux-4.1.27/drivers/scsi/device_handler/
H A Dscsi_dh_rdac.c110 u8 page_id[4]; /* "vace" */ member in struct:c9_inquiry
125 u8 page_id[4]; /* "subs" */ member in struct:c4_inquiry
138 u8 page_id[4]; /* "edid" */ member in struct:c8_inquiry
175 u8 page_id[4]; /* "swr4" */ member in struct:c2_inquiry
447 if (inqp->page_id[0] != 'e' || inqp->page_id[1] != 'd' || get_lun_info()
448 inqp->page_id[2] != 'i' || inqp->page_id[3] != 'd') get_lun_info()
/linux-4.1.27/include/scsi/
H A Dosd_initiator.h512 u32 page_id, void *attr_page_data, unsigned max_page_len,
/linux-4.1.27/drivers/scsi/osd/
H A Dosd_initiator.c1424 u32 page_id, void *attar_page, unsigned max_page_len, osd_req_add_get_attr_page()
1439 cdbh->attrs_page.get_attr_page = cpu_to_be32(page_id); osd_req_add_get_attr_page()
1423 osd_req_add_get_attr_page(struct osd_request *or, u32 page_id, void *attar_page, unsigned max_page_len, const struct osd_attr *set_one_attr) osd_req_add_get_attr_page() argument

Completed in 696 milliseconds