Home
last modified time | relevance | path

Searched refs:csa (Results 1 – 25 of 25) sorted by relevance

/Linux-v6.1/arch/powerpc/platforms/cell/spufs/
Dbacking_ops.c40 ch0_cnt = ctx->csa.spu_chnlcnt_RW[0]; in gen_spu_event()
41 ch0_data = ctx->csa.spu_chnldata_RW[0]; in gen_spu_event()
42 ch1_data = ctx->csa.spu_chnldata_RW[1]; in gen_spu_event()
43 ctx->csa.spu_chnldata_RW[0] |= event; in gen_spu_event()
45 ctx->csa.spu_chnlcnt_RW[0] = 1; in gen_spu_event()
54 spin_lock(&ctx->csa.register_lock); in spu_backing_mbox_read()
55 mbox_stat = ctx->csa.prob.mb_stat_R; in spu_backing_mbox_read()
61 *data = ctx->csa.prob.pu_mb_R; in spu_backing_mbox_read()
62 ctx->csa.prob.mb_stat_R &= ~(0x0000ff); in spu_backing_mbox_read()
63 ctx->csa.spu_chnlcnt_RW[28] = 1; in spu_backing_mbox_read()
[all …]
Dswitch.c81 static inline int check_spu_isolate(struct spu_state *csa, struct spu *spu) in check_spu_isolate() argument
97 static inline void disable_interrupts(struct spu_state *csa, struct spu *spu) in disable_interrupts() argument
111 if (csa) { in disable_interrupts()
112 csa->priv1.int_mask_class0_RW = spu_int_mask_get(spu, 0); in disable_interrupts()
113 csa->priv1.int_mask_class1_RW = spu_int_mask_get(spu, 1); in disable_interrupts()
114 csa->priv1.int_mask_class2_RW = spu_int_mask_get(spu, 2); in disable_interrupts()
134 static inline void set_watchdog_timer(struct spu_state *csa, struct spu *spu) in set_watchdog_timer() argument
147 static inline void inhibit_user_access(struct spu_state *csa, struct spu *spu) in inhibit_user_access() argument
158 static inline void set_switch_pending(struct spu_state *csa, struct spu *spu) in set_switch_pending() argument
167 static inline void save_mfc_cntl(struct spu_state *csa, struct spu *spu) in save_mfc_cntl() argument
[all …]
Dlscsa_alloc.c21 int spu_alloc_lscsa(struct spu_state *csa) in spu_alloc_lscsa() argument
29 csa->lscsa = lscsa; in spu_alloc_lscsa()
38 void spu_free_lscsa(struct spu_state *csa) in spu_free_lscsa() argument
43 if (csa->lscsa == NULL) in spu_free_lscsa()
46 for (p = csa->lscsa->ls; p < csa->lscsa->ls + LS_SIZE; p += PAGE_SIZE) in spu_free_lscsa()
49 vfree(csa->lscsa); in spu_free_lscsa()
Dfault.c55 unsigned long stat = ctx->csa.class_0_pending & CLASS0_INTR_MASK; in spufs_handle_class0()
61 spufs_handle_event(ctx, ctx->csa.class_0_dar, in spufs_handle_class0()
65 spufs_handle_event(ctx, ctx->csa.class_0_dar, in spufs_handle_class0()
69 spufs_handle_event(ctx, ctx->csa.class_0_dar, in spufs_handle_class0()
72 ctx->csa.class_0_pending = 0; in spufs_handle_class0()
102 ea = ctx->csa.class_1_dar; in spufs_handle_class1()
103 dsisr = ctx->csa.class_1_dsisr; in spufs_handle_class1()
141 ctx->csa.class_1_dar = ctx->csa.class_1_dsisr = 0; in spufs_handle_class1()
Dfile.c249 pfn = vmalloc_to_pfn(ctx->csa.lscsa->ls + offset); in spufs_mem_mmap_fault()
471 return spufs_dump_emit(cprm, ctx->csa.lscsa->gprs, in spufs_regs_dump()
472 sizeof(ctx->csa.lscsa->gprs)); in spufs_regs_dump()
484 if (*pos >= sizeof(ctx->csa.lscsa->gprs)) in spufs_regs_read()
490 ret = simple_read_from_buffer(buffer, size, pos, ctx->csa.lscsa->gprs, in spufs_regs_read()
491 sizeof(ctx->csa.lscsa->gprs)); in spufs_regs_read()
501 struct spu_lscsa *lscsa = ctx->csa.lscsa; in spufs_regs_write()
528 return spufs_dump_emit(cprm, &ctx->csa.lscsa->fpcr, in spufs_fpcr_dump()
529 sizeof(ctx->csa.lscsa->fpcr)); in spufs_fpcr_dump()
542 ret = simple_read_from_buffer(buffer, size, pos, &ctx->csa.lscsa->fpcr, in spufs_fpcr_read()
[all …]
Drun.c30 ctx->csa.class_0_pending = spu->class_0_pending; in spufs_stop_callback()
31 ctx->csa.class_0_dar = spu->class_0_dar; in spufs_stop_callback()
34 ctx->csa.class_1_dsisr = spu->class_1_dsisr; in spufs_stop_callback()
35 ctx->csa.class_1_dar = spu->class_1_dar; in spufs_stop_callback()
72 dsisr = ctx->csa.class_1_dsisr; in spu_stopped()
76 if (ctx->csa.class_0_pending) in spu_stopped()
Dspufs.h69 struct spu_state csa; /* SPU context save area. */ member
344 extern int spu_init_csa(struct spu_state *csa);
345 extern void spu_fini_csa(struct spu_state *csa);
350 extern int spu_alloc_lscsa(struct spu_state *csa);
351 extern void spu_free_lscsa(struct spu_state *csa);
Dcontext.c35 if (spu_init_csa(&ctx->csa)) in alloc_spu_context()
77 spu_fini_csa(&ctx->csa); in destroy_spu_context()
Dsched.c237 spu_restore(&ctx->csa, spu); in spu_bind_context()
439 spu_save(&ctx->csa, spu); in spu_unbind_context()
/Linux-v6.1/drivers/hwtracing/coresight/
Dcoresight-etm4x-core.c70 struct csdev_access *csa; member
154 struct csdev_access *csa) in etm_detect_os_lock() argument
156 u32 oslsr = etm4x_relaxed_read32(csa, TRCOSLSR); in etm_detect_os_lock()
162 struct csdev_access *csa, u32 val) in etm_write_os_lock() argument
168 etm4x_relaxed_write32(csa, val, TRCOSLAR); in etm_write_os_lock()
184 struct csdev_access *csa) in etm4_os_unlock_csa() argument
189 etm_write_os_lock(drvdata, csa, 0x0); in etm4_os_unlock_csa()
209 struct csdev_access *csa) in etm4_cs_lock() argument
212 if (csa->io_mem) in etm4_cs_lock()
213 CS_LOCK(csa->base); in etm4_cs_lock()
[all …]
Dcoresight-tpiu.c63 static void tpiu_enable_hw(struct csdev_access *csa) in tpiu_enable_hw() argument
65 CS_UNLOCK(csa->base); in tpiu_enable_hw()
69 CS_LOCK(csa->base); in tpiu_enable_hw()
80 static void tpiu_disable_hw(struct csdev_access *csa) in tpiu_disable_hw() argument
82 CS_UNLOCK(csa->base); in tpiu_disable_hw()
85 csdev_access_relaxed_write32(csa, FFCR_STOP_FI, TPIU_FFCR); in tpiu_disable_hw()
87 csdev_access_relaxed_write32(csa, FFCR_STOP_FI | FFCR_FON_MAN, TPIU_FFCR); in tpiu_disable_hw()
89 coresight_timeout(csa, TPIU_FFCR, FFCR_FON_MAN_BIT, 0); in tpiu_disable_hw()
91 coresight_timeout(csa, TPIU_FFSR, FFSR_FT_STOPPED_BIT, 1); in tpiu_disable_hw()
93 CS_LOCK(csa->base); in tpiu_disable_hw()
Dcoresight-etm4x.h537 #define etm4x_relaxed_read32(csa, offset) \ argument
538 ((u32)((csa)->io_mem ? \
539 readl_relaxed((csa)->base + (offset)) : \
542 #define etm4x_relaxed_read64(csa, offset) \ argument
543 ((u64)((csa)->io_mem ? \
544 readq_relaxed((csa)->base + (offset)) : \
547 #define etm4x_read32(csa, offset) \ argument
549 u32 __val = etm4x_relaxed_read32((csa), (offset)); \
554 #define etm4x_read64(csa, offset) \ argument
556 u64 __val = etm4x_relaxed_read64((csa), (offset)); \
[all …]
Dcoresight-tmc-core.c37 struct csdev_access *csa = &csdev->access; in tmc_wait_for_tmcready() local
40 if (coresight_timeout(csa, TMC_STS, TMC_STS_TMCREADY_BIT, 1)) { in tmc_wait_for_tmcready()
49 struct csdev_access *csa = &csdev->access; in tmc_flush_and_stop() local
58 if (coresight_timeout(csa, TMC_FFCR, TMC_FFCR_FLUSHMAN_BIT, 0)) { in tmc_flush_and_stop()
Dcoresight-etb10.c255 struct csdev_access *csa = &drvdata->csdev->access; in __etb_disable_hw() local
267 if (coresight_timeout(csa, ETB_FFCR, ETB_FFCR_BIT, 0)) { in __etb_disable_hw()
275 if (coresight_timeout(csa, ETB_FFSR, ETB_FFSR_BIT, 1)) { in __etb_disable_hw()
Dcoresight-catu.c393 struct csdev_access *csa = &drvdata->csdev->access; in catu_wait_for_ready() local
395 return coresight_timeout(csa, CATU_STATUS, CATU_STATUS_READY, 1); in catu_wait_for_ready()
Dcoresight-stm.c261 struct csdev_access *csa = &csdev->access; in stm_disable() local
274 coresight_timeout(csa, STMTCSR, STMTCSR_BUSY_BIT, 0); in stm_disable()
Dcoresight-core.c1496 int coresight_timeout(struct csdev_access *csa, u32 offset, in coresight_timeout() argument
1503 val = csdev_access_read32(csa, offset); in coresight_timeout()
/Linux-v6.1/include/linux/
Dcoresight.h366 static inline u32 csdev_access_relaxed_read32(struct csdev_access *csa, in csdev_access_relaxed_read32() argument
369 if (likely(csa->io_mem)) in csdev_access_relaxed_read32()
370 return readl_relaxed(csa->base + offset); in csdev_access_relaxed_read32()
372 return csa->read(offset, true, false); in csdev_access_relaxed_read32()
375 static inline u64 csdev_access_relaxed_read_pair(struct csdev_access *csa, in csdev_access_relaxed_read_pair() argument
378 if (likely(csa->io_mem)) { in csdev_access_relaxed_read_pair()
379 return readl_relaxed(csa->base + lo_offset) | in csdev_access_relaxed_read_pair()
380 ((u64)readl_relaxed(csa->base + hi_offset) << 32); in csdev_access_relaxed_read_pair()
383 return csa->read(lo_offset, true, false) | (csa->read(hi_offset, true, false) << 32); in csdev_access_relaxed_read_pair()
386 static inline void csdev_access_relaxed_write_pair(struct csdev_access *csa, u64 val, in csdev_access_relaxed_write_pair() argument
[all …]
/Linux-v6.1/net/mac80211/
Dmesh.c814 struct mesh_csa_settings *csa; in ieee80211_mesh_build_beacon() local
885 csa = rcu_dereference(ifmsh->csa); in ieee80211_mesh_build_beacon()
886 if (csa) { in ieee80211_mesh_build_beacon()
897 csa->settings.chandef.chan->center_freq); in ieee80211_mesh_build_beacon()
898 bcn->cntdwn_current_counter = csa->settings.count; in ieee80211_mesh_build_beacon()
900 *pos++ = csa->settings.count; in ieee80211_mesh_build_beacon()
909 *pos++ |= csa->settings.block_tx ? in ieee80211_mesh_build_beacon()
916 switch (csa->settings.chandef.width) { in ieee80211_mesh_build_beacon()
923 ct = cfg80211_get_chandef_type(&csa->settings.chandef); in ieee80211_mesh_build_beacon()
940 chandef = &csa->settings.chandef; in ieee80211_mesh_build_beacon()
[all …]
Dcfg.c940 const struct ieee80211_csa_settings *csa, in ieee80211_set_probe_resp() argument
958 if (csa) in ieee80211_set_probe_resp()
959 memcpy(new->cntdwn_counter_offsets, csa->counter_offsets_presp, in ieee80211_set_probe_resp()
960 csa->n_counter_offsets_presp * in ieee80211_set_probe_resp()
1089 const struct ieee80211_csa_settings *csa, in ieee80211_assign_beacon() argument
1157 if (csa) { in ieee80211_assign_beacon()
1158 new->cntdwn_current_counter = csa->count; in ieee80211_assign_beacon()
1159 memcpy(new->cntdwn_counter_offsets, csa->counter_offsets_beacon, in ieee80211_assign_beacon()
1160 csa->n_counter_offsets_beacon * in ieee80211_assign_beacon()
1181 params->probe_resp_len, csa, cca, link); in ieee80211_assign_beacon()
[all …]
Dieee80211_i.h719 struct mesh_csa_settings __rcu *csa; member
/Linux-v6.1/drivers/net/wireless/intel/iwlwifi/dvm/
Drx.c47 struct iwl_csa_notification *csa = (void *)pkt->data; in iwlagn_rx_csa() local
58 if (!le32_to_cpu(csa->status) && csa->channel == priv->switch_channel) { in iwlagn_rx_csa()
59 rxon->channel = csa->channel; in iwlagn_rx_csa()
60 ctx->staging.channel = csa->channel; in iwlagn_rx_csa()
62 le16_to_cpu(csa->channel)); in iwlagn_rx_csa()
66 le16_to_cpu(csa->channel)); in iwlagn_rx_csa()
/Linux-v6.1/kernel/cgroup/
Dcpuset.c892 struct cpuset **csa; /* array of all cpuset ptrs */ in generate_sched_domains() local
904 csa = NULL; in generate_sched_domains()
924 csa = kmalloc_array(nr_cpusets(), sizeof(cp), GFP_KERNEL); in generate_sched_domains()
925 if (!csa) in generate_sched_domains()
931 csa[csn++] = &top_cpuset; in generate_sched_domains()
958 csa[csn++] = cp; in generate_sched_domains()
967 csa[i]->pn = i; in generate_sched_domains()
973 struct cpuset *a = csa[i]; in generate_sched_domains()
977 struct cpuset *b = csa[j]; in generate_sched_domains()
982 struct cpuset *c = csa[k]; in generate_sched_domains()
[all …]
/Linux-v6.1/drivers/net/wireless/intel/iwlegacy/
Dcommon.c4101 struct il_csa_notification *csa = &(pkt->u.csa_notif); in il_hdl_csa() local
4107 if (!le32_to_cpu(csa->status) && csa->channel == il->switch_channel) { in il_hdl_csa()
4108 rxon->channel = csa->channel; in il_hdl_csa()
4109 il->staging.channel = csa->channel; in il_hdl_csa()
4110 D_11H("CSA notif: channel %d\n", le16_to_cpu(csa->channel)); in il_hdl_csa()
4114 le16_to_cpu(csa->channel)); in il_hdl_csa()
/Linux-v6.1/drivers/net/wireless/intel/ipw2x00/
Dlibipw.h652 struct libipw_csa csa; member