Home
last modified time | relevance | path

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

123

/linux/drivers/net/wireless/realtek/rtlwifi/rtl8723ae/
H A Dhal_bt_coexist.c25 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state()
29 rtlpriv->btcoexist.cstate |= in _rtl8723_dm_bt_check_wifi_state()
32 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state()
36 rtlpriv->btcoexist.cstate |= in _rtl8723_dm_bt_check_wifi_state()
39 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state()
42 rtlpriv->btcoexist.cstate |= BT_COEX_STATE_WIFI_IDLE; in _rtl8723_dm_bt_check_wifi_state()
43 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state()
45 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state()
51 rtlpriv->btcoexist.cstate |= in _rtl8723_dm_bt_check_wifi_state()
53 rtlpriv->btcoexist.cstate &= in _rtl8723_dm_bt_check_wifi_state()
[all …]
H A Dhal_btc.c25 rtlpriv->btcoexist.cstate = 0; in rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
117 rtlpriv->btcoexist.cstate |= in rtl8723e_dm_bt_need_to_dec_bt_pwr()
122 rtlpriv->btcoexist.cstate &= ~BT_COEX_STATE_DEC_BT_POWER; in rtl8723e_dm_bt_need_to_dec_bt_pwr()
131 rtlpriv->btcoexist.cstate) && in rtl8723e_dm_bt_is_same_coexist_state()
346 rtlpriv->btcoexist.cstate |= in rtl8723e_dm_bt_is_2_ant_common_action()
1366 rtlpriv->btcoexist.cstate |= in rtl8723e_dm_bt_inq_page_monitor()
1384 rtlpriv->btcoexist.cstate &= in rtl8723e_dm_bt_inq_page_monitor()
1394 rtlpriv->btcoexist.cstate &= ~ in rtl8723e_dm_bt_reset_action_profile_state()
1398 rtlpriv->btcoexist.cstate &= ~ in rtl8723e_dm_bt_reset_action_profile_state()
1434 rtlpriv->btcoexist.cstate |= in _rtl8723e_dm_bt_coexist_2_ant()
[all …]
/linux/fs/nfsd/
H A Dnfs4proc.c84 check_attr_support(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in check_attr_support() argument
87 struct dentry *dentry = cstate->current_fh.fh_dentry; in check_attr_support()
88 struct svc_export *exp = cstate->current_fh.fh_export; in check_attr_support()
90 if (!nfsd_attrs_supported(cstate->minorversion, bmval)) in check_attr_support()
107 struct nfsd4_compound_state *cstate, struct nfsd4_open *open) in nfsd4_check_open_attributes() argument
114 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
117 status = check_attr_support(rqstp, cstate, in nfsd4_check_open_attributes()
182 static void nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open… in nfsd4_set_open_owner_reply_cache() argument
184 if (nfsd4_has_session(cstate)) in nfsd4_set_open_owner_reply_cache()
419 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open… in do_open_lookup() argument
[all …]
H A Dnfs4state.c1898 void nfsd4_bump_seqid(struct nfsd4_compound_state *cstate, __be32 nfserr) in nfsd4_bump_seqid() argument
1900 struct nfs4_stateowner *so = cstate->replay_owner; in nfsd4_bump_seqid()
1906 nfsd4_cstate_clear_replay(cstate); in nfsd4_bump_seqid()
3491 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_store_cache_entry()
3506 if (resp->opcnt == 1 && resp->cstate.status != nfs_ok) in nfsd4_store_cache_entry()
3511 slot->sl_status = resp->cstate.status; in nfsd4_store_cache_entry()
3515 if (!(resp->cstate.slot->sl_flags & NFSD4_SLOT_CACHETHIS)) { in nfsd4_store_cache_entry()
3521 base = resp->cstate.data_offset; in nfsd4_store_cache_entry()
3538 struct nfsd4_slot *slot = resp->cstate.slot; in nfsd4_replay_cache_entry()
3630 nfsd4_exchange_id(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, in nfsd4_exchange_id() argument
[all …]
H A Dnfs4layouts.c226 nfsd4_alloc_layout_stateid(struct nfsd4_compound_state *cstate, in nfsd4_alloc_layout_stateid() argument
229 struct nfs4_client *clp = cstate->clp; in nfsd4_alloc_layout_stateid()
234 stp = nfs4_alloc_stid(cstate->clp, nfs4_layout_stateid_cache, in nfsd4_alloc_layout_stateid()
280 struct nfsd4_compound_state *cstate, stateid_t *stateid, in nfsd4_preprocess_layout_stateid() argument
291 status = nfsd4_lookup_stateid(cstate, stateid, typemask, 0, &stid, in nfsd4_preprocess_layout_stateid()
296 if (!fh_match(&cstate->current_fh.fh_handle, in nfsd4_preprocess_layout_stateid()
303 ls = nfsd4_alloc_layout_stateid(cstate, stid, layout_type); in nfsd4_preprocess_layout_stateid()
505 struct nfsd4_compound_state *cstate, in nfsd4_return_file_layouts() argument
514 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lrp->lr_sid, in nfsd4_return_file_layouts()
548 struct nfsd4_compound_state *cstate, in nfsd4_return_client_layouts() argument
[all …]
H A Dpnfs.h57 struct nfsd4_compound_state *cstate, stateid_t *stateid,
62 struct nfsd4_compound_state *cstate,
65 struct nfsd4_compound_state *cstate,
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dbase.c79 nvkm_cstate_valid(struct nvkm_clk *clk, struct nvkm_cstate *cstate, in nvkm_cstate_valid() argument
88 u32 freq = cstate->domain[domain->name]; in nvkm_cstate_valid()
105 voltage = nvkm_volt_map(volt, cstate->voltage, temp); in nvkm_cstate_valid()
113 struct nvkm_cstate *cstate) in nvkm_cstate_find_best() argument
119 if (!pstate || !cstate) in nvkm_cstate_find_best()
123 return cstate; in nvkm_cstate_find_best()
136 list_for_each_entry_from_reverse(cstate, &pstate->list, head) { in nvkm_cstate_find_best()
137 if (nvkm_cstate_valid(clk, cstate, max_volt, clk->temp)) in nvkm_cstate_find_best()
138 return cstate; in nvkm_cstate_find_best()
147 struct nvkm_cstate *cstate; in nvkm_cstate_get() local
[all …]
H A Dgf100.c274 calc_clk(struct gf100_clk *clk, struct nvkm_cstate *cstate, int idx, int dom) in calc_clk() argument
277 u32 freq = cstate->domain[dom]; in calc_clk()
294 clk1 = cstate->domain[nv_clk_src_hubk06]; in calc_clk()
325 gf100_clk_calc(struct nvkm_clk *base, struct nvkm_cstate *cstate) in gf100_clk_calc() argument
330 if ((ret = calc_clk(clk, cstate, 0x00, nv_clk_src_gpc)) || in gf100_clk_calc()
331 (ret = calc_clk(clk, cstate, 0x01, nv_clk_src_rop)) || in gf100_clk_calc()
332 (ret = calc_clk(clk, cstate, 0x02, nv_clk_src_hubk07)) || in gf100_clk_calc()
333 (ret = calc_clk(clk, cstate, 0x07, nv_clk_src_hubk06)) || in gf100_clk_calc()
334 (ret = calc_clk(clk, cstate, 0x08, nv_clk_src_hubk01)) || in gf100_clk_calc()
335 (ret = calc_clk(clk, cstate, 0x09, nv_clk_src_copy)) || in gf100_clk_calc()
[all …]
H A Dgt215.c274 calc_clk(struct gt215_clk *clk, struct nvkm_cstate *cstate, in calc_clk() argument
277 int ret = gt215_pll_info(&clk->base, idx, pll, cstate->domain[dom], in calc_clk()
285 calc_host(struct gt215_clk *clk, struct nvkm_cstate *cstate) in calc_host() argument
288 u32 kHz = cstate->domain[nv_clk_src_host]; in calc_host()
459 gt215_clk_calc(struct nvkm_clk *base, struct nvkm_cstate *cstate) in gt215_clk_calc() argument
465 if ((ret = calc_clk(clk, cstate, 0x10, 0x4200, nv_clk_src_core)) || in gt215_clk_calc()
466 (ret = calc_clk(clk, cstate, 0x11, 0x4220, nv_clk_src_shader)) || in gt215_clk_calc()
467 (ret = calc_clk(clk, cstate, 0x20, 0x0000, nv_clk_src_disp)) || in gt215_clk_calc()
468 (ret = calc_clk(clk, cstate, 0x21, 0x0000, nv_clk_src_vdec)) || in gt215_clk_calc()
469 (ret = calc_host(clk, cstate))) in gt215_clk_calc()
[all …]
H A Dgk104.c288 struct nvkm_cstate *cstate, int idx, int dom) in calc_clk() argument
291 u32 freq = cstate->domain[dom]; in calc_clk()
308 clk1 = cstate->domain[nv_clk_src_hubk06]; in calc_clk()
339 gk104_clk_calc(struct nvkm_clk *base, struct nvkm_cstate *cstate) in gk104_clk_calc() argument
344 if ((ret = calc_clk(clk, cstate, 0x00, nv_clk_src_gpc)) || in gk104_clk_calc()
345 (ret = calc_clk(clk, cstate, 0x01, nv_clk_src_rop)) || in gk104_clk_calc()
346 (ret = calc_clk(clk, cstate, 0x02, nv_clk_src_hubk07)) || in gk104_clk_calc()
347 (ret = calc_clk(clk, cstate, 0x07, nv_clk_src_hubk06)) || in gk104_clk_calc()
348 (ret = calc_clk(clk, cstate, 0x08, nv_clk_src_hubk01)) || in gk104_clk_calc()
349 (ret = calc_clk(clk, cstate, 0x0c, nv_clk_src_pmu)) || in gk104_clk_calc()
[all …]
H A Dnv40.c146 nv40_clk_calc(struct nvkm_clk *base, struct nvkm_cstate *cstate) in nv40_clk_calc() argument
149 int gclk = cstate->domain[nv_clk_src_core]; in nv40_clk_calc()
150 int sclk = cstate->domain[nv_clk_src_shader]; in nv40_clk_calc()
H A Dnv50.c369 nv50_clk_calc(struct nvkm_clk *base, struct nvkm_cstate *cstate) in nv50_clk_calc() argument
375 const int shader = cstate->domain[nv_clk_src_shader]; in nv50_clk_calc()
376 const int core = cstate->domain[nv_clk_src_core]; in nv50_clk_calc()
377 const int vdec = cstate->domain[nv_clk_src_vdec]; in nv50_clk_calc()
378 const int dom6 = cstate->domain[nv_clk_src_dom6]; in nv50_clk_calc()
/linux/tools/power/cpupower/utils/
H A Dcpuidle-info.c102 unsigned int cstate, cstates; in proc_cpuidle_cpu_output() local
114 for (cstate = 1; cstate < cstates; cstate++) { in proc_cpuidle_cpu_output()
116 "type[C%d] "), cstate, cstate); in proc_cpuidle_cpu_output()
119 cpuidle_state_latency(cpu, cstate)); in proc_cpuidle_cpu_output()
121 cpuidle_state_residency(cpu, cstate)); in proc_cpuidle_cpu_output()
123 cpuidle_state_usage(cpu, cstate)); in proc_cpuidle_cpu_output()
125 cpuidle_state_time(cpu, cstate)); in proc_cpuidle_cpu_output()
/linux/drivers/gpu/drm/msm/disp/dpu1/
H A Ddpu_crtc.c448 struct dpu_crtc_state *cstate = to_dpu_crtc_state(crtc->state); in _dpu_crtc_blend_setup_mixer() local
482 lms_in_pair = min(cstate->num_mixers - (stage * PIPES_PER_STAGE), in _dpu_crtc_blend_setup_mixer()
497 for (lm_idx = 0; lm_idx < cstate->num_mixers; lm_idx++) { in _dpu_crtc_blend_setup_mixer()
525 struct dpu_crtc_state *cstate = to_dpu_crtc_state(crtc->state); in _dpu_crtc_blend_setup() local
526 struct dpu_crtc_mixer *mixer = cstate->mixers; in _dpu_crtc_blend_setup()
535 for (i = 0; i < cstate->num_mixers; i++) { in _dpu_crtc_blend_setup()
555 for (i = 0; i < cstate->num_mixers; i++) { in _dpu_crtc_blend_setup()
768 struct dpu_crtc_state *cstate = to_dpu_crtc_state(state); in _dpu_crtc_check_and_setup_lm_bounds() local
770 u32 crtc_split_width = adj_mode->hdisplay / cstate->num_mixers; in _dpu_crtc_check_and_setup_lm_bounds()
781 for (i = 0; i < cstate->num_mixers; i++) { in _dpu_crtc_check_and_setup_lm_bounds()
[all …]
/linux/samples/bpf/
H A Dcpustat_kern.c106 u64 *cts, *pts, *cstate, *pstate, prev_state, cur_ts, delta; in bpf_prog1() local
121 cstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog1()
122 if (!cstate) in bpf_prog1()
135 prev_state = *cstate; in bpf_prog1()
136 *cstate = ctx->state; in bpf_prog1()
214 u64 *pts, *cstate, *pstate, cur_ts, delta; in bpf_prog2() local
231 cstate = bpf_map_lookup_elem(&my_map, &key); in bpf_prog2()
232 if (!cstate) in bpf_prog2()
247 if (*cstate != (u32)(-1)) in bpf_prog2()
H A Dcpustat_user.c33 unsigned long cstate[MAX_CSTATE_ENTRIES]; member
69 printf("%-11lu ", data->cstate[i] / 1000000); in cpu_stat_print()
87 stat_data[c].cstate[i] = value; in cpu_stat_update()
/linux/net/netfilter/
H A Dnf_conntrack_pptp.c292 if (info->cstate != PPTP_CALL_OUT_REQ && in pptp_inbound_pkt()
293 info->cstate != PPTP_CALL_OUT_CONF) in pptp_inbound_pkt()
304 info->cstate = PPTP_CALL_OUT_CONF; in pptp_inbound_pkt()
308 info->cstate = PPTP_CALL_NONE; in pptp_inbound_pkt()
318 info->cstate = PPTP_CALL_IN_REQ; in pptp_inbound_pkt()
326 if (info->cstate != PPTP_CALL_IN_REP && in pptp_inbound_pkt()
327 info->cstate != PPTP_CALL_IN_CONF) in pptp_inbound_pkt()
337 info->cstate = PPTP_CALL_IN_CONF; in pptp_inbound_pkt()
347 info->cstate = PPTP_CALL_NONE; in pptp_inbound_pkt()
373 msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, in pptp_inbound_pkt()
[all …]
/linux/include/net/
H A Dslhc_vj.h128 struct cstate { struct
131 struct cstate *next; /* next in ring (xmit) */ argument
138 #define NULLSLSTATE (struct cstate *)0 argument
144 struct cstate *tstate; /* transmit connection states (array)*/
145 struct cstate *rstate; /* receive connection states (array)*/
/linux/arch/x86/events/intel/
H A DMakefile7 obj-$(CONFIG_PERF_EVENTS_INTEL_CSTATE) += intel-cstate.o
8 intel-cstate-objs := cstate.o
/linux/mm/kmsan/
H A Dinstrumentation.c144 *shadow = *(u64 *)(ctx->cstate.param_tls); in get_param0_metadata()
145 *origin = ctx->cstate.param_origin_tls[0]; in get_param0_metadata()
152 *(u64 *)(ctx->cstate.retval_tls) = shadow; in set_retval_metadata()
153 ctx->cstate.retval_origin_tls = origin; in set_retval_metadata()
328 return &kmsan_get_context()->cstate; in __msan_get_context_state()
/linux/drivers/pwm/
H A Dpwm-stm32-lp.c127 struct pwm_state cstate; in stm32_pwm_lp_apply() local
132 pwm_get_state(pwm, &cstate); in stm32_pwm_lp_apply()
133 reenable = !cstate.enabled; in stm32_pwm_lp_apply()
136 if (cstate.enabled) { in stm32_pwm_lp_apply()
206 if (!cstate.enabled) { in stm32_pwm_lp_apply()
288 if (!cstate.enabled) in stm32_pwm_lp_apply()
H A Dpwm-sun4i.c234 struct pwm_state cstate; in sun4i_pwm_apply() local
240 pwm_get_state(pwm, &cstate); in sun4i_pwm_apply()
242 if (!cstate.enabled) { in sun4i_pwm_apply()
254 if (!cstate.enabled) in sun4i_pwm_apply()
300 delay_us = DIV_ROUND_UP_ULL(cstate.period, NSEC_PER_USEC); in sun4i_pwm_apply()
/linux/drivers/net/slip/
H A Dslhc.c95 struct cstate *ts; in slhc_init()
106 size_t rsize = rslots * sizeof(struct cstate); in slhc_init()
114 size_t tsize = tslots * sizeof(struct cstate); in slhc_init()
230 struct cstate *ocs = &(comp->tstate[comp->xmit_oldest]); in slhc_compress()
231 struct cstate *lcs = ocs; in slhc_compress()
232 struct cstate *cs = lcs->next; in slhc_compress()
499 struct cstate *cs; in slhc_uncompress()
649 struct cstate *cs; in slhc_remember()
/linux/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dctrl.c76 struct nvkm_cstate *cstate; in nvkm_control_mthd_pstate_attr() local
113 list_for_each_entry(cstate, &pstate->list, head) { in nvkm_control_mthd_pstate_attr()
114 lo = min(lo, cstate->domain[domain->name]); in nvkm_control_mthd_pstate_attr()
115 hi = max(hi, cstate->domain[domain->name]); in nvkm_control_mthd_pstate_attr()
/linux/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dbase.c137 if (therm->cstate) { in nvkm_therm_update()
138 duty = therm->cstate; in nvkm_therm_update()
167 if (!dir || (dir < 0 && fan < therm->cstate) || in nvkm_therm_cstate()
168 (dir > 0 && fan > therm->cstate)) { in nvkm_therm_cstate()
170 therm->cstate = fan; in nvkm_therm_cstate()

123