/linux-4.1.27/arch/sparc/mm/ |
H A D | tsb.c | 1 /* arch/sparc64/mm/tsb.c 13 #include <asm/tsb.h> 17 extern struct tsb swapper_tsb[KERNEL_TSB_NENTRIES]; 42 struct tsb *ent = &swapper_tsb[hash]; flush_tsb_kernel_range() 49 static void __flush_tsb_one_entry(unsigned long tsb, unsigned long v, __flush_tsb_one_entry() argument 57 ent = tsb + (hash * sizeof(struct tsb)); __flush_tsb_one_entry() 64 unsigned long tsb, unsigned long nentries) __flush_tsb_one() 69 __flush_tsb_one_entry(tsb, tb->vaddrs[i], hash_shift, nentries); __flush_tsb_one() 79 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; flush_tsb_user() 86 if (mm->context.tsb_block[MM_TSB_HUGE].tsb) { flush_tsb_user() 87 base = (unsigned long) mm->context.tsb_block[MM_TSB_HUGE].tsb; flush_tsb_user() 103 base = (unsigned long) mm->context.tsb_block[MM_TSB_BASE].tsb; flush_tsb_user_page() 110 if (mm->context.tsb_block[MM_TSB_HUGE].tsb) { flush_tsb_user_page() 111 base = (unsigned long) mm->context.tsb_block[MM_TSB_HUGE].tsb; flush_tsb_user_page() 135 tsb_bytes / sizeof(struct tsb); setup_tsb_params() 151 tsb_paddr = __pa(mm->context.tsb_block[tsb_idx].tsb); setup_tsb_params() 307 unsigned long num_ents = (new_size / sizeof(struct tsb)); tsb_size_to_rss_limit() 335 struct tsb *old_tsb, *new_tsb; tsb_grow() 367 if (mm->context.tsb_block[tsb_index].tsb == NULL && tsb_grow() 378 if (mm->context.tsb_block[tsb_index].tsb != NULL) tsb_grow() 410 old_tsb = mm->context.tsb_block[tsb_index].tsb; tsb_grow() 414 sizeof(struct tsb)); tsb_grow() 446 mm->context.tsb_block[tsb_index].tsb = new_tsb; tsb_grow() 463 /* Now it is safe to free the old tsb. */ tsb_grow() 493 mm->context.tsb_block[i].tsb = NULL; init_new_context() 505 if (unlikely(!mm->context.tsb_block[MM_TSB_BASE].tsb)) init_new_context() 515 if (!tp->tsb) tsb_destroy_one() 518 kmem_cache_free(tsb_caches[cache_index], tp->tsb); tsb_destroy_one() 519 tp->tsb = NULL; tsb_destroy_one() 63 __flush_tsb_one(struct tlb_batch *tb, unsigned long hash_shift, unsigned long tsb, unsigned long nentries) __flush_tsb_one() argument
|
H A D | Makefile | 7 obj-$(CONFIG_SPARC64) += ultra.o tlb.o tsb.o gup.o
|
H A D | init_64.c | 46 #include <asm/tsb.h> 85 extern struct tsb swapper_4m_tsb[KERNEL_TSB4M_NENTRIES]; 87 extern struct tsb swapper_tsb[KERNEL_TSB_NENTRIES]; 267 static inline void tsb_insert(struct tsb *ent, unsigned long tag, unsigned long pte) tsb_insert() 313 struct tsb *tsb = mm->context.tsb_block[tsb_index].tsb; __update_mmu_tsb_insert() local 316 if (unlikely(!tsb)) __update_mmu_tsb_insert() 319 tsb += ((address >> tsb_hash_shift) & __update_mmu_tsb_insert() 322 tsb_insert(tsb, tag, tte); __update_mmu_tsb_insert() 1580 struct tsb *ent = &swapper_tsb[i]; flush_all_kernel_tsbs() 1586 struct tsb *ent = &swapper_4m_tsb[i]; flush_all_kernel_tsbs() 2719 if (mm->context.tsb_block[MM_TSB_HUGE].tsb != NULL) update_mmu_cache_pmd() 2755 if (likely(tp->tsb == NULL)) hugetlb_setup()
|
H A D | fault_64.c | 491 if (mm->context.tsb_block[MM_TSB_HUGE].tsb) do_sparc64_fault()
|
/linux-4.1.27/drivers/s390/cio/ |
H A D | fcx.c | 61 * tcw_get_tsb - return pointer to tsb associated with tcw 64 * Return pointer to the tsb associated with this tcw. 66 struct tsb *tcw_get_tsb(struct tcw *tcw) tcw_get_tsb() 68 return (struct tsb *) ((addr_t) tcw->tsb); tcw_get_tsb() 234 * tcw_set_tsb - set tsb address of a tcw 236 * @tsb: the tsb address 238 * Set the address of the tsb in the specified tcw. 240 void tcw_set_tsb(struct tcw *tcw, struct tsb *tsb) tcw_set_tsb() argument 242 tcw->tsb = (u64) ((addr_t) tsb); tcw_set_tsb() 265 * tsb_init - initialize tsb 266 * @tsb: the tsb address 268 * Initialize the specified tsb by resetting all values to zero. 270 void tsb_init(struct tsb *tsb) tsb_init() argument 272 memset(tsb, 0, sizeof(*tsb)); tsb_init()
|
H A D | itcw.c | 21 * tcw and associated tccb, tsb, data tidaw-list plus an optional interrogate 101 /* TSB */ sizeof(struct tsb) + itcw_calc_size() 106 /* TSB */ sizeof(struct tsb) + itcw_calc_size() 241 chunk = fit_chunk(&start, end, sizeof(struct tsb), 8, 0); itcw_init() 248 chunk = fit_chunk(&start, end, sizeof(struct tsb), 8, 0); itcw_init()
|
/linux-4.1.27/arch/sparc/include/asm/ |
H A D | mmu_64.h | 65 struct tsb { struct 72 void tsb_init(struct tsb *tsb, unsigned long size); 75 struct tsb *tsb; member in struct:tsb_config
|
H A D | mmu_context_64.h | 40 (mm->context.tsb_block[1].tsb ? tsb_context_switch()
|
H A D | hypervisor.h | 1685 * tsbnum TSB number. Indentifies which io-tsb is used.
|
/linux-4.1.27/arch/s390/include/asm/ |
H A D | fcx.h | 30 * @tsb: Transport-Status-Block Address 47 u64 tsb; member in struct:tcw 151 * struct tsb - Transport-Status Block (TSB) 160 struct tsb { struct 294 struct tsb *tcw_get_tsb(struct tcw *tcw); 302 void tcw_set_tsb(struct tcw *tcw, struct tsb *tsb); 305 void tsb_init(struct tsb *tsb);
|
/linux-4.1.27/drivers/staging/lustre/lnet/selftest/ |
H A D | framework.c | 118 int sfw_stop_batch(sfw_batch_t *tsb, int force); 203 sfw_batch_t *tsb; variable 222 list_for_each_entry(tsb, &sn->sn_batches, bat_list) { 223 if (sfw_batch_active(tsb)) { 225 sfw_stop_batch(tsb, 1); 645 sfw_destroy_batch(sfw_batch_t *tsb) sfw_destroy_batch() argument 649 LASSERT(!sfw_batch_active(tsb)); sfw_destroy_batch() 650 LASSERT(list_empty(&tsb->bat_list)); sfw_destroy_batch() 652 while (!list_empty(&tsb->bat_tests)) { sfw_destroy_batch() 653 tsi = list_entry(tsb->bat_tests.next, sfw_destroy_batch() 659 LIBCFS_FREE(tsb, sizeof(sfw_batch_t)); sfw_destroy_batch() 729 sfw_add_test_instance(sfw_batch_t *tsb, srpc_server_rpc_t *rpc) sfw_add_test_instance() argument 743 tsb->bat_id.bat_id); sfw_add_test_instance() 754 tsi->tsi_batch = tsb; sfw_add_test_instance() 767 LASSERT(!sfw_batch_active(tsb)); sfw_add_test_instance() 770 /* it's test server, just add it to tsb */ sfw_add_test_instance() 771 list_add_tail(&tsi->tsi_list, &tsb->bat_tests); sfw_add_test_instance() 813 list_add_tail(&tsi->tsi_list, &tsb->bat_tests); sfw_add_test_instance() 827 sfw_batch_t *tsb = tsi->tsi_batch; sfw_test_unit_done() local 828 sfw_session_t *sn = tsb->bat_session; sfw_test_unit_done() 844 if (!atomic_dec_and_test(&tsb->bat_nactive) ||/* tsb still active */ sfw_test_unit_done() 852 list_for_each_entry(tsb, &sn->sn_batches, bat_list) { sfw_test_unit_done() 853 if (sfw_batch_active(tsb)) { sfw_test_unit_done() 996 sfw_run_batch(sfw_batch_t *tsb) sfw_run_batch() argument 1002 if (sfw_batch_active(tsb)) { sfw_run_batch() 1004 tsb->bat_id.bat_id, atomic_read(&tsb->bat_nactive)); sfw_run_batch() 1008 list_for_each_entry(tsi, &tsb->bat_tests, tsi_list) { sfw_run_batch() 1015 atomic_inc(&tsb->bat_nactive); sfw_run_batch() 1032 sfw_stop_batch(sfw_batch_t *tsb, int force) sfw_stop_batch() argument 1037 if (!sfw_batch_active(tsb)) { sfw_stop_batch() 1038 CDEBUG(D_NET, "Batch %llu inactive\n", tsb->bat_id.bat_id); sfw_stop_batch() 1042 list_for_each_entry(tsi, &tsb->bat_tests, tsi_list) { sfw_stop_batch() 1074 sfw_query_batch(sfw_batch_t *tsb, int testidx, srpc_batch_reply_t *reply) sfw_query_batch() argument 1082 reply->bar_active = atomic_read(&tsb->bat_nactive); sfw_query_batch() 1086 list_for_each_entry(tsi, &tsb->bat_tests, tsi_list) { sfw_query_batch()
|
H A D | conrpc.h | 118 struct lstcon_tsb_hdr *tsb, lstcon_rpc_t **crpc);
|
H A D | conrpc.c | 657 lstcon_tsb_hdr_t *tsb, lstcon_rpc_t **crpc) lstcon_batrpc_prep() 670 brq->bar_bid = tsb->tsb_id; lstcon_batrpc_prep() 671 brq->bar_testidx = tsb->tsb_index; lstcon_batrpc_prep() 680 LASSERT(tsb->tsb_index == 0); lstcon_batrpc_prep() 682 batch = (lstcon_batch_t *)tsb; lstcon_batrpc_prep() 656 lstcon_batrpc_prep(lstcon_node_t *nd, int transop, unsigned feats, lstcon_tsb_hdr_t *tsb, lstcon_rpc_t **crpc) lstcon_batrpc_prep() argument
|
/linux-4.1.27/arch/sparc/kernel/ |
H A D | tsb.S | 0 /* tsb.S: Sparc64 TSB table handling. 7 #include <asm/tsb.h> 468 add %o0, %o1, %g1 /* end of old tsb */ 470 sub %o3, 1, %o3 /* %o3 == new tsb hash mask */ 500 sllx %o4, 4, %o4 /* Shift back up into tsb ent offset */
|
H A D | ktlb.S | 13 #include <asm/tsb.h>
|
H A D | iommu.c | 135 printk(KERN_ERR "IOMMU: Error, gfp(tsb) failed.\n"); iommu_table_init()
|
H A D | head_64.S | 883 #include "tsb.S"
|
H A D | traps_64.c | 2752 offsetof(struct tsb_config, tsb)) || trap_init()
|
/linux-4.1.27/drivers/s390/block/ |
H A D | dasd_eckd.c | 4247 struct tsb *tsb; dasd_eckd_dump_sense_tcw() local 4273 tsb = NULL; dasd_eckd_dump_sense_tcw() 4276 tsb = tcw_get_tsb( dasd_eckd_dump_sense_tcw() 4279 if (tsb) { dasd_eckd_dump_sense_tcw() 4281 " tsb->length %d\n", tsb->length); dasd_eckd_dump_sense_tcw() 4283 " tsb->flags %x\n", tsb->flags); dasd_eckd_dump_sense_tcw() 4285 " tsb->dcw_offset %d\n", tsb->dcw_offset); dasd_eckd_dump_sense_tcw() 4287 " tsb->count %d\n", tsb->count); dasd_eckd_dump_sense_tcw() 4288 residual = tsb->count - 28; dasd_eckd_dump_sense_tcw() 4292 switch (tsb->flags & 0x07) { dasd_eckd_dump_sense_tcw() 4295 " tsb->tsa.iostat.dev_time %d\n", dasd_eckd_dump_sense_tcw() 4296 tsb->tsa.iostat.dev_time); dasd_eckd_dump_sense_tcw() 4298 " tsb->tsa.iostat.def_time %d\n", dasd_eckd_dump_sense_tcw() 4299 tsb->tsa.iostat.def_time); dasd_eckd_dump_sense_tcw() 4301 " tsb->tsa.iostat.queue_time %d\n", dasd_eckd_dump_sense_tcw() 4302 tsb->tsa.iostat.queue_time); dasd_eckd_dump_sense_tcw() 4304 " tsb->tsa.iostat.dev_busy_time %d\n", dasd_eckd_dump_sense_tcw() 4305 tsb->tsa.iostat.dev_busy_time); dasd_eckd_dump_sense_tcw() 4307 " tsb->tsa.iostat.dev_act_time %d\n", dasd_eckd_dump_sense_tcw() 4308 tsb->tsa.iostat.dev_act_time); dasd_eckd_dump_sense_tcw() 4309 sense = tsb->tsa.iostat.sense; dasd_eckd_dump_sense_tcw() 4313 " tsb->tsa.ddpc.rc %d\n", tsb->tsa.ddpc.rc); dasd_eckd_dump_sense_tcw() 4316 " tsb->tsa.ddpc.rcq %2d-%2d: ", dasd_eckd_dump_sense_tcw() 4318 rcq = tsb->tsa.ddpc.rcq; dasd_eckd_dump_sense_tcw() 4325 sense = tsb->tsa.ddpc.sense; dasd_eckd_dump_sense_tcw() 4329 " tsb->tsa.intrg.: not supportet yet\n"); dasd_eckd_dump_sense_tcw()
|
H A D | dasd_3990_erp.c | 2306 struct tsb *tsb; dasd_3990_erp_add_erp() local 2311 datasize = 64 + sizeof(struct tcw) + sizeof(struct tsb); dasd_3990_erp_add_erp() 2338 /* make a shallow copy of the original tcw but set new tsb */ dasd_3990_erp_add_erp() 2342 tsb = (struct tsb *) &tcw[1]; dasd_3990_erp_add_erp() 2344 tcw->tsb = (long)tsb; dasd_3990_erp_add_erp()
|
H A D | dasd.c | 3786 struct tsb *tsb = NULL; dasd_get_sense() local 3791 tsb = tcw_get_tsb((struct tcw *)(unsigned long) dasd_get_sense() 3793 if (tsb && tsb->length == 64 && tsb->flags) dasd_get_sense() 3794 switch (tsb->flags & 0x07) { dasd_get_sense() 3796 sense = tsb->tsa.iostat.sense; dasd_get_sense() 3799 sense = tsb->tsa.ddpc.sense; dasd_get_sense()
|
/linux-4.1.27/drivers/net/ethernet/broadcom/ |
H A D | bcmsysport.c | 875 struct bcm_tsb *tsb; bcm_sysport_insert_tsb() local 882 if (unlikely(skb_headroom(skb) < sizeof(*tsb))) { bcm_sysport_insert_tsb() 883 nskb = skb_realloc_headroom(skb, sizeof(*tsb)); bcm_sysport_insert_tsb() 893 tsb = (struct bcm_tsb *)skb_push(skb, sizeof(*tsb)); bcm_sysport_insert_tsb() 895 memset(tsb, 0, sizeof(*tsb)); bcm_sysport_insert_tsb() 911 csum_start = skb_checksum_start_offset(skb) - sizeof(*tsb); bcm_sysport_insert_tsb() 923 tsb->l4_ptr_dest_map = csum_info; bcm_sysport_insert_tsb()
|
/linux-4.1.27/kernel/ |
H A D | sysctl.c | 560 .procname = "tsb-ratio",
|