Home
last modified time | relevance | path

Searched refs:pf (Results 1 – 21 of 21) sorted by relevance

/system/sepolicy/tools/sepolicy-analyze/
Dutils.c25 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf) in load_policy() argument
49 policy_file_init(pf); in load_policy()
50 pf->type = PF_USE_MEMORY; in load_policy()
51 pf->data = map; in load_policy()
52 pf->len = sb.st_size; in load_policy()
59 ret = policydb_read(policydb, pf, 0); in load_policy()
Dsepolicy-analyze.c45 struct policy_file pf; in main() local
53 if(load_policy(policy, &policydb, &pf)) in main()
Dutils.h14 int load_policy(char *filename, policydb_t * policydb, struct policy_file *pf);
/system/bt/stack/include/
Drfcdefs.h80 #define RFCOMM_PARSE_TYPE_FIELD(type, pf, p_data) \ argument
83 pf = (*p_data++ & RFCOMM_PF_MASK) >> RFCOMM_PF_OFFSET;\
86 #define RFCOMM_FORMAT_TYPE_FIELD(p_data, type, pf) \ argument
87 *p_data++ = (type | (pf << RFCOMM_PF_OFFSET)) \
90 pf = (*p_data++ & RFCOMM_PF_MASK) >> RFCOMM_PF_OFFSET;\
/system/sepolicy/tools/
Dsepolicy-check.c188 int load_policy(char *filename, policydb_t *policydb, struct policy_file *pf) { in load_policy() argument
211 policy_file_init(pf); in load_policy()
212 pf->type = PF_USE_MEMORY; in load_policy()
213 pf->data = map; in load_policy()
214 pf->len = sb.st_size; in load_policy()
221 ret = policydb_read(policydb, pf, 0); in load_policy()
237 struct policy_file pf; in main() local
279 if (load_policy(policy, &policydb, &pf)) in main()
Dcheckfc.c34 sepol_policy_file_t *pf; member
210 if (global_state.sepolicy.pf) { in cleanup()
211 sepol_policy_file_free(global_state.sepolicy.pf); in cleanup()
279 if (sepol_policy_file_create(&global_state.sepolicy.pf) < 0) { in do_fc_check_and_die_on_error()
284 sepol_policy_file_set_fp(global_state.sepolicy.pf, global_state.sepolicy.file); in do_fc_check_and_die_on_error()
285 sepol_policy_file_set_handle(global_state.sepolicy.pf, global_state.sepolicy.handle); in do_fc_check_and_die_on_error()
293 rc = sepol_policydb_read(global_state.sepolicy.sdb, global_state.sepolicy.pf); in do_fc_check_and_die_on_error()
Dcheck_seapp.c147 sepol_policy_file_t *pf; member
174 .pf = NULL,
871 if (sepol_policy_file_create(&pol.pf) < 0) { in init()
877 sepol_policy_file_set_fp(pol.pf, pol.policy_file); in init()
878 sepol_policy_file_set_handle(pol.pf, pol.handle); in init()
886 if (sepol_policydb_read(pol.db, pol.pf) < 0) { in init()
1211 if (pol.pf) in cleanup()
1212 sepol_policy_file_free(pol.pf); in cleanup()
/system/vold/
DScryptParameters.cpp22 bool parse_scrypt_parameters(const char* paramstr, int *Nf, int *rf, int *pf) { in parse_scrypt_parameters() argument
48 *Nf = params[0]; *rf = params[1]; *pf = params[2]; in parse_scrypt_parameters()
DScryptParameters.h28 bool parse_scrypt_parameters(const char* paramstr, int *Nf, int *rf, int *pf);
DKeyStorage.cpp216 int Nf, rf, pf; in stretchSecret() local
218 &rf, &pf)) { in stretchSecret()
225 1 << Nf, 1 << rf, 1 << pf, in stretchSecret()
Dcryptfs.c486 int Nf, rf, pf; in get_device_scrypt_params() local
489 if (!parse_scrypt_parameters(paramstr, &Nf, &rf, &pf)) { in get_device_scrypt_params()
491 parse_scrypt_parameters(SCRYPT_DEFAULTS, &Nf, &rf, &pf); in get_device_scrypt_params()
495 ftr->p_factor = pf; in get_device_scrypt_params()
/system/connectivity/shill/
Darp_client.cc88 sock_fprog pf; in CreateSocket() local
89 pf.filter = const_cast<sock_filter*>(arp_filter); in CreateSocket()
90 pf.len = arraysize(arp_filter); in CreateSocket()
91 if (sockets_->AttachFilter(socket_, &pf) != 0) { in CreateSocket()
/system/connectivity/dhcp_client/
Ddhcpv4.cc176 sock_fprog pf; in CreateRawSocket() local
177 memset(&pf, 0, sizeof(pf)); in CreateRawSocket()
178 pf.filter = const_cast<sock_filter*>(dhcp_bpf_filter); in CreateRawSocket()
179 pf.len = dhcp_bpf_filter_len; in CreateRawSocket()
181 if (sockets_->AttachFilter(fd, &pf) != 0) { in CreateRawSocket()
/system/connectivity/shill/net/
Dsockets.cc48 int Sockets::AttachFilter(int sockfd, struct sock_fprog* pf) const { in AttachFilter()
49 return setsockopt(sockfd, SOL_SOCKET, SO_ATTACH_FILTER, pf, sizeof(*pf)); in AttachFilter()
Dmock_sockets.h36 MOCK_CONST_METHOD2(AttachFilter, int(int sockfd, struct sock_fprog* pf));
Dsockets.h48 virtual int AttachFilter(int sockfd, struct sock_fprog* pf) const;
/system/bt/stack/avrc/
Davrc_int.h91 #define AVRC_CTRL_PKT_LEN(pf, pk) {pf = (UINT8 *)((pk) + 1) + (pk)->offset + 2;} argument
/system/bt/stack/rfcomm/
Drfc_ts_frames.c99 void rfc_send_dm (tRFC_MCB *p_mcb, UINT8 dlci, BOOLEAN pf) in rfc_send_dm() argument
110 *p_data++ = RFCOMM_DM | ((pf) ? RFCOMM_PF : 0); in rfc_send_dm()
557 RFCOMM_PARSE_TYPE_FIELD (p_frame->type, p_frame->pf, p_data); in rfc_parse_data()
565 (p_frame->dlci != RFCOMM_MX_DLCI) && (p_frame->pf == 1)) in rfc_parse_data()
590 || !p_frame->pf || len || !RFCOMM_VALID_DLCI (p_frame->dlci) in rfc_parse_data()
601 || !p_frame->pf || len || !RFCOMM_VALID_DLCI (p_frame->dlci) in rfc_parse_data()
623 || !p_frame->pf || len || !RFCOMM_VALID_DLCI(p_frame->dlci) in rfc_parse_data()
Drfc_int.h84 UINT8 pf; member
326 extern void rfc_send_dm (tRFC_MCB *p_rfc_mcb, UINT8 dlci, BOOLEAN pf);
Drfc_l2cap_if.c353 rfc_send_dm (p_mcb, rfc_cb.rfc.rx_frame.dlci, rfc_cb.rfc.rx_frame.pf); in RFCOMM_BufDataInd()
/system/connectivity/shill/mobile_operator_db/
Dserviceproviders.prototxt11065 country : "pf"