Lines Matching refs:ptr
176 static zx_status_t ParseAudioWidgetType(AudioWidgetStatePtr& ptr, const CodecResponse& resp) {
195 ptr.reset(new (&ac) AudioWidgetState(caps));
345 static zx_status_t ParseFnGroupType(FunctionGroupStatePtr& ptr, const CodecResponse& resp) {
352 ptr.reset(new (&ac) AudioFunctionGroupState());
359 ptr.reset(new (&ac) ModemFunctionGroupState());
367 ptr.reset(new (&ac) VendorFunctionGroupState(type));
377 ptr->can_send_unsolicited_ = ((resp.data & 0x100) != 0);
503 zx_status_t IntelHDACodec::ReadFunctionGroupState(FunctionGroupStatePtr& ptr, uint16_t nid) {
506 RUN_COMMAND_LIST(ptr, nid, FETCH_FUNCTION_GROUP_TYPE,
509 if (ptr->can_send_unsolicited_) {
510 RUN_COMMAND_LIST(ptr->unsol_resp_ctrl_, nid, FETCH_UNSOLICITED_RESPONSE_STATE,
514 ptr->nid_ = nid;
516 switch (ptr->type_) {
518 auto& afg = *(static_cast<AudioFunctionGroupState*>(ptr.get()));
531 ZX_DEBUG_ASSERT((ptr->type_ >= FunctionGroupState::Type::VENDOR_START) &&
532 (ptr->type_ <= FunctionGroupState::Type::VENDOR_END));