Searched refs:cstate (Results 1 - 56 of 56) sorted by relevance

/linux-4.1.27/drivers/net/wireless/rtlwifi/rtl8723ae/
H A Dhal_bt_coexist.c47 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
51 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
54 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
58 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
61 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
64 rtlpriv->btcoexist.cstate |= BT_COEX_STATE_WIFI_IDLE; _rtl8723_dm_bt_check_wifi_state()
65 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
67 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
73 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
75 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
77 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
80 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
83 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
85 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
88 rtlpriv->btcoexist.cstate |= _rtl8723_dm_bt_check_wifi_state()
90 rtlpriv->btcoexist.cstate &= _rtl8723_dm_bt_check_wifi_state()
96 rtlpriv->btcoexist.cstate |= BT_COEX_STATE_BT30; _rtl8723_dm_bt_check_wifi_state()
98 rtlpriv->btcoexist.cstate &= ~BT_COEX_STATE_BT30; _rtl8723_dm_bt_check_wifi_state()
113 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
123 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
125 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
137 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
139 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
163 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
165 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
167 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
183 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
185 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
187 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
193 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
195 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
197 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
209 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_check_coex_rssi_state1()
211 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
213 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state1()
241 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_check_coex_rssi_state()
251 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
253 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
265 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
267 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
290 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
292 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
294 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
310 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
312 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
314 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
320 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
322 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
324 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
336 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
338 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
340 rtlpriv->btcoexist.cstate rtl8723e_dm_bt_check_coex_rssi_state()
523 if ((rtlpriv->btcoexist.previous_state == rtlpriv->btcoexist.cstate) && rtl8723e_dm_bt_is_coexist_state_changed()
H A Dhal_btc.c46 rtlpriv->btcoexist.cstate = 0; rtl8723e_dm_bt_turn_off_bt_coexist_before_enter_lps()
137 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_need_to_dec_bt_pwr()
142 rtlpriv->btcoexist.cstate &= ~BT_COEX_STATE_DEC_BT_POWER; rtl8723e_dm_bt_need_to_dec_bt_pwr()
151 rtlpriv->btcoexist.cstate) && rtl8723e_dm_bt_is_same_coexist_state()
366 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_is_2_ant_common_action()
1387 rtlpriv->btcoexist.cstate |= rtl8723e_dm_bt_inq_page_monitor()
1406 rtlpriv->btcoexist.cstate &= rtl8723e_dm_bt_inq_page_monitor()
1416 rtlpriv->btcoexist.cstate &= ~ rtl8723e_dm_bt_reset_action_profile_state()
1420 rtlpriv->btcoexist.cstate &= ~ rtl8723e_dm_bt_reset_action_profile_state()
1458 rtlpriv->btcoexist.cstate |= _rtl8723e_dm_bt_coexist_2_ant()
1469 rtlpriv->btcoexist.cstate |= _rtl8723e_dm_bt_coexist_2_ant()
1479 rtlpriv->btcoexist.cstate |= _rtl8723e_dm_bt_coexist_2_ant()
1661 rtlpriv->btcoexist.cstate); rtl8723e_dm_bt_coexist_8723()
1663 = rtlpriv->btcoexist.cstate; rtl8723e_dm_bt_coexist_8723()
1706 rtlpriv->btcoexist.cstate &= ~BT_COEX_STATE_BT_IDLE; rtl8723e_dm_bt_parse_bt_info()
1711 rtlpriv->btcoexist.cstate |= BT_COEX_STATE_BT_IDLE; rtl8723e_dm_bt_parse_bt_info()
H A Ddm.c845 rtlpriv->btcoexist.cstate = 0; rtl8723e_dm_init_bt_coexist()
H A Dhw.c2374 rtlpriv->btcoexist.cstate = 0; rtl8723e_bt_var_init()
/linux-4.1.27/fs/nfsd/
H A Dnfs4proc.c94 check_attr_support(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, check_attr_support() argument
97 struct dentry *dentry = cstate->current_fh.fh_dentry; check_attr_support()
103 if ((bmval[0] & ~nfsd_suppattrs0(cstate->minorversion)) || check_attr_support()
104 (bmval[1] & ~nfsd_suppattrs1(cstate->minorversion)) || check_attr_support()
105 (bmval[2] & ~nfsd_suppattrs2(cstate->minorversion))) check_attr_support()
131 struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_check_open_attributes()
138 status = check_attr_support(rqstp, cstate, nfsd4_check_open_attributes()
141 status = check_attr_support(rqstp, cstate, nfsd4_check_open_attributes()
228 static void nfsd4_set_open_owner_reply_cache(struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh *resfh) nfsd4_set_open_owner_reply_cache() argument
230 if (nfsd4_has_session(cstate)) nfsd4_set_open_owner_reply_cache()
237 do_open_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open, struct svc_fh **resfh) do_open_lookup() argument
239 struct svc_fh *current_fh = &cstate->current_fh; do_open_lookup()
304 nfsd4_set_open_owner_reply_cache(cstate, open, *resfh); do_open_lookup()
316 do_open_fhandle(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) do_open_fhandle() argument
318 struct svc_fh *current_fh = &cstate->current_fh; do_open_fhandle()
328 nfsd4_set_open_owner_reply_cache(cstate, open, current_fh); do_open_fhandle()
360 nfsd4_open(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_open() argument
382 if (nfsd4_has_session(cstate) && nfsd4_open()
384 &cstate->session->se_client->cl_flags) && nfsd4_open()
388 if (nfsd4_has_session(cstate)) nfsd4_open()
389 copy_clientid(&open->op_clientid, cstate->session); nfsd4_open()
393 status = nfsd4_process_open1(&resp->cstate, open, nn); nfsd4_open()
396 fh_put(&cstate->current_fh); nfsd4_open()
397 fh_copy_shallow(&cstate->current_fh.fh_handle, nfsd4_open()
399 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); nfsd4_open()
413 status = nfsd4_check_open_attributes(rqstp, cstate, open); nfsd4_open()
429 status = do_open_lookup(rqstp, cstate, open, &resfh); nfsd4_open()
435 cstate, nn); nfsd4_open()
441 status = do_open_fhandle(rqstp, cstate, open); nfsd4_open()
444 resfh = &cstate->current_fh; nfsd4_open()
468 if (resfh && resfh != &cstate->current_fh) { nfsd4_open()
469 fh_dup2(&cstate->current_fh, resfh); nfsd4_open()
473 nfsd4_cleanup_open_state(cstate, open); nfsd4_open()
474 nfsd4_bump_seqid(cstate, status); nfsd4_open()
484 static __be32 nfsd4_open_omfg(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_op *op) nfsd4_open_omfg() argument
490 if (nfsd4_has_session(cstate)) nfsd4_open_omfg()
493 return nfsd4_open(rqstp, cstate, open); nfsd4_open_omfg()
500 nfsd4_getfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_getfh() argument
503 if (!cstate->current_fh.fh_dentry) nfsd4_getfh()
506 *getfh = &cstate->current_fh; nfsd4_getfh()
511 nfsd4_putfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_putfh() argument
514 fh_put(&cstate->current_fh); nfsd4_putfh()
515 cstate->current_fh.fh_handle.fh_size = putfh->pf_fhlen; nfsd4_putfh()
516 memcpy(&cstate->current_fh.fh_handle.fh_base, putfh->pf_fhval, nfsd4_putfh()
518 return fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_BYPASS_GSS); nfsd4_putfh()
522 nfsd4_putrootfh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_putrootfh() argument
527 fh_put(&cstate->current_fh); nfsd4_putrootfh()
528 status = exp_pseudoroot(rqstp, &cstate->current_fh); nfsd4_putrootfh()
533 nfsd4_restorefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_restorefh() argument
536 if (!cstate->save_fh.fh_dentry) nfsd4_restorefh()
539 fh_dup2(&cstate->current_fh, &cstate->save_fh); nfsd4_restorefh()
540 if (HAS_STATE_ID(cstate, SAVED_STATE_ID_FLAG)) { nfsd4_restorefh()
541 memcpy(&cstate->current_stateid, &cstate->save_stateid, sizeof(stateid_t)); nfsd4_restorefh()
542 SET_STATE_ID(cstate, CURRENT_STATE_ID_FLAG); nfsd4_restorefh()
548 nfsd4_savefh(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_savefh() argument
551 if (!cstate->current_fh.fh_dentry) nfsd4_savefh()
554 fh_dup2(&cstate->save_fh, &cstate->current_fh); nfsd4_savefh()
555 if (HAS_STATE_ID(cstate, CURRENT_STATE_ID_FLAG)) { nfsd4_savefh()
556 memcpy(&cstate->save_stateid, &cstate->current_stateid, sizeof(stateid_t)); nfsd4_savefh()
557 SET_STATE_ID(cstate, SAVED_STATE_ID_FLAG); nfsd4_savefh()
566 nfsd4_access(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_access() argument
573 return nfsd_access(rqstp, &cstate->current_fh, &access->ac_resp_access, nfsd4_access()
592 nfsd4_commit(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_commit() argument
596 return nfsd_commit(rqstp, &cstate->current_fh, commit->co_offset, nfsd4_commit()
601 nfsd4_create(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_create() argument
610 status = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, nfsd4_create()
615 status = check_attr_support(rqstp, cstate, create->cr_bmval, nfsd4_create()
622 status = nfsd_symlink(rqstp, &cstate->current_fh, nfsd4_create()
632 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
642 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
648 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
654 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
661 status = nfsd_create(rqstp, &cstate->current_fh, nfsd4_create()
680 fh_unlock(&cstate->current_fh); nfsd4_create()
681 set_change_info(&create->cr_cinfo, &cstate->current_fh); nfsd4_create()
682 fh_dup2(&cstate->current_fh, &resfh); nfsd4_create()
689 nfsd4_getattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_getattr() argument
694 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); nfsd4_getattr()
701 getattr->ga_bmval[0] &= nfsd_suppattrs0(cstate->minorversion); nfsd4_getattr()
702 getattr->ga_bmval[1] &= nfsd_suppattrs1(cstate->minorversion); nfsd4_getattr()
703 getattr->ga_bmval[2] &= nfsd_suppattrs2(cstate->minorversion); nfsd4_getattr()
705 getattr->ga_fhp = &cstate->current_fh; nfsd4_getattr()
710 nfsd4_link(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_link() argument
715 if (!cstate->save_fh.fh_dentry) nfsd4_link()
717 status = nfsd_link(rqstp, &cstate->current_fh, nfsd4_link()
718 link->li_name, link->li_namelen, &cstate->save_fh); nfsd4_link()
720 set_change_info(&link->li_cinfo, &cstate->current_fh); nfsd4_link()
742 nfsd4_lookupp(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_lookupp() argument
745 return nfsd4_do_lookupp(rqstp, &cstate->current_fh); nfsd4_lookupp()
749 nfsd4_lookup(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_lookup() argument
752 return nfsd_lookup(rqstp, &cstate->current_fh, nfsd4_lookup()
754 &cstate->current_fh); nfsd4_lookup()
758 nfsd4_read(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_read() argument
782 cstate, &read->rd_stateid, nfsd4_read()
790 read->rd_fhp = &cstate->current_fh; nfsd4_read()
795 nfsd4_readdir(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_readdir() argument
806 readdir->rd_bmval[0] &= nfsd_suppattrs0(cstate->minorversion); nfsd4_readdir()
807 readdir->rd_bmval[1] &= nfsd_suppattrs1(cstate->minorversion); nfsd4_readdir()
808 readdir->rd_bmval[2] &= nfsd_suppattrs2(cstate->minorversion); nfsd4_readdir()
815 readdir->rd_fhp = &cstate->current_fh; nfsd4_readdir()
820 nfsd4_readlink(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_readlink() argument
824 readlink->rl_fhp = &cstate->current_fh; nfsd4_readlink()
829 nfsd4_remove(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_remove() argument
836 status = nfsd_unlink(rqstp, &cstate->current_fh, 0, nfsd4_remove()
839 fh_unlock(&cstate->current_fh); nfsd4_remove()
840 set_change_info(&remove->rm_cinfo, &cstate->current_fh); nfsd4_remove()
846 nfsd4_rename(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_rename() argument
851 if (!cstate->save_fh.fh_dentry) nfsd4_rename()
854 !(cstate->save_fh.fh_export->ex_flags & NFSEXP_NOSUBTREECHECK)) nfsd4_rename()
856 status = nfsd_rename(rqstp, &cstate->save_fh, rename->rn_sname, nfsd4_rename()
857 rename->rn_snamelen, &cstate->current_fh, nfsd4_rename()
861 set_change_info(&rename->rn_sinfo, &cstate->current_fh); nfsd4_rename()
862 set_change_info(&rename->rn_tinfo, &cstate->save_fh); nfsd4_rename()
867 nfsd4_secinfo(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_secinfo() argument
876 err = fh_verify(rqstp, &cstate->current_fh, S_IFDIR, NFSD_MAY_EXEC); nfsd4_secinfo()
879 err = nfsd_lookup_dentry(rqstp, &cstate->current_fh, nfsd4_secinfo()
884 fh_unlock(&cstate->current_fh); nfsd4_secinfo()
891 if (cstate->minorversion) nfsd4_secinfo()
893 fh_put(&cstate->current_fh); nfsd4_secinfo()
898 nfsd4_secinfo_no_name(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_secinfo_no_name() argument
907 err = nfsd4_do_lookupp(rqstp, &cstate->current_fh); nfsd4_secinfo_no_name()
915 sin->sin_exp = exp_get(cstate->current_fh.fh_export); nfsd4_secinfo_no_name()
916 fh_put(&cstate->current_fh); nfsd4_secinfo_no_name()
921 nfsd4_setattr(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_setattr() argument
928 status = nfs4_preprocess_stateid_op(SVC_NET(rqstp), cstate, nfsd4_setattr()
935 err = fh_want_write(&cstate->current_fh); nfsd4_setattr()
940 status = check_attr_support(rqstp, cstate, setattr->sa_bmval, nfsd4_setattr()
946 status = nfsd4_set_nfs4_acl(rqstp, &cstate->current_fh, nfsd4_setattr()
951 status = nfsd4_set_nfs4_label(rqstp, &cstate->current_fh, nfsd4_setattr()
955 status = nfsd_setattr(rqstp, &cstate->current_fh, &setattr->sa_iattr, nfsd4_setattr()
958 fh_drop_write(&cstate->current_fh); nfsd4_setattr()
981 nfsd4_write(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_write() argument
996 cstate, stateid, WR_STATE, &filp); nfsd4_write()
1009 status = nfsd_write(rqstp, &cstate->current_fh, filp, nfsd4_write()
1021 nfsd4_fallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_fallocate() argument
1027 status = nfs4_preprocess_stateid_op(SVC_NET(rqstp), cstate, nfsd4_fallocate()
1037 status = nfsd4_vfs_fallocate(rqstp, &cstate->current_fh, file, nfsd4_fallocate()
1046 nfsd4_allocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_allocate() argument
1049 return nfsd4_fallocate(rqstp, cstate, fallocate, 0); nfsd4_allocate()
1053 nfsd4_deallocate(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_deallocate() argument
1056 return nfsd4_fallocate(rqstp, cstate, fallocate, nfsd4_deallocate()
1061 nfsd4_seek(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_seek() argument
1068 status = nfs4_preprocess_stateid_op(SVC_NET(rqstp), cstate, nfsd4_seek()
1111 _nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, _nfsd4_verify() argument
1118 status = fh_verify(rqstp, &cstate->current_fh, 0, NFSD_MAY_NOP); _nfsd4_verify()
1122 status = check_attr_support(rqstp, cstate, verify->ve_bmval, NULL); _nfsd4_verify()
1141 status = nfsd4_encode_fattr_to_buf(&p, count, &cstate->current_fh, _nfsd4_verify()
1142 cstate->current_fh.fh_export, _nfsd4_verify()
1143 cstate->current_fh.fh_dentry, _nfsd4_verify()
1169 nfsd4_nverify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_nverify() argument
1174 status = _nfsd4_verify(rqstp, cstate, verify); nfsd4_nverify()
1179 nfsd4_verify(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_verify() argument
1184 status = _nfsd4_verify(rqstp, cstate, verify); nfsd4_verify()
1208 struct nfsd4_compound_state *cstate, nfsd4_getdeviceinfo()
1252 struct nfsd4_compound_state *cstate, nfsd4_layoutget()
1255 struct svc_fh *current_fh = &cstate->current_fh; nfsd4_layoutget()
1305 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lgp->lg_sid, nfsd4_layoutget()
1331 struct nfsd4_compound_state *cstate, nfsd4_layoutcommit()
1335 struct svc_fh *current_fh = &cstate->current_fh; nfsd4_layoutcommit()
1366 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lcp->lc_sid, nfsd4_layoutcommit()
1396 struct nfsd4_compound_state *cstate, nfsd4_layoutreturn()
1399 struct svc_fh *current_fh = &cstate->current_fh; nfsd4_layoutreturn()
1424 nfserr = nfsd4_return_file_layouts(rqstp, cstate, lrp); nfsd4_layoutreturn()
1428 nfserr = nfsd4_return_client_layouts(rqstp, cstate, lrp); nfsd4_layoutreturn()
1614 struct nfsd4_compound_state *cstate = &resp->cstate; nfsd4_proc_compound() local
1615 struct svc_fh *current_fh = &cstate->current_fh; nfsd4_proc_compound()
1616 struct svc_fh *save_fh = &cstate->save_fh; nfsd4_proc_compound()
1626 cstate->minorversion = args->minorversion; nfsd4_proc_compound()
1662 op->status = nfsd4_open_omfg(rqstp, cstate, op); nfsd4_proc_compound()
1701 opdesc->op_get_currentstateid(cstate, &op->u); nfsd4_proc_compound()
1702 op->status = opdesc->op_func(rqstp, cstate, &op->u); nfsd4_proc_compound()
1706 opdesc->op_set_currentstateid(cstate, &op->u); nfsd4_proc_compound()
1709 clear_current_stateid(cstate); nfsd4_proc_compound()
1717 if (cstate->status == nfserr_replay_cache) { nfsd4_proc_compound()
1723 op->replay = &cstate->replay_owner->so_replay; nfsd4_proc_compound()
1735 nfsd4_cstate_clear_replay(cstate); nfsd4_proc_compound()
1743 cstate->status = status; nfsd4_proc_compound()
1746 BUG_ON(cstate->replay_owner); nfsd4_proc_compound()
130 nfsd4_check_open_attributes(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_check_open_attributes() argument
1207 nfsd4_getdeviceinfo(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_getdeviceinfo *gdp) nfsd4_getdeviceinfo() argument
1251 nfsd4_layoutget(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_layoutget *lgp) nfsd4_layoutget() argument
1330 nfsd4_layoutcommit(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_layoutcommit *lcp) nfsd4_layoutcommit() argument
1395 nfsd4_layoutreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_layoutreturn *lrp) nfsd4_layoutreturn() argument
H A Dcurrent_stateid.h7 extern void clear_current_stateid(struct nfsd4_compound_state *cstate);
11 extern void nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *);
19 extern void nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *);
H A Dpnfs.h41 struct nfsd4_compound_state *cstate, stateid_t *stateid,
46 struct nfsd4_compound_state *cstate,
49 struct nfsd4_compound_state *cstate,
H A Dnfs4state.c1316 * Bump the seqid on cstate->replay_owner, and clear replay_owner if it
1319 void nfsd4_bump_seqid(struct nfsd4_compound_state *cstate, __be32 nfserr) nfsd4_bump_seqid() argument
1321 struct nfs4_stateowner *so = cstate->replay_owner; nfsd4_bump_seqid()
1327 nfsd4_cstate_clear_replay(cstate); nfsd4_bump_seqid()
2209 struct nfsd4_slot *slot = resp->cstate.slot; nfsd4_store_cache_entry()
2215 slot->sl_status = resp->cstate.status; nfsd4_store_cache_entry()
2222 base = resp->cstate.data_offset; nfsd4_store_cache_entry()
2241 struct nfsd4_slot *slot = resp->cstate.slot; nfsd4_enc_sequence_replay()
2264 struct nfsd4_slot *slot = resp->cstate.slot; nfsd4_replay_cache_entry()
2321 struct nfsd4_compound_state *cstate, nfsd4_exchange_id()
2418 new->cl_minorversion = cstate->minorversion; nfsd4_exchange_id()
2579 struct nfsd4_compound_state *cstate, nfsd4_create_session()
2708 __be32 nfsd4_backchannel_ctl(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_backchannel_ctl *bc) nfsd4_backchannel_ctl() argument
2710 struct nfsd4_session *session = cstate->session; nfsd4_backchannel_ctl()
2728 struct nfsd4_compound_state *cstate, nfsd4_bind_conn_to_session()
2771 struct nfsd4_compound_state *cstate, nfsd4_destroy_session()
2781 if (nfsd4_compound_in_session(cstate->session, &sessionid->sessionid)) { nfsd4_destroy_session()
2868 struct nfsd4_compound_state *cstate, nfsd4_sequence()
2925 cstate->slot = slot; nfsd4_sequence()
2926 cstate->session = session; nfsd4_sequence()
2927 cstate->clp = clp; nfsd4_sequence()
2928 /* Return the cached reply status and set cstate->status nfsd4_sequence()
2931 cstate->status = nfserr_replay_cache; nfsd4_sequence()
2960 cstate->slot = slot; nfsd4_sequence()
2961 cstate->session = session; nfsd4_sequence()
2962 cstate->clp = clp; nfsd4_sequence()
2990 struct nfsd4_compound_state *cs = &resp->cstate; nfsd4_sequence_done()
3004 nfsd4_destroy_clientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_destroy_clientid *dc) nfsd4_destroy_clientid() argument
3045 nfsd4_reclaim_complete(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_reclaim_complete *rc) nfsd4_reclaim_complete() argument
3050 if (!cstate->current_fh.fh_dentry) nfsd4_reclaim_complete()
3061 &cstate->session->se_client->cl_flags)) nfsd4_reclaim_complete()
3065 if (is_client_expired(cstate->session->se_client)) nfsd4_reclaim_complete()
3076 nfsd4_client_record_create(cstate->session->se_client); nfsd4_reclaim_complete()
3082 nfsd4_setclientid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_setclientid() argument
3140 struct nfsd4_compound_state *cstate, nfsd4_setclientid_confirm()
3296 static void nfsd4_cstate_assign_replay(struct nfsd4_compound_state *cstate, nfsd4_cstate_assign_replay() argument
3299 if (!nfsd4_has_session(cstate)) { nfsd4_cstate_assign_replay()
3301 cstate->replay_owner = nfs4_get_stateowner(so); nfsd4_cstate_assign_replay()
3305 void nfsd4_cstate_clear_replay(struct nfsd4_compound_state *cstate) nfsd4_cstate_clear_replay() argument
3307 struct nfs4_stateowner *so = cstate->replay_owner; nfsd4_cstate_clear_replay()
3310 cstate->replay_owner = NULL; nfsd4_cstate_clear_replay()
3366 struct nfsd4_compound_state *cstate) alloc_init_open_stateowner()
3368 struct nfs4_client *clp = cstate->clp; alloc_init_open_stateowner()
3378 if (nfsd4_has_session(cstate)) alloc_init_open_stateowner()
3655 static __be32 nfsd4_check_seqid(struct nfsd4_compound_state *cstate, struct nfs4_stateowner *so, u32 seqid) nfsd4_check_seqid() argument
3657 if (nfsd4_has_session(cstate)) nfsd4_check_seqid()
3667 struct nfsd4_compound_state *cstate, lookup_clientid()
3672 if (cstate->clp) { lookup_clientid()
3673 found = cstate->clp; lookup_clientid()
3687 WARN_ON_ONCE(cstate->session); lookup_clientid()
3697 /* Cache the nfs4_client in cstate! */ lookup_clientid()
3698 cstate->clp = found; lookup_clientid()
3703 nfsd4_process_open1(struct nfsd4_compound_state *cstate, nfsd4_process_open1() argument
3722 status = lookup_clientid(clientid, cstate, nn); nfsd4_process_open1()
3725 clp = cstate->clp; nfsd4_process_open1()
3739 status = nfsd4_check_seqid(cstate, &oo->oo_owner, open->op_seqid); nfsd4_process_open1()
3744 oo = alloc_init_open_stateowner(strhashval, open, cstate); nfsd4_process_open1()
3753 if (nfsd4_has_session(cstate) && nfsd4_process_open1()
3754 (cstate->current_fh.fh_export->ex_flags & NFSEXP_PNFS)) { nfsd4_process_open1()
4286 if (nfsd4_has_session(&resp->cstate)) { nfsd4_process_open2()
4313 nfs4_set_claim_prev(open, nfsd4_has_session(&resp->cstate)); nfsd4_process_open2()
4319 !nfsd4_has_session(&resp->cstate)) nfsd4_process_open2()
4329 void nfsd4_cleanup_open_state(struct nfsd4_compound_state *cstate, nfsd4_cleanup_open_state() argument
4335 nfsd4_cstate_assign_replay(cstate, so); nfsd4_cleanup_open_state()
4347 nfsd4_renew(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_renew() argument
4356 status = lookup_clientid(clid, cstate, nn); nfsd4_renew()
4359 clp = cstate->clp; nfsd4_renew()
4655 nfsd4_lookup_stateid(struct nfsd4_compound_state *cstate, nfsd4_lookup_stateid() argument
4663 status = lookup_clientid(&stateid->si_opaque.so_clid, cstate, nn); nfsd4_lookup_stateid()
4665 if (cstate->session) nfsd4_lookup_stateid()
4671 *s = find_stateid_by_type(cstate->clp, stateid, typemask); nfsd4_lookup_stateid()
4712 nfs4_preprocess_stateid_op(struct net *net, struct nfsd4_compound_state *cstate, nfs4_preprocess_stateid_op() argument
4715 struct svc_fh *fhp = &cstate->current_fh; nfs4_preprocess_stateid_op()
4730 status = nfsd4_lookup_stateid(cstate, stateid, nfs4_preprocess_stateid_op()
4736 nfsd4_has_session(cstate)); nfs4_preprocess_stateid_op()
4770 nfsd4_test_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_test_stateid() argument
4774 struct nfs4_client *cl = cstate->session->se_client; nfsd4_test_stateid()
4784 nfsd4_free_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_free_stateid() argument
4791 struct nfs4_client *cl = cstate->session->se_client; nfsd4_free_stateid()
4844 static __be32 nfs4_seqid_op_checks(struct nfsd4_compound_state *cstate, stateid_t *stateid, u32 seqid, struct nfs4_ol_stateid *stp) nfs4_seqid_op_checks() argument
4846 struct svc_fh *current_fh = &cstate->current_fh; nfs4_seqid_op_checks()
4850 status = nfsd4_check_seqid(cstate, sop, seqid); nfs4_seqid_op_checks()
4862 status = check_stateid_generation(stateid, &stp->st_stid.sc_stateid, nfsd4_has_session(cstate)); nfs4_seqid_op_checks()
4874 nfs4_preprocess_seqid_op(struct nfsd4_compound_state *cstate, u32 seqid, nfs4_preprocess_seqid_op() argument
4887 status = nfsd4_lookup_stateid(cstate, stateid, typemask, &s, nn); nfs4_preprocess_seqid_op()
4891 nfsd4_cstate_assign_replay(cstate, stp->st_stateowner); nfs4_preprocess_seqid_op()
4893 status = nfs4_seqid_op_checks(cstate, stateid, seqid, stp); nfs4_preprocess_seqid_op()
4901 static __be32 nfs4_preprocess_confirmed_seqid_op(struct nfsd4_compound_state *cstate, u32 seqid, nfs4_preprocess_confirmed_seqid_op() argument
4908 status = nfs4_preprocess_seqid_op(cstate, seqid, stateid, nfs4_preprocess_confirmed_seqid_op()
4923 nfsd4_open_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_open_confirm() argument
4932 cstate->current_fh.fh_dentry); nfsd4_open_confirm()
4934 status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0); nfsd4_open_confirm()
4938 status = nfs4_preprocess_seqid_op(cstate, nfsd4_open_confirm()
4961 nfsd4_bump_seqid(cstate, status); nfsd4_open_confirm()
4993 struct nfsd4_compound_state *cstate, nfsd4_open_downgrade()
5001 cstate->current_fh.fh_dentry); nfsd4_open_downgrade()
5008 status = nfs4_preprocess_confirmed_seqid_op(cstate, od->od_seqid, nfsd4_open_downgrade()
5034 nfsd4_bump_seqid(cstate, status); nfsd4_open_downgrade()
5065 nfsd4_close(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_close() argument
5074 cstate->current_fh.fh_dentry); nfsd4_close()
5076 status = nfs4_preprocess_seqid_op(cstate, close->cl_seqid, nfsd4_close()
5080 nfsd4_bump_seqid(cstate, status); nfsd4_close()
5096 nfsd4_delegreturn(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_delegreturn() argument
5105 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) nfsd4_delegreturn()
5108 status = nfsd4_lookup_stateid(cstate, stateid, NFS4_DELEG_STID, &s, nn); nfsd4_delegreturn()
5112 status = check_stateid_generation(stateid, &dp->dl_stid.sc_stateid, nfsd4_has_session(cstate)); nfsd4_delegreturn()
5394 lookup_or_create_lock_state(struct nfsd4_compound_state *cstate, lookup_or_create_lock_state() argument
5403 struct inode *inode = d_inode(cstate->current_fh.fh_dentry); lookup_or_create_lock_state()
5416 if (!cstate->minorversion && lookup_or_create_lock_state()
5436 nfsd4_lock(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_lock() argument
5461 if ((status = fh_verify(rqstp, &cstate->current_fh, nfsd4_lock()
5468 if (nfsd4_has_session(cstate)) nfsd4_lock()
5471 &cstate->session->se_client->cl_clientid, nfsd4_lock()
5479 status = nfs4_preprocess_confirmed_seqid_op(cstate, nfsd4_lock()
5491 status = lookup_or_create_lock_state(cstate, open_stp, lock, nfsd4_lock()
5496 status = nfs4_preprocess_seqid_op(cstate, nfsd4_lock()
5595 if (cstate->replay_owner && nfsd4_lock()
5596 cstate->replay_owner != &lock_sop->lo_owner && nfsd4_lock()
5613 nfsd4_bump_seqid(cstate, status); nfsd4_lock()
5642 nfsd4_lockt(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_lockt() argument
5656 if (!nfsd4_has_session(cstate)) { nfsd4_lockt()
5657 status = lookup_clientid(&lockt->lt_clientid, cstate, nn); nfsd4_lockt()
5662 if ((status = fh_verify(rqstp, &cstate->current_fh, S_IFREG, 0))) nfsd4_lockt()
5688 cstate->clp); nfsd4_lockt()
5699 status = nfsd_test_lock(rqstp, &cstate->current_fh, file_lock); nfsd4_lockt()
5716 nfsd4_locku(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, nfsd4_locku() argument
5733 status = nfs4_preprocess_seqid_op(cstate, locku->lu_seqid, nfsd4_locku()
5775 nfsd4_bump_seqid(cstate, status); nfsd4_locku()
5824 struct nfsd4_compound_state *cstate, nfsd4_release_lockowner()
5840 status = lookup_clientid(clid, cstate, nn); nfsd4_release_lockowner()
5844 clp = cstate->clp; nfsd4_release_lockowner()
5957 struct nfsd4_compound_state *cstate, nfs4_check_open_reclaim()
5963 status = lookup_clientid(clid, cstate, nn); nfs4_check_open_reclaim()
5967 if (test_bit(NFSD4_CLIENT_RECLAIM_COMPLETE, &cstate->clp->cl_flags)) nfs4_check_open_reclaim()
5970 if (nfsd4_client_record_check(cstate->clp)) nfs4_check_open_reclaim()
6744 get_stateid(struct nfsd4_compound_state *cstate, stateid_t *stateid) get_stateid() argument
6746 if (HAS_STATE_ID(cstate, CURRENT_STATE_ID_FLAG) && CURRENT_STATEID(stateid)) get_stateid()
6747 memcpy(stateid, &cstate->current_stateid, sizeof(stateid_t)); get_stateid()
6751 put_stateid(struct nfsd4_compound_state *cstate, stateid_t *stateid) put_stateid() argument
6753 if (cstate->minorversion) { put_stateid()
6754 memcpy(&cstate->current_stateid, stateid, sizeof(stateid_t)); put_stateid()
6755 SET_STATE_ID(cstate, CURRENT_STATE_ID_FLAG); put_stateid()
6760 clear_current_stateid(struct nfsd4_compound_state *cstate) clear_current_stateid() argument
6762 CLEAR_STATE_ID(cstate, CURRENT_STATE_ID_FLAG); clear_current_stateid()
6769 nfsd4_set_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *odp) nfsd4_set_opendowngradestateid() argument
6771 put_stateid(cstate, &odp->od_stateid); nfsd4_set_opendowngradestateid()
6775 nfsd4_set_openstateid(struct nfsd4_compound_state *cstate, struct nfsd4_open *open) nfsd4_set_openstateid() argument
6777 put_stateid(cstate, &open->op_stateid); nfsd4_set_openstateid()
6781 nfsd4_set_closestateid(struct nfsd4_compound_state *cstate, struct nfsd4_close *close) nfsd4_set_closestateid() argument
6783 put_stateid(cstate, &close->cl_stateid); nfsd4_set_closestateid()
6787 nfsd4_set_lockstateid(struct nfsd4_compound_state *cstate, struct nfsd4_lock *lock) nfsd4_set_lockstateid() argument
6789 put_stateid(cstate, &lock->lk_resp_stateid); nfsd4_set_lockstateid()
6797 nfsd4_get_opendowngradestateid(struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *odp) nfsd4_get_opendowngradestateid() argument
6799 get_stateid(cstate, &odp->od_stateid); nfsd4_get_opendowngradestateid()
6803 nfsd4_get_delegreturnstateid(struct nfsd4_compound_state *cstate, struct nfsd4_delegreturn *drp) nfsd4_get_delegreturnstateid() argument
6805 get_stateid(cstate, &drp->dr_stateid); nfsd4_get_delegreturnstateid()
6809 nfsd4_get_freestateid(struct nfsd4_compound_state *cstate, struct nfsd4_free_stateid *fsp) nfsd4_get_freestateid() argument
6811 get_stateid(cstate, &fsp->fr_stateid); nfsd4_get_freestateid()
6815 nfsd4_get_setattrstateid(struct nfsd4_compound_state *cstate, struct nfsd4_setattr *setattr) nfsd4_get_setattrstateid() argument
6817 get_stateid(cstate, &setattr->sa_stateid); nfsd4_get_setattrstateid()
6821 nfsd4_get_closestateid(struct nfsd4_compound_state *cstate, struct nfsd4_close *close) nfsd4_get_closestateid() argument
6823 get_stateid(cstate, &close->cl_stateid); nfsd4_get_closestateid()
6827 nfsd4_get_lockustateid(struct nfsd4_compound_state *cstate, struct nfsd4_locku *locku) nfsd4_get_lockustateid() argument
6829 get_stateid(cstate, &locku->lu_stateid); nfsd4_get_lockustateid()
6833 nfsd4_get_readstateid(struct nfsd4_compound_state *cstate, struct nfsd4_read *read) nfsd4_get_readstateid() argument
6835 get_stateid(cstate, &read->rd_stateid); nfsd4_get_readstateid()
6839 nfsd4_get_writestateid(struct nfsd4_compound_state *cstate, struct nfsd4_write *write) nfsd4_get_writestateid() argument
6841 get_stateid(cstate, &write->wr_stateid); nfsd4_get_writestateid()
2320 nfsd4_exchange_id(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_exchange_id *exid) nfsd4_exchange_id() argument
2578 nfsd4_create_session(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_create_session *cr_ses) nfsd4_create_session() argument
2727 nfsd4_bind_conn_to_session(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_bind_conn_to_session *bcts) nfsd4_bind_conn_to_session() argument
2770 nfsd4_destroy_session(struct svc_rqst *r, struct nfsd4_compound_state *cstate, struct nfsd4_destroy_session *sessionid) nfsd4_destroy_session() argument
2867 nfsd4_sequence(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_sequence *seq) nfsd4_sequence() argument
3139 nfsd4_setclientid_confirm(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_setclientid_confirm *setclientid_confirm) nfsd4_setclientid_confirm() argument
3365 alloc_init_open_stateowner(unsigned int strhashval, struct nfsd4_open *open, struct nfsd4_compound_state *cstate) alloc_init_open_stateowner() argument
3666 lookup_clientid(clientid_t *clid, struct nfsd4_compound_state *cstate, struct nfsd_net *nn) lookup_clientid() argument
4992 nfsd4_open_downgrade(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_open_downgrade *od) nfsd4_open_downgrade() argument
5823 nfsd4_release_lockowner(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_release_lockowner *rlockowner) nfsd4_release_lockowner() argument
5956 nfs4_check_open_reclaim(clientid_t *clid, struct nfsd4_compound_state *cstate, struct nfsd_net *nn) nfs4_check_open_reclaim() argument
H A Dnfs4layouts.c184 nfsd4_alloc_layout_stateid(struct nfsd4_compound_state *cstate, nfsd4_alloc_layout_stateid() argument
187 struct nfs4_client *clp = cstate->clp; nfsd4_alloc_layout_stateid()
192 stp = nfs4_alloc_stid(cstate->clp, nfs4_layout_stateid_cache); nfsd4_alloc_layout_stateid()
235 struct nfsd4_compound_state *cstate, stateid_t *stateid, nfsd4_preprocess_layout_stateid()
246 status = nfsd4_lookup_stateid(cstate, stateid, typemask, &stid, nfsd4_preprocess_layout_stateid()
251 if (!fh_match(&cstate->current_fh.fh_handle, nfsd4_preprocess_layout_stateid()
258 ls = nfsd4_alloc_layout_stateid(cstate, stid, layout_type); nfsd4_preprocess_layout_stateid()
458 struct nfsd4_compound_state *cstate, nfsd4_return_file_layouts()
467 nfserr = nfsd4_preprocess_layout_stateid(rqstp, cstate, &lrp->lr_sid, nfsd4_return_file_layouts()
503 struct nfsd4_compound_state *cstate, nfsd4_return_client_layouts()
507 struct nfs4_client *clp = cstate->clp; nfsd4_return_client_layouts()
520 &cstate->current_fh.fh_handle)) nfsd4_return_client_layouts()
234 nfsd4_preprocess_layout_stateid(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, stateid_t *stateid, bool create, u32 layout_type, struct nfs4_layout_stateid **lsp) nfsd4_preprocess_layout_stateid() argument
457 nfsd4_return_file_layouts(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_layoutreturn *lrp) nfsd4_return_file_layouts() argument
502 nfsd4_return_client_layouts(struct svc_rqst *rqstp, struct nfsd4_compound_state *cstate, struct nfsd4_layoutreturn *lrp) nfsd4_return_client_layouts() argument
H A Dxdr4.h602 struct nfsd4_compound_state cstate; member in struct:nfsd4_compoundres
613 return !(resp->cstate.slot->sl_flags & NFSD4_SLOT_CACHETHIS) nfsd4_not_cached()
684 extern void nfsd4_cstate_clear_replay(struct nfsd4_compound_state *cstate);
685 extern void nfsd4_cleanup_open_state(struct nfsd4_compound_state *cstate,
H A Dstate.h587 struct nfsd4_compound_state *cstate,
589 __be32 nfsd4_lookup_stateid(struct nfsd4_compound_state *cstate,
601 struct nfsd4_compound_state *cstate, struct nfsd_net *nn);
H A Dnfs4xdr.c2262 u32 minorversion = resp->cstate.minorversion; nfsd4_encode_fattr()
3991 resp->cstate.data_offset = xdr->buf->len; /* DRC cache data pointer */ nfsd4_encode_sequence()
4296 struct nfsd4_slot *slot = resp->cstate.slot; nfsd4_check_resp_size()
4300 if (!nfsd4_has_session(&resp->cstate)) nfsd4_check_resp_size()
4313 struct nfs4_stateowner *so = resp->cstate.replay_owner; nfsd4_encode_operation()
4342 if (op->status == nfserr_resource && nfsd4_has_session(&resp->cstate)) { nfsd4_encode_operation()
4343 struct nfsd4_slot *slot = resp->cstate.slot; nfsd4_encode_operation()
/linux-4.1.27/tools/power/cpupower/utils/
H A Dcpuidle-info.c103 unsigned int cstate, cstates; proc_cpuidle_cpu_output() local
115 for (cstate = 1; cstate < cstates; cstate++) { proc_cpuidle_cpu_output()
117 "type[C%d] "), cstate, cstate); proc_cpuidle_cpu_output()
120 sysfs_get_idlestate_latency(cpu, cstate)); proc_cpuidle_cpu_output()
122 sysfs_get_idlestate_usage(cpu, cstate)); proc_cpuidle_cpu_output()
124 sysfs_get_idlestate_time(cpu, cstate)); proc_cpuidle_cpu_output()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/clk/
H A Dbase.c82 struct nvkm_cstate *cstate; nvkm_cstate_prog() local
86 cstate = list_entry(pstate->list.prev, typeof(*cstate), head); nvkm_cstate_prog()
88 cstate = &pstate->base; nvkm_cstate_prog()
100 ret = volt->set_id(volt, cstate->voltage, +1); nvkm_cstate_prog()
107 ret = clk->calc(clk, cstate); nvkm_cstate_prog()
114 ret = volt->set_id(volt, cstate->voltage, -1); nvkm_cstate_prog()
129 nvkm_cstate_del(struct nvkm_cstate *cstate) nvkm_cstate_del() argument
131 list_del(&cstate->head); nvkm_cstate_del()
132 kfree(cstate); nvkm_cstate_del()
140 struct nvkm_cstate *cstate = NULL; nvkm_cstate_new() local
149 cstate = kzalloc(sizeof(*cstate), GFP_KERNEL); nvkm_cstate_new()
150 if (!cstate) nvkm_cstate_new()
153 *cstate = pstate->base; nvkm_cstate_new()
154 cstate->voltage = cstepX.voltage; nvkm_cstate_new()
160 cstate->domain[domain->name] = freq; nvkm_cstate_new()
165 list_add(&cstate->head, &pstate->list); nvkm_cstate_new()
250 struct nvkm_cstate *cstate; nvkm_pstate_info() local
265 list_for_each_entry(cstate, &pstate->list, head) { nvkm_pstate_info()
266 u32 freq = cstate->domain[clock->name]; nvkm_pstate_info()
291 struct nvkm_cstate *cstate, *temp; nvkm_pstate_del() local
293 list_for_each_entry_safe(cstate, temp, &pstate->list, head) { nvkm_pstate_del()
294 nvkm_cstate_del(cstate); nvkm_pstate_del()
307 struct nvkm_cstate *cstate; nvkm_pstate_new() local
320 cstate = &pstate->base; nvkm_pstate_new()
328 cstate->voltage = perfE.voltage; nvkm_pstate_new()
329 cstate->domain[nv_clk_src_core] = perfE.core; nvkm_pstate_new()
330 cstate->domain[nv_clk_src_shader] = perfE.shader; nvkm_pstate_new()
331 cstate->domain[nv_clk_src_mem] = perfE.memory; nvkm_pstate_new()
332 cstate->domain[nv_clk_src_vdec] = perfE.vdec; nvkm_pstate_new()
333 cstate->domain[nv_clk_src_dom6] = perfE.disp; nvkm_pstate_new()
350 cstate->domain[domain->name] = perfS.v40.freq; nvkm_pstate_new()
H A Dgf100.c263 struct nvkm_cstate *cstate, int clk, int dom) calc_clk()
266 u32 freq = cstate->domain[dom]; calc_clk()
283 clk1 = cstate->domain[nv_clk_src_hubk06]; calc_clk()
314 gf100_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) gf100_clk_calc() argument
319 if ((ret = calc_clk(priv, cstate, 0x00, nv_clk_src_gpc)) || gf100_clk_calc()
320 (ret = calc_clk(priv, cstate, 0x01, nv_clk_src_rop)) || gf100_clk_calc()
321 (ret = calc_clk(priv, cstate, 0x02, nv_clk_src_hubk07)) || gf100_clk_calc()
322 (ret = calc_clk(priv, cstate, 0x07, nv_clk_src_hubk06)) || gf100_clk_calc()
323 (ret = calc_clk(priv, cstate, 0x08, nv_clk_src_hubk01)) || gf100_clk_calc()
324 (ret = calc_clk(priv, cstate, 0x09, nv_clk_src_copy)) || gf100_clk_calc()
325 (ret = calc_clk(priv, cstate, 0x0c, nv_clk_src_daemon)) || gf100_clk_calc()
326 (ret = calc_clk(priv, cstate, 0x0e, nv_clk_src_vdec))) gf100_clk_calc()
262 calc_clk(struct gf100_clk_priv *priv, struct nvkm_cstate *cstate, int clk, int dom) calc_clk() argument
H A Dgk104.c281 struct nvkm_cstate *cstate, int clk, int dom) calc_clk()
284 u32 freq = cstate->domain[dom]; calc_clk()
301 clk1 = cstate->domain[nv_clk_src_hubk06]; calc_clk()
332 gk104_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) gk104_clk_calc() argument
337 if ((ret = calc_clk(priv, cstate, 0x00, nv_clk_src_gpc)) || gk104_clk_calc()
338 (ret = calc_clk(priv, cstate, 0x01, nv_clk_src_rop)) || gk104_clk_calc()
339 (ret = calc_clk(priv, cstate, 0x02, nv_clk_src_hubk07)) || gk104_clk_calc()
340 (ret = calc_clk(priv, cstate, 0x07, nv_clk_src_hubk06)) || gk104_clk_calc()
341 (ret = calc_clk(priv, cstate, 0x08, nv_clk_src_hubk01)) || gk104_clk_calc()
342 (ret = calc_clk(priv, cstate, 0x0c, nv_clk_src_daemon)) || gk104_clk_calc()
343 (ret = calc_clk(priv, cstate, 0x0e, nv_clk_src_vdec))) gk104_clk_calc()
280 calc_clk(struct gk104_clk_priv *priv, struct nvkm_cstate *cstate, int clk, int dom) calc_clk() argument
H A Dgt215.c265 calc_clk(struct gt215_clk_priv *priv, struct nvkm_cstate *cstate, calc_clk() argument
268 int ret = gt215_pll_info(&priv->base, clk, pll, cstate->domain[idx], calc_clk()
276 calc_host(struct gt215_clk_priv *priv, struct nvkm_cstate *cstate) calc_host() argument
279 u32 kHz = cstate->domain[nv_clk_src_host]; calc_host()
429 gt215_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) gt215_clk_calc() argument
435 if ((ret = calc_clk(priv, cstate, 0x10, 0x4200, nv_clk_src_core)) || gt215_clk_calc()
436 (ret = calc_clk(priv, cstate, 0x11, 0x4220, nv_clk_src_shader)) || gt215_clk_calc()
437 (ret = calc_clk(priv, cstate, 0x20, 0x0000, nv_clk_src_disp)) || gt215_clk_calc()
438 (ret = calc_clk(priv, cstate, 0x21, 0x0000, nv_clk_src_vdec)) || gt215_clk_calc()
439 (ret = calc_host(priv, cstate))) gt215_clk_calc()
446 cstate->domain[nv_clk_src_core_intm], gt215_clk_calc()
H A Dmcp77.c200 mcp77_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) mcp77_clk_calc() argument
203 const int shader = cstate->domain[nv_clk_src_shader]; mcp77_clk_calc()
204 const int core = cstate->domain[nv_clk_src_core]; mcp77_clk_calc()
205 const int vdec = cstate->domain[nv_clk_src_vdec]; mcp77_clk_calc()
H A Dnv40.c152 nv40_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) nv40_clk_calc() argument
155 int gclk = cstate->domain[nv_clk_src_core]; nv40_clk_calc()
156 int sclk = cstate->domain[nv_clk_src_shader]; nv40_clk_calc()
H A Dnv50.c364 nv50_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) nv50_clk_calc() argument
368 const int shader = cstate->domain[nv_clk_src_shader]; nv50_clk_calc()
369 const int core = cstate->domain[nv_clk_src_core]; nv50_clk_calc()
370 const int vdec = cstate->domain[nv_clk_src_vdec]; nv50_clk_calc()
371 const int dom6 = cstate->domain[nv_clk_src_dom6]; nv50_clk_calc()
H A Dgk20a.c580 gk20a_clk_calc(struct nvkm_clk *clk, struct nvkm_cstate *cstate) gk20a_clk_calc() argument
584 return gk20a_pllg_calc_mnp(priv, cstate->domain[nv_clk_src_gpc] * gk20a_clk_calc()
/linux-4.1.27/arch/x86/crypto/sha-mb/
H A Dsha1_mb.c379 struct mcryptd_alg_cstate *cstate, bool flush) sha_finish_walk()
402 sha_ctx = sha1_ctx_mgr_submit(cstate->mgr, sha_ctx, rctx->walk.data, nbytes, flag); sha_finish_walk()
405 sha_ctx = sha1_ctx_mgr_flush(cstate->mgr); sha_finish_walk()
426 struct mcryptd_alg_cstate *cstate, sha_complete_job()
435 spin_lock(&cstate->work_lock); sha_complete_job()
437 spin_unlock(&cstate->work_lock); sha_complete_job()
448 sha_ctx = sha1_ctx_mgr_get_comp_ctx(cstate->mgr); sha_complete_job()
451 ret = sha_finish_walk(&req_ctx, cstate, false); sha_complete_job()
453 spin_lock(&cstate->work_lock); sha_complete_job()
455 spin_unlock(&cstate->work_lock); sha_complete_job()
466 sha_ctx = sha1_ctx_mgr_get_comp_ctx(cstate->mgr); sha_complete_job()
473 struct mcryptd_alg_cstate *cstate) sha1_mb_add_list()
480 rctx->tag.seq_num = cstate->next_seq_num++; sha1_mb_add_list()
484 spin_lock(&cstate->work_lock); sha1_mb_add_list()
485 list_add_tail(&rctx->waiter, &cstate->work_list); sha1_mb_add_list()
486 spin_unlock(&cstate->work_lock); sha1_mb_add_list()
488 mcryptd_arm_flusher(cstate, delay); sha1_mb_add_list()
496 struct mcryptd_alg_cstate *cstate = sha1_mb_update() local
525 sha1_mb_add_list(rctx, cstate); sha1_mb_update()
527 sha_ctx = sha1_ctx_mgr_submit(cstate->mgr, sha_ctx, rctx->walk.data, nbytes, HASH_UPDATE); sha1_mb_update()
541 ret = sha_finish_walk(&rctx, cstate, false); sha1_mb_update()
546 sha_complete_job(rctx, cstate, ret); sha1_mb_update()
555 struct mcryptd_alg_cstate *cstate = sha1_mb_finup() local
587 sha1_mb_add_list(rctx, cstate); sha1_mb_finup()
590 sha_ctx = sha1_ctx_mgr_submit(cstate->mgr, sha_ctx, rctx->walk.data, nbytes, flag); sha1_mb_finup()
603 ret = sha_finish_walk(&rctx, cstate, false); sha1_mb_finup()
607 sha_complete_job(rctx, cstate, ret); sha1_mb_finup()
615 struct mcryptd_alg_cstate *cstate = sha1_mb_final() local
636 sha1_mb_add_list(rctx, cstate); sha1_mb_final()
638 sha_ctx = sha1_ctx_mgr_submit(cstate->mgr, sha_ctx, &data, 0, HASH_LAST); sha1_mb_final()
652 ret = sha_finish_walk(&rctx, cstate, false); sha1_mb_final()
656 sha_complete_job(rctx, cstate, ret); sha1_mb_final()
821 static unsigned long sha1_mb_flusher(struct mcryptd_alg_cstate *cstate) sha1_mb_flusher() argument
831 while (!list_empty(&cstate->work_list)) { sha1_mb_flusher()
832 rctx = list_entry(cstate->work_list.next, sha1_mb_flusher()
837 sha_ctx = (struct sha1_hash_ctx *) sha1_ctx_mgr_flush(cstate->mgr); sha1_mb_flusher()
844 sha_finish_walk(&rctx, cstate, true); sha1_mb_flusher()
845 sha_complete_job(rctx, cstate, 0); sha1_mb_flusher()
848 if (!list_empty(&cstate->work_list)) { sha1_mb_flusher()
849 rctx = list_entry(cstate->work_list.next, sha1_mb_flusher()
853 mcryptd_arm_flusher(cstate, get_delay(next_flush)); sha1_mb_flusher()
378 sha_finish_walk(struct mcryptd_hash_request_ctx **ret_rctx, struct mcryptd_alg_cstate *cstate, bool flush) sha_finish_walk() argument
425 sha_complete_job(struct mcryptd_hash_request_ctx *rctx, struct mcryptd_alg_cstate *cstate, int err) sha_complete_job() argument
472 sha1_mb_add_list(struct mcryptd_hash_request_ctx *rctx, struct mcryptd_alg_cstate *cstate) sha1_mb_add_list() argument
/linux-4.1.27/net/netfilter/
H A Dnf_conntrack_pptp.c307 if (info->cstate != PPTP_CALL_OUT_REQ && pptp_inbound_pkt()
308 info->cstate != PPTP_CALL_OUT_CONF) pptp_inbound_pkt()
319 info->cstate = PPTP_CALL_OUT_CONF; pptp_inbound_pkt()
323 info->cstate = PPTP_CALL_NONE; pptp_inbound_pkt()
333 info->cstate = PPTP_CALL_IN_REQ; pptp_inbound_pkt()
341 if (info->cstate != PPTP_CALL_IN_REP && pptp_inbound_pkt()
342 info->cstate != PPTP_CALL_IN_CONF) pptp_inbound_pkt()
352 info->cstate = PPTP_CALL_IN_CONF; pptp_inbound_pkt()
362 info->cstate = PPTP_CALL_NONE; pptp_inbound_pkt()
387 "cstate=%d sstate=%d pns_cid=%u pac_cid=%u\n", pptp_inbound_pkt()
389 msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, pptp_inbound_pkt()
427 info->cstate = PPTP_CALL_OUT_REQ; pptp_outbound_pkt()
436 if (info->cstate != PPTP_CALL_IN_REQ && pptp_outbound_pkt()
437 info->cstate != PPTP_CALL_IN_REP) pptp_outbound_pkt()
449 info->cstate = PPTP_CALL_IN_REP; pptp_outbound_pkt()
452 info->cstate = PPTP_CALL_NONE; pptp_outbound_pkt()
462 info->cstate = PPTP_CALL_CLEAR_REQ; pptp_outbound_pkt()
483 "cstate=%d sstate=%d pns_cid=%u pac_cid=%u\n", pptp_outbound_pkt()
485 msg, ntohs(cid), ntohs(pcid), info->cstate, info->sstate, pptp_outbound_pkt()
569 oldcstate = info->cstate; conntrack_pptp_help()
583 pr_debug("sstate: %d->%d, cstate: %d->%d\n", conntrack_pptp_help()
584 oldsstate, info->sstate, oldcstate, info->cstate); conntrack_pptp_help()
/linux-4.1.27/drivers/gpu/drm/ttm/
H A Dttm_page_alloc.c257 enum ttm_caching_state cstate) ttm_get_pool()
261 if (cstate == tt_cached) ttm_get_pool()
264 if (cstate == tt_wc) ttm_get_pool()
449 enum ttm_caching_state cstate, unsigned cpages) ttm_set_pages_caching()
453 switch (cstate) { ttm_set_pages_caching()
476 int ttm_flags, enum ttm_caching_state cstate, ttm_handle_caching_state_failure()
494 int ttm_flags, enum ttm_caching_state cstate, unsigned count) ttm_alloc_new_pages()
521 cstate, cpages); ttm_alloc_new_pages()
524 ttm_flags, cstate, ttm_alloc_new_pages()
542 cstate, cpages); ttm_alloc_new_pages()
545 ttm_flags, cstate, ttm_alloc_new_pages()
557 r = ttm_set_pages_caching(caching_array, cstate, cpages); ttm_alloc_new_pages()
560 ttm_flags, cstate, ttm_alloc_new_pages()
574 int ttm_flags, enum ttm_caching_state cstate, unsigned count, ttm_page_pool_fill_locked()
605 cstate, alloc_size); ttm_page_pool_fill_locked()
634 enum ttm_caching_state cstate, ttm_page_pool_get_pages()
642 ttm_page_pool_fill_locked(pool, ttm_flags, cstate, count, &irq_flags); ttm_page_pool_get_pages()
677 enum ttm_caching_state cstate) ttm_put_pages()
680 struct ttm_page_pool *pool = ttm_get_pool(flags, cstate); ttm_put_pages()
725 enum ttm_caching_state cstate) ttm_get_pages()
727 struct ttm_page_pool *pool = ttm_get_pool(flags, cstate); ttm_get_pages()
763 npages = ttm_page_pool_get_pages(pool, &plist, flags, cstate, npages); ttm_get_pages()
785 r = ttm_alloc_new_pages(&plist, gfp_flags, flags, cstate, npages); ttm_get_pages()
793 ttm_put_pages(pages, count, flags, cstate); ttm_get_pages()
256 ttm_get_pool(int flags, enum ttm_caching_state cstate) ttm_get_pool() argument
448 ttm_set_pages_caching(struct page **pages, enum ttm_caching_state cstate, unsigned cpages) ttm_set_pages_caching() argument
475 ttm_handle_caching_state_failure(struct list_head *pages, int ttm_flags, enum ttm_caching_state cstate, struct page **failed_pages, unsigned cpages) ttm_handle_caching_state_failure() argument
493 ttm_alloc_new_pages(struct list_head *pages, gfp_t gfp_flags, int ttm_flags, enum ttm_caching_state cstate, unsigned count) ttm_alloc_new_pages() argument
573 ttm_page_pool_fill_locked(struct ttm_page_pool *pool, int ttm_flags, enum ttm_caching_state cstate, unsigned count, unsigned long *irq_flags) ttm_page_pool_fill_locked() argument
631 ttm_page_pool_get_pages(struct ttm_page_pool *pool, struct list_head *pages, int ttm_flags, enum ttm_caching_state cstate, unsigned count) ttm_page_pool_get_pages() argument
676 ttm_put_pages(struct page **pages, unsigned npages, int flags, enum ttm_caching_state cstate) ttm_put_pages() argument
724 ttm_get_pages(struct page **pages, unsigned npages, int flags, enum ttm_caching_state cstate) ttm_get_pages() argument
H A Dttm_page_alloc_dma.c353 static enum pool_type ttm_to_type(int flags, enum ttm_caching_state cstate) ttm_to_type() argument
359 if (cstate == tt_cached) ttm_to_type()
361 else if (cstate == tt_uncached) ttm_to_type()
/linux-4.1.27/include/crypto/
H A Dmcryptd.h95 unsigned long (*flusher)(struct mcryptd_alg_cstate *cstate);
110 void mcryptd_arm_flusher(struct mcryptd_alg_cstate *cstate, unsigned long delay);
/linux-4.1.27/crypto/
H A Dmcryptd.c50 void mcryptd_arm_flusher(struct mcryptd_alg_cstate *cstate, unsigned long delay) mcryptd_arm_flusher() argument
54 if (!cstate->flusher_engaged) { mcryptd_arm_flusher()
58 list_add_tail(&cstate->flush_list, &flist->list); mcryptd_arm_flusher()
59 cstate->flusher_engaged = true; mcryptd_arm_flusher()
60 cstate->next_flush = jiffies + delay; mcryptd_arm_flusher()
62 &cstate->flush, delay); mcryptd_arm_flusher()
126 struct mcryptd_alg_cstate *cstate; mcryptd_opportunistic_flush() local
135 cstate = list_entry(flist->list.next, mcryptd_opportunistic_flush()
137 if (!cstate->flusher_engaged) { mcryptd_opportunistic_flush()
141 list_del(&cstate->flush_list); mcryptd_opportunistic_flush()
142 cstate->flusher_engaged = false; mcryptd_opportunistic_flush()
144 cstate->alg_state->flusher(cstate); mcryptd_opportunistic_flush()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/engine/device/
H A Dctrl.c75 struct nvkm_cstate *cstate; nvkm_control_mthd_pstate_attr() local
112 list_for_each_entry(cstate, &pstate->list, head) { nvkm_control_mthd_pstate_attr()
113 lo = min(lo, cstate->domain[domain->name]); nvkm_control_mthd_pstate_attr()
114 hi = max(hi, cstate->domain[domain->name]); nvkm_control_mthd_pstate_attr()
/linux-4.1.27/drivers/idle/
H A Dintel_idle.c125 * States are indexed by the cstate number,
665 unsigned int cstate; intel_idle() local
668 cstate = (((eax) >> MWAIT_SUBSTATE_SIZE) & MWAIT_CSTATE_MASK) + 1; intel_idle()
677 if (!(lapic_timer_reliable_states & (1 << (cstate)))) intel_idle()
682 if (!(lapic_timer_reliable_states & (1 << (cstate)))) intel_idle()
958 int cstate; intel_idle_cpuidle_driver_init() local
965 for (cstate = 0; cstate < CPUIDLE_STATE_MAX; ++cstate) { intel_idle_cpuidle_driver_init()
968 if (cpuidle_state_table[cstate].enter == NULL) intel_idle_cpuidle_driver_init()
971 if (cstate + 1 > max_cstate) { intel_idle_cpuidle_driver_init()
977 mwait_hint = flg2MWAIT(cpuidle_state_table[cstate].flags); intel_idle_cpuidle_driver_init()
994 cpuidle_state_table[cstate]; intel_idle_cpuidle_driver_init()
/linux-4.1.27/include/net/
H A Dslhc_vj.h128 struct cstate { struct
130 struct cstate *next; /* next in ring (xmit) */
137 #define NULLSLSTATE (struct cstate *)0
143 struct cstate *tstate; /* transmit connection states (array)*/
144 struct cstate *rstate; /* receive connection states (array)*/
/linux-4.1.27/tools/power/cpupower/utils/idle_monitor/
H A Dcpupower-monitor.h32 typedef struct cstate { struct
H A Damd_fam14h_idle.c97 static int amd_fam14h_get_pci_info(struct cstate *state, amd_fam14h_get_pci_info()
/linux-4.1.27/drivers/gpu/drm/nouveau/nvkm/subdev/therm/
H A Dbase.c116 if (priv->cstate) nvkm_therm_update()
117 duty = priv->cstate; nvkm_therm_update()
143 if (!dir || (dir < 0 && fan < priv->cstate) || nvkm_therm_cstate()
144 (dir > 0 && fan > priv->cstate)) { nvkm_therm_cstate()
146 priv->cstate = fan; nvkm_therm_cstate()
H A Dpriv.h77 int cstate; member in struct:nvkm_therm_priv
/linux-4.1.27/drivers/net/slip/
H A Dslhc.c95 register struct cstate *ts; slhc_init()
106 size_t rsize = rslots * sizeof(struct cstate); slhc_init()
114 size_t tsize = tslots * sizeof(struct cstate); slhc_init()
230 register struct cstate *ocs = &(comp->tstate[comp->xmit_oldest]); slhc_compress()
231 register struct cstate *lcs = ocs; slhc_compress()
232 register struct cstate *cs = lcs->next; slhc_compress()
305 * Didn't find it -- re-use oldest cstate. Send an slhc_compress()
493 register struct cstate *cs; slhc_uncompress()
636 register struct cstate *cs; slhc_remember()
/linux-4.1.27/lib/
H A Ddecompress_unlzma.c287 struct cstate { struct
348 struct cstate *cst, uint16_t *p, process_bit0()
392 struct cstate *cst, uint16_t *p, process_bit1()
554 struct cstate cst; unlzma()
/linux-4.1.27/include/acpi/
H A Dprocessor.h253 void acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cstate);
270 *cstate) acpi_processor_ffh_cstate_enter()
269 acpi_processor_ffh_cstate_enter(struct acpi_processor_cx *cstate) acpi_processor_ffh_cstate_enter() argument
/linux-4.1.27/arch/x86/kernel/acpi/
H A Dcstate.c58 /* The code below handles cstate entry with monitor-mwait pair on Intel*/
/linux-4.1.27/drivers/thermal/
H A Dintel_powerclamp.c345 /* calculate pkg cstate vs tsc ratio */ powerclamp_adjust_controls()
488 /* calculate pkg cstate vs tsc ratio */ poll_pkg_cstate()
513 /* check if pkg cstate counter is completely 0, abort in this case */ start_power_clamp()
515 pr_err("pkg cstate counter not functional, abort\n"); start_power_clamp()
/linux-4.1.27/include/linux/netfilter/
H A Dnf_conntrack_pptp.h33 enum pptp_ctrlcall_state cstate; /* call state */ member in struct:nf_ct_pptp_master
/linux-4.1.27/include/xen/interface/
H A Dplatform.h353 uint8_t type; /* cstate value, c0: 0, c1: 1, ... */
354 uint32_t latency; /* worst latency (ms) to enter/exit this cstate */
/linux-4.1.27/drivers/block/drbd/
H A Ddrbd_state.c660 /* While establishing a connection only allow cstate to change. is_valid_soft_transition()
661 Delay/refuse role changes, detach attach etc... (they do not touch cstate) */ is_valid_soft_transition()
1644 .conn = connection->cstate, conn_old_common_state()
1745 if (connection->cstate != C_WF_REPORT_PARAMS && val.conn == C_WF_REPORT_PARAMS) conn_set_state()
1748 connection->cstate = val.conn; conn_set_state()
1811 if (err == SS_SUCCESS && connection->cstate == C_WF_REPORT_PARAMS) _conn_rq_cond()
1823 enum drbd_conns oc = connection->cstate; _conn_request_state()
H A Ddrbd_nl.c448 if (connection->cstate >= C_WF_REPORT_PARAMS) { conn_try_outdate_peer()
449 drbd_err(connection, "Expected cstate < C_WF_REPORT_PARAMS\n"); conn_try_outdate_peer()
521 if (connection->cstate < C_WF_REPORT_PARAMS && !test_bit(STATE_SENT, &connection->flags)) { conn_try_outdate_peer()
1155 (connection->cstate < C_CONNECTED || connection->agreed_features & FF_TRIM)) { drbd_setup_queue_param()
1241 connection->cstate == C_STANDALONE; conn_reconfig_done()
2006 if (old_net_conf && connection->cstate == C_WF_REPORT_PARAMS && connection->agreed_pro_version < 100) { _check_net_options()
2212 if (connection->cstate >= C_WF_REPORT_PARAMS && connection->agreed_pro_version >= 100) drbd_adm_net_opts()
2224 if (connection->cstate >= C_WF_REPORT_PARAMS) { drbd_adm_net_opts()
2297 if (connection->cstate > C_STANDALONE) {
3538 if (connection->cstate > C_STANDALONE) for_each_connection()
H A Ddrbd_receiver.c510 t = wait_event_timeout(connection->ping_wait, connection->cstate < C_WF_REPORT_PARAMS, t); drbd_recv()
990 if (connection->cstate <= C_DISCONNECTING) conn_connect()
1096 if (rv < SS_SUCCESS || connection->cstate != C_WF_REPORT_PARAMS) { conn_connect()
4508 drbd_info(device, "unexpected cstate (%s) in receive_bitmap\n", receive_bitmap()
4554 drbd_err(device, "ASSERT FAILED cstate = %s, expected: WFSyncUUID|WFBitMapT|Behind\n", receive_out_of_sync()
4653 if (connection->cstate == C_STANDALONE) conn_disconnect()
4690 oc = connection->cstate; conn_disconnect()
5576 connection->cstate < C_WF_REPORT_PARAMS, drbd_asender()
H A Ddrbd_main.c1295 if (connection->cstate < C_WF_REPORT_PARAMS) drbd_send_b_ack()
1440 || connection->cstate < C_WF_REPORT_PARAMS; we_should_drop_the_connection()
1537 } while (len > 0 /* THINK && device->cstate >= C_CONNECTED*/); _drbd_send_page()
2642 connection->cstate = C_STANDALONE; conn_create()
2834 device->state.conn = first_connection(resource)->cstate;
H A Ddrbd_worker.c2122 if (w->cb(w, connection->cstate < C_WF_REPORT_PARAMS) == 0) drbd_worker()
2124 if (connection->cstate >= C_WF_REPORT_PARAMS) drbd_worker()
H A Ddrbd_actlog.c679 "rs_failed=%d count=%d cstate=%s\n", update_rs_extent()
H A Ddrbd_int.h717 enum drbd_conns cstate; /* Only C_STANDALONE to C_WF_REPORT_PARAMS */ member in struct:drbd_connection
730 struct drbd_socket data; /* data/barrier/cstate/parameter packets */
H A Ddrbd_bitmap.c1605 * but the general usage is that this is only use during a cstate when bits are
/linux-4.1.27/tools/power/cpupower/utils/helpers/
H A Dsysfs.c122 * cstates starting with 0, C0 is not counted as cstate.
/linux-4.1.27/drivers/acpi/
H A Dprocessor_idle.c191 struct acpi_processor_cx *cstate) { } lapic_timer_propagate_broadcast()
683 * @cx: cstate data
190 lapic_timer_check_state(int state, struct acpi_processor *pr, struct acpi_processor_cx *cstate) lapic_timer_check_state() argument
/linux-4.1.27/drivers/media/platform/marvell-ccic/
H A Dmcam-core.c2010 enum mcam_state cstate = cam->state; mccic_suspend() local
2014 cam->state = cstate; mccic_suspend()
/linux-4.1.27/arch/x86/kernel/
H A Dsmpboot.c1425 * Initialized below to cstate, sub_cstate value when EDX is valid. mwait_play_dead()
/linux-4.1.27/arch/x86/xen/
H A Denlighten.c370 * need to gather the MWAIT_LEAF values (which the cstate.c code xen_check_mwait()
/linux-4.1.27/drivers/net/wireless/rtlwifi/
H A Dwifi.h2494 u32 cstate; member in struct:bt_coexist_info
/linux-4.1.27/tools/power/x86/turbostat/
H A Dturbostat.c1376 fprintf(stderr, " (%s%s%s%s%slocked: pkg-cstate-limit=%d: %s)\n", dump_nhm_cst_cfg()

Completed in 1506 milliseconds