/external/bluetooth/hcidump/parser/ |
D | parser.c | 64 uint16_t psm; member 69 void set_proto(uint16_t handle, uint16_t psm, uint8_t channel, uint32_t proto) in set_proto() argument 73 if (psm > 0 && psm < 0x1000 && !channel) in set_proto() 76 if (!psm && channel) in set_proto() 77 psm = RFCOMM_PSM; in set_proto() 80 …if (proto_table[i].handle == handle && proto_table[i].psm == psm && proto_table[i].channel == chan… in set_proto() 85 if (pos < 0 && !proto_table[i].handle && !proto_table[i].psm && !proto_table[i].channel) in set_proto() 93 proto_table[pos].psm = psm; in set_proto() 98 uint32_t get_proto(uint16_t handle, uint16_t psm, uint8_t channel) in get_proto() argument 102 if (!psm && channel) in get_proto() [all …]
|
D | sdp.c | 269 static inline void print_int(uint8_t de_type, int level, int n, struct frame *frm, uint16_t *psm, u… in print_int() argument 294 if (psm && de_type == SDP_DE_UINT) in print_int() 295 if (*psm == 0) in print_int() 296 *psm = val; in print_int() 321 static inline void print_uuid(int n, struct frame *frm, uint16_t *psm, uint8_t *channel) in print_uuid() argument 353 if (psm && *psm > 0 && *psm != 0xffff) { in print_uuid() 354 set_proto(frm->handle, *psm, 0, uuid); in print_uuid() 355 *psm = 0xffff; in print_uuid() 359 set_proto(frm->handle, *psm, *channel, uuid); in print_uuid() 397 static inline void print_de(int, struct frame *frm, int *split, uint16_t *psm, uint8_t *channel); [all …]
|
D | l2cap.c | 57 uint16_t psm; member 93 static void add_cid(int in, uint16_t handle, uint16_t cid, uint16_t psm) in add_cid() argument 102 if (table[i].psm == psm) in add_cid() 109 table[pos].psm = psm; in add_cid() 133 cid_table[t][i].psm = 0; in del_cid() 150 cid_table[t][i].psm = 0; in del_handle() 164 return table[i].psm; in get_psm() 391 uint16_t psm = btohs(h->psm); in conn_req() local 394 add_cid(frm->in, frm->handle, scid, psm); in conn_req() 399 printf("Connect req: psm %d scid 0x%4.4x\n", psm, scid); in conn_req() [all …]
|
D | parser.h | 202 void set_proto(uint16_t handle, uint16_t psm, uint8_t channel, uint32_t proto); 203 uint32_t get_proto(uint16_t handle, uint16_t psm, uint8_t channel);
|
/external/bluetooth/bluez/tools/ |
D | ciptool.c | 91 static int get_psm(bdaddr_t *src, bdaddr_t *dst, unsigned short *psm) in get_psm() argument 122 *psm = p; in get_psm() 131 static int do_connect(int ctl, int dev_id, bdaddr_t *src, bdaddr_t *dst, unsigned short psm, uint32… in do_connect() argument 182 addr.l2_psm = htobs(psm); in do_connect() 228 unsigned short psm; in cmd_search() local 256 if (!get_psm(&src, &dst, &psm)) in cmd_search() 262 do_connect(ctl, dev_id, &src, &dst, psm, 0); in cmd_search() 275 unsigned short psm; in cmd_create() local 293 if (!get_psm(&src, &dst, &psm)) in cmd_create() 294 psm = 4099; in cmd_create() [all …]
|
D | sdptool.c | 1139 uint16_t psm; member 2034 sdp_data_t *psm, *version; in add_nap() local 2055 psm = sdp_data_alloc(SDP_UINT16, &lp); in add_nap() 2056 proto[0] = sdp_list_append(proto[0], psm); in add_nap() 2094 sdp_data_free(psm); in add_nap() 2111 sdp_data_t *psm, *version; in add_gn() local 2132 psm = sdp_data_alloc(SDP_UINT16, &lp); in add_gn() 2133 proto[0] = sdp_list_append(proto[0], psm); in add_gn() 2157 sdp_data_free(psm); in add_gn() 2174 sdp_data_t *psm, *version; in add_panu() local [all …]
|
/external/bluetooth/bluez/cups/ |
D | sdp.c | 67 unsigned short psm = sdp_get_proto_port(protos, L2CAP_UUID); in sdp_search_hcrp() local 68 if (psm > 0) { in sdp_search_hcrp() 69 *ctrl_psm = psm; in sdp_search_hcrp() 74 unsigned short psm = sdp_get_proto_port(protos, L2CAP_UUID); in sdp_search_hcrp() local 75 if (psm > 0 && *ctrl_psm > 0) { in sdp_search_hcrp() 76 *data_psm = psm; in sdp_search_hcrp()
|
/external/qemu/distrib/sdl-1.2.12/src/video/ps2gs/ |
D | SDL_gsvideo.c | 202 ((unsigned long long)image->psm << 56); in loadimage_nonblock() 314 switch (vinfo.psm) { in GS_VideoInit() 322 SDL_SetError("Unknown console pixel format: %d", vinfo.psm); in GS_VideoInit() 325 vformat->BitsPerPixel = GS_pixelmasks[vinfo.psm].bpp; in GS_VideoInit() 326 vformat->Rmask = GS_pixelmasks[vinfo.psm].r; in GS_VideoInit() 327 vformat->Gmask = GS_pixelmasks[vinfo.psm].g; in GS_VideoInit() 328 vformat->Bmask = GS_pixelmasks[vinfo.psm].b; in GS_VideoInit() 428 (GS_pixelmasks[vinfo.psm].bpp != bpp) ) { in GS_SetVideoMode() 454 vinfo.psm = GS_formatmap[bpp/8]; in GS_SetVideoMode() 455 if ( vinfo.psm < 0 ) { in GS_SetVideoMode() [all …]
|
D | SDL_gsyuv.c | 83 int fbp, fbw, psm; in GS_CreateYUVOverlay() local 218 psm = screen_image.psm; in GS_CreateYUVOverlay() 231 ((unsigned long long)psm << 56); in GS_CreateYUVOverlay() 271 ((unsigned long long)psm << 20) + in GS_CreateYUVOverlay() 403 if ( screen_image.psm == PS2_GS_PSMCT16 ) { in GS_DisplayYUVOverlay()
|
/external/chromium/net/base/ |
D | cert_database_nss.cc | 25 namespace psm = mozilla_security_manager; 31 psm::EnsurePKCS12Init(); in CertDatabase() 160 int result = psm::nsPKCS12Blob_Import(module->os_module_handle(), in ImportFromPKCS12() 173 return psm::nsPKCS12Blob_Export(output, certs, password); in ExportToPKCS12() 203 bool success = psm::ImportCACerts(certificates, root, trust_bits, in ImportCACerts() 213 return psm::ImportServerCert(certificates, not_imported); in ImportServerCert() 224 psm::nsNSSCertTrust trust(&nsstrust); in GetCertTrust() 242 bool success = psm::SetCertTrust(cert, type, trusted); in SetCertTrust()
|
D | keygen_handler_nss.cc | 15 namespace psm = mozilla_security_manager; 37 return psm::GenKeyAndSignChallenge(key_size_in_bits_, challenge_, url_, in GenKeyAndSignChallenge()
|
D | cert_database_nss_unittest.cc | 30 namespace psm = mozilla_security_manager; 210 psm::nsNSSCertTrust trust(cert->os_cert_handle()->trust); in TEST_F() 242 psm::nsNSSCertTrust trust(cert->os_cert_handle()->trust); in TEST_F() 273 psm::nsNSSCertTrust trust(cert->os_cert_handle()->trust); in TEST_F() 459 psm::nsNSSCertTrust goog_trust(goog_cert->os_cert_handle()->trust); in TEST_F() 484 psm::nsNSSCertTrust puny_trust(puny_cert->os_cert_handle()->trust); in TEST_F()
|
/external/chromium/chrome/common/net/ |
D | x509_certificate_model_nss.cc | 24 namespace psm = mozilla_security_manager; 58 return psm::GetOIDText(&algorithm_id->algorithm); in ProcessSecAlgorithmInternal() 69 psm::ProcessExtensionData(SECOID_FindOIDTag(&extension->id), in ProcessExtension() 123 return psm::GetCertTokenName(cert_handle); in GetTokenName() 135 return psm::GetCertType(cert_handle); in GetType() 146 psm::GetCertUsageStrings(cert_handle, usages); in GetUsageStrings() 154 key_usage_str = psm::ProcessKeyUsageBitString(&key_usage, ','); in GetKeyUsageString() 209 return psm::GetCertTitle(cert_handle); in GetTitle() 213 return psm::ProcessName(&cert_handle->issuer); in GetIssuerName() 217 return psm::ProcessName(&cert_handle->subject); in GetSubjectName() [all …]
|
/external/bluetooth/bluez/attrib/ |
D | utils.c | 44 const gchar *sec_level, int psm, int mtu, in gatt_connect() argument 55 minimum_mtu = psm ? ATT_MIN_MTU_L2CAP : ATT_MIN_MTU_LE; in gatt_connect() 84 if (psm == 0) in gatt_connect() 96 BT_IO_OPT_PSM, psm, in gatt_connect()
|
D | client.h | 26 struct btd_device *device, int psm,
|
D | gatttool.h | 26 const gchar *sec_level, int psm, int mtu,
|
D | gatt.c | 599 static gboolean parse_proto_params(sdp_list_t *proto_list, uint16_t *psm, in parse_proto_params() argument 604 if (psm) in parse_proto_params() 605 *psm = sdp_get_proto_port(proto_list, L2CAP_UUID); in parse_proto_params() 626 uuid_t *prim_uuid, uint16_t *psm, in gatt_parse_record() argument 642 ret = parse_proto_params(list, psm, start, end); in gatt_parse_record()
|
/external/bluetooth/bluez/input/ |
D | server.c | 63 uint16_t psm; in connect_event_cb() local 76 BT_IO_OPT_PSM, &psm, in connect_event_cb() 85 DBG("Incoming connection on PSM %d", psm); in connect_event_cb() 87 ret = input_device_set_channel(&src, &dst, psm, chan); in connect_event_cb() 92 if (ret == -ENOENT && psm == L2CAP_PSM_HIDP_CTRL) { in connect_event_cb()
|
D | device.h | 54 int input_device_set_channel(const bdaddr_t *src, const bdaddr_t *dst, int psm,
|
/external/bluetooth/bluez/health/ |
D | hdp_util.c | 361 sdp_data_t *psm = NULL, *mcap_ver = NULL; in register_service_protocols() local 372 psm = sdp_data_alloc(SDP_UINT16, &adapter->ccpsm); in register_service_protocols() 373 if (!psm) { in register_service_protocols() 378 if (!sdp_list_append(l2cap_list, psm)) { in register_service_protocols() 435 if (psm) in register_service_protocols() 436 sdp_data_free(psm); in register_service_protocols() 475 sdp_data_t *psm = NULL; in register_service_additional_protocols() local 485 psm = sdp_data_alloc(SDP_UINT16, &adapter->dcpsm); in register_service_additional_protocols() 486 if (!psm) { in register_service_additional_protocols() 491 if (!sdp_list_append(l2cap_list, psm)) { in register_service_additional_protocols() [all …]
|
/external/bluetooth/bluez/test/ |
D | btiotest.c | 227 static void l2cap_connect(const char *src, const char *dst, uint16_t psm, in l2cap_connect() argument 233 printf("Connecting to %s L2CAP PSM %u\n", dst, psm); in l2cap_connect() 243 BT_IO_OPT_PSM, psm, in l2cap_connect() 251 BT_IO_OPT_PSM, psm, in l2cap_connect() 262 static void l2cap_listen(const char *src, uint16_t psm, gint defer, in l2cap_listen() argument 280 printf("Listening on L2CAP PSM %u\n", psm); in l2cap_listen() 289 BT_IO_OPT_PSM, psm, in l2cap_listen() 297 BT_IO_OPT_PSM, psm, in l2cap_listen()
|
D | l2test.c | 90 static unsigned short psm = 0x1011; variable 293 else if (psm) in do_connect() 294 addr.l2_psm = htobs(psm); in do_connect() 362 else if (psm) in do_listen() 363 addr.l2_psm = htobs(psm); in do_listen() 450 psm = btohs(addr.l2_psm); in do_listen() 453 syslog(LOG_INFO, "Waiting for connection on psm %d ...", psm); in do_listen() 1185 psm = atoi(optarg); in main()
|
/external/qemu/hw/ |
D | bt-l2cap.c | 98 int psm; member 389 struct bt_l2cap_device_s *device, int psm) in l2cap_psm() argument 393 while (ret && ret->psm != psm) in l2cap_psm() 400 int psm, int source_cid) in l2cap_channel_open() argument 409 psm_info = l2cap_psm(l2cap->dev, psm); in l2cap_channel_open() 744 int psm, int source_cid) in l2cap_channel_open_req_msg() argument 746 struct l2cap_chan_s *ch = l2cap_channel_open(l2cap, psm, source_cid); in l2cap_channel_open_req_msg() 826 le16_to_cpu(((l2cap_conn_req *) params)->psm), in l2cap_command() 1344 void bt_l2cap_psm_register(struct bt_l2cap_device_s *dev, int psm, int min_mtu, in bt_l2cap_psm_register() argument 1348 struct bt_l2cap_psm_s *new_psm = l2cap_psm(dev, psm); in bt_l2cap_psm_register() [all …]
|
/external/bluetooth/bluez/audio/ |
D | control.c | 212 sdp_data_t *psm, *version, *features; in avrcp_ct_record() local 232 psm = sdp_data_alloc(SDP_UINT16, &lp); in avrcp_ct_record() 233 proto[0] = sdp_list_append(proto[0], psm); in avrcp_ct_record() 256 free(psm); in avrcp_ct_record() 276 sdp_data_t *psm, *version, *features; in avrcp_tg_record() local 299 psm = sdp_data_alloc(SDP_UINT16, &lp); in avrcp_tg_record() 300 proto[0] = sdp_list_append(proto[0], psm); in avrcp_tg_record() 323 free(psm); in avrcp_tg_record()
|
/external/bluetooth/bluez/btio/ |
D | btio.c | 55 uint16_t psm; member 256 static int l2cap_bind(int sock, const bdaddr_t *src, uint16_t psm, in l2cap_bind() argument 268 addr.l2_psm = htobs(psm); in l2cap_bind() 279 uint16_t psm, uint16_t cid) in l2cap_connect() argument 290 addr.l2_psm = htobs(psm); in l2cap_connect() 744 opts->psm = va_arg(args, int); in parse_set_opts() 1271 if (l2cap_bind(sock, &opts->src, server ? opts->psm : 0, in create_io() 1284 if (l2cap_bind(sock, &opts->src, server ? opts->psm : 0, in create_io() 1363 err = l2cap_connect(sock, &opts.dst, opts.psm, opts.cid); in bt_io_connect()
|