Home
last modified time | relevance | path

Searched refs:card (Results 1 – 25 of 412) sorted by relevance

12345678910>>...17

/external/rust/crates/grpcio-sys/grpc/third_party/upb/upb/
Ddecode_fast.h54 #define F(card, type, valbytes, tagbytes) \ argument
55 const char *upb_p##card##type##valbytes##_##tagbytes##bt(UPB_PARSE_PARAMS);
57 #define TYPES(card, tagbytes) \ argument
58 F(card, b, 1, tagbytes) \
59 F(card, v, 4, tagbytes) \
60 F(card, v, 8, tagbytes) \
61 F(card, z, 4, tagbytes) \
62 F(card, z, 8, tagbytes) \
63 F(card, f, 4, tagbytes) \
64 F(card, f, 8, tagbytes)
[all …]
Ddecode_fast.c256 upb_card card) { in fastdecode_getfield() argument
257 switch (card) { in fastdecode_getfield()
344 int valbytes, upb_card card, in fastdecode_unpackedvarint() argument
352 if (card == CARD_r && fastdecode_flippacked(&data, tagbytes)) { in fastdecode_unpackedvarint()
359 fastdecode_getfield(d, ptr, msg, &data, &hasbits, &farr, valbytes, card); in fastdecode_unpackedvarint()
360 if (card == CARD_r) { in fastdecode_unpackedvarint()
367 if (card == CARD_r) { in fastdecode_unpackedvarint()
377 if (card == CARD_r) { in fastdecode_unpackedvarint()
453 int valbytes, upb_card card, bool zigzag, in fastdecode_varint() argument
456 if (card == CARD_p) { in fastdecode_varint()
[all …]
/external/python/cpython2/Demo/tkinter/guido/
Dsolitaire.py293 def add(self, card): argument
294 self.cards.append(card)
295 card.tkraise()
296 self.position(card)
297 self.group.addtag_withtag(card.group)
299 def delete(self, card): argument
300 self.cards.remove(card)
301 card.group.dtag(self.group)
310 card = self.cards[-1]
311 self.delete(card)
[all …]
/external/adhd/cras/src/server/
Dcras_system_state.c31 struct cras_alsa_card *card; member
91 struct name_list *card; in init_ignore_suffix_cards() local
101 card = (struct name_list *)calloc(1, sizeof(*card)); in init_ignore_suffix_cards()
102 if (!card) { in init_ignore_suffix_cards()
106 strncpy(card->name, ptr, NAME_MAX - 1); in init_ignore_suffix_cards()
107 DL_APPEND(state.ignore_suffix_cards, card); in init_ignore_suffix_cards()
114 struct name_list *card; in deinit_ignore_suffix_cards() local
115 DL_FOREACH (state.ignore_suffix_cards, card) { in deinit_ignore_suffix_cards()
116 DL_DELETE(state.ignore_suffix_cards, card); in deinit_ignore_suffix_cards()
117 free(card); in deinit_ignore_suffix_cards()
[all …]
/external/arm-trusted-firmware/drivers/brcm/emmc/
Demmc_csl_sdcmd.c150 int sd_cmd9(struct sd_handle *handle, struct sd_card_data *card) in sd_cmd9() argument
168 if (handle->card->type == SD_CARD_MMC) { in sd_cmd9()
169 card->csd.mmc.structure = (resp.data.r2.rsp4 >> 22) & 0x3; in sd_cmd9()
170 card->csd.mmc.csdSpecVer = (resp.data.r2.rsp4 >> 18) & 0x0f; in sd_cmd9()
171 card->csd.mmc.taac = (resp.data.r2.rsp4 >> 8) & 0xff; in sd_cmd9()
172 card->csd.mmc.nsac = resp.data.r2.rsp4 & 0xff; in sd_cmd9()
173 card->csd.mmc.speed = resp.data.r2.rsp3 >> 24; in sd_cmd9()
174 card->csd.mmc.classes = (resp.data.r2.rsp3 >> 12) & 0xfff; in sd_cmd9()
175 card->csd.mmc.rdBlkLen = (resp.data.r2.rsp3 >> 8) & 0xf; in sd_cmd9()
176 card->csd.mmc.rdBlkPartial = (resp.data.r2.rsp3 >> 7) & 0x01; in sd_cmd9()
[all …]
/external/libkmsxx/kms++/src/
Dframebuffer.cpp14 Framebuffer::Framebuffer(Card& card, uint32_t width, uint32_t height) in Framebuffer() argument
15 : DrmObject(card, DRM_MODE_OBJECT_FB), m_width(width), m_height(height) in Framebuffer()
17 card.m_framebuffers.push_back(this); in Framebuffer()
20 Framebuffer::Framebuffer(Card& card, uint32_t id) in Framebuffer() argument
21 : DrmObject(card, id, DRM_MODE_OBJECT_FB) in Framebuffer()
23 auto fb = drmModeGetFB(card.fd(), id); in Framebuffer()
34 card.m_framebuffers.push_back(this); in Framebuffer()
44 drmModeDirtyFB(card().fd(), id(), &clip, 1); in flush()
49 auto& fbs = card().m_framebuffers; in ~Framebuffer()
51 card().m_framebuffers.erase(iter); in ~Framebuffer()
Ddrmpropobject.cpp14 DrmPropObject::DrmPropObject(Card& card, uint32_t object_type) in DrmPropObject() argument
15 : DrmObject(card, object_type) in DrmPropObject()
19 DrmPropObject::DrmPropObject(Card& card, uint32_t id, uint32_t object_type, uint32_t idx) in DrmPropObject() argument
20 : DrmObject(card, id, object_type, idx) in DrmPropObject()
31 auto props = drmModeObjectGetProperties(card().fd(), this->id(), this->object_type()); in refresh_props()
49 auto prop = card().get_prop(pair.first); in get_prop()
66 auto prop = card().get_prop(pair.first); in get_prop_value()
78 return unique_ptr<Blob>(new Blob(card(), blob_id)); in get_prop_value_as_blob()
83 return drmModeObjectSetProperty(card().fd(), this->id(), this->object_type(), prop->id(), value); in set_prop_value()
88 return drmModeObjectSetProperty(card().fd(), this->id(), this->object_type(), id, value); in set_prop_value()
Dcrtc.cpp18 Crtc::Crtc(Card& card, uint32_t id, uint32_t idx) in Crtc() argument
19 : DrmPropObject(card, id, DRM_MODE_OBJECT_CRTC, idx) in Crtc()
22 m_priv->drm_crtc = drmModeGetCrtc(this->card().fd(), this->id()); in Crtc()
36 m_priv->drm_crtc = drmModeGetCrtc(this->card().fd(), this->id()); in refresh()
42 for (Plane* plane : card().get_planes()) { in setup()
54 drmModeSetCrtc(card().fd(), id(), c->buffer_id, in restore_mode()
61 AtomicReq req(card()); in set_mode()
63 unique_ptr<Blob> blob = mode.to_blob(card()); in set_mode()
86 return drmModeSetCrtc(card().fd(), id(), fb.id(), in set_mode()
93 return drmModeSetCrtc(card().fd(), id(), 0, 0, 0, 0, 0, 0); in disable_mode()
[all …]
Dblob.cpp10 Blob::Blob(Card& card, uint32_t blob_id) in Blob() argument
11 : DrmObject(card, blob_id, DRM_MODE_OBJECT_BLOB), m_created(false) in Blob()
16 Blob::Blob(Card& card, void* data, size_t len) in Blob() argument
17 : DrmObject(card, DRM_MODE_OBJECT_BLOB), m_created(true) in Blob()
21 int r = drmModeCreatePropertyBlob(card.fd(), data, len, &id); in Blob()
31 drmModeDestroyPropertyBlob(card().fd(), id()); in ~Blob()
36 drmModePropertyBlobPtr blob = drmModeGetPropertyBlob(card().fd(), id()); in data()
Ddumbframebuffer.cpp22 DumbFramebuffer::DumbFramebuffer(Card& card, uint32_t width, uint32_t height, const string& fourcc) in DumbFramebuffer() argument
23 : DumbFramebuffer(card, width, height, FourCCToPixelFormat(fourcc)) in DumbFramebuffer()
27 DumbFramebuffer::DumbFramebuffer(Card& card, uint32_t width, uint32_t height, PixelFormat format) in DumbFramebuffer() argument
28 : Framebuffer(card, width, height), m_format(format) in DumbFramebuffer()
53 r = drmIoctl(card.fd(), DRM_IOCTL_MODE_CREATE_DUMB, &creq); in DumbFramebuffer()
85 r = drmModeAddFB2(card.fd(), width, height, (uint32_t)format, in DumbFramebuffer()
96 drmModeRmFB(card().fd(), id()); in ~DumbFramebuffer()
108 drmIoctl(card().fd(), DRM_IOCTL_MODE_DESTROY_DUMB, &dreq); in ~DumbFramebuffer()
124 int r = drmIoctl(card().fd(), DRM_IOCTL_MODE_MAP_DUMB, &mreq); in map()
130 card().fd(), mreq.offset); in map()
[all …]
/external/libkmsxx/py/tests/
Dctm_test.py7 def ctm_to_blob(ctm, card): argument
23 return pykms.Blob(card, arr);
35 card = pykms.Card() variable
36 res = pykms.ResourceManager(card)
44 modeb = mode.to_blob(card)
46 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
52 plane = card.planes[args.plane]
54 card.disable_planes()
63 ctmb = ctm_to_blob(ctm, card)
65 req = pykms.AtomicReq(card)
[all …]
Dplane_hog.py6 card = pykms.Card() variable
7 res = pykms.ResourceManager(card)
12 for conn in card.connectors:
22 modeb1 = mode1.to_blob(card)
28 modeb2 = mode2.to_blob(card)
34 fb = pykms.DumbFramebuffer(card, fbwidth, fbheight, "AR24");
38 card.disable_planes()
52 req = pykms.AtomicReq(card)
69 req = pykms.AtomicReq(card)
91 req = pykms.AtomicReq(card)
[all …]
Dtest.py14 card = pykms.OmapCard() variable
16 card = pykms.Card() variable
18 res = pykms.ResourceManager(card)
23 modeb = mode.to_blob(card)
26 origfb = pykms.OmapFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
28 origfb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "XR24");
31 fb = pykms.DmabufFramebuffer(card, origfb.width, origfb.height, origfb.format,
38 card.disable_planes()
40 req = pykms.AtomicReq(card)
Dplane_move.py14 card = pykms.Card() variable
16 if not card.has_atomic:
20 res = pykms.ResourceManager(card)
50 fb_tmp = pykms.DumbFramebuffer(card, src_w, src_h, 'XR24');
56 card.disable_planes()
70 req = pykms.AtomicReq(card)
71 modeb = mode_list[i].to_blob(card)
90 req = pykms.AtomicReq(card)
95 req = pykms.AtomicReq(card)
112 req = pykms.AtomicReq(card)
[all …]
Dglobal_alpha_test.py13 card = pykms.Card() variable
14 res = pykms.ResourceManager(card)
21 modeb = mode.to_blob(card)
29 fb1 = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, format);
32 fb2 = pykms.DumbFramebuffer(card, mode.hdisplay >> 1, mode.vdisplay >> 1, format);
37 card.disable_planes()
39 req = pykms.AtomicReq(card)
53 req = pykms.AtomicReq(card)
61 card.disable_planes()
Dmodeset_event.py8 for ev in card.read_events():
23 card = pykms.Card() variable
25 sel.register(card.fd, selectors.EVENT_READ, readdrm)
27 res = pykms.ResourceManager(card)
33 modeb = mode.to_blob(card)
41 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, format);
45 card.disable_planes()
49 req = pykms.AtomicReq(card)
Dscale.py8 def plane_commit(card, crtc, plane, fb, x, y, w, h) : argument
9 req = pykms.AtomicReq(card)
23 card = pykms.Card() variable
24 res = pykms.ResourceManager(card)
32 plane = card.planes[int(args.plane)]
35 modeb = mode.to_blob(card)
36 req = pykms.AtomicReq(card)
46 fb = pykms.DumbFramebuffer(card, fbX, fbY, format);
70 plane_commit(card, crtc, plane, fb, X, Y, W, H)
Dplane_csc.py5 card = pykms.Card() variable
6 res = pykms.ResourceManager(card)
10 modeb = mode.to_blob(card)
15 fb = pykms.DumbFramebuffer(card, mode.hdisplay, mode.vdisplay, "UYVY");
18 req = pykms.AtomicReq(card)
28 req = pykms.AtomicReq(card)
46 req = pykms.AtomicReq(card)
/external/libkmsxx/kmscube/
Dcube-gbm.cpp28 GbmDevice(Card& card) in GbmDevice() argument
30 m_dev = gbm_create_device(card.fd()); in GbmDevice()
91 GbmEglSurface(Card& card, GbmDevice& gdev, const EglState& egl, int width, int height) in GbmEglSurface() argument
92 : card(card), egl(egl), m_width(width), m_height(height), in GbmEglSurface()
125 static Framebuffer* drm_fb_get_from_bo(struct gbm_bo* bo, Card& card) in drm_fb_get_from_bo() argument
141 fb = new ExtFramebuffer(card, width, height, format, handles, strides, offsets); in drm_fb_get_from_bo()
153 return drm_fb_get_from_bo(bo_next, card); in lock_next()
168 Card& card; member in GbmEglSurface
184 …OutputHandler(Card& card, GbmDevice& gdev, const EglState& egl, Connector* connector, Crtc* crtc, … in OutputHandler() argument
188 …m_surface1 = unique_ptr<GbmEglSurface>(new GbmEglSurface(card, gdev, egl, mode.hdisplay, mode.vdis… in OutputHandler()
[all …]
/external/ltp/testcases/kernel/security/mmc_security/
DREADME11 the card or assigning a new password to an unlocked card.
12 - change_password.sh: used to change the password from a unlocked card.
13 - forced_erase.sh: used to force-erase a card, usually when the user has forgot
14 the password and wants to unlock the card. NOTE: all the card's contents are
16 - remove_password.sh: used to remove the passwor from a card previously unlocked.
34 1) Unlocking a card:
38 2) Assigning a password to an unlocked card:
42 3) Changing the password (card must be unlocked first):
46 4) Removing the password (card must be unlocked first):
50 5) Force erase card (card must be LOCKED):
/external/libkmsxx/utils/
Dkmstest.cpp110 static void parse_crtc(ResourceManager& resman, Card& card, const string& crtc_str, OutputInfo& out… in parse_crtc() argument
133 Crtc* c = card.get_crtc(num); in parse_crtc()
139 auto crtcs = card.get_crtcs(); in parse_crtc()
182 Crtc* c = card.get_crtc(num); in parse_crtc()
188 auto crtcs = card.get_crtcs(); in parse_crtc()
243 static void parse_plane(ResourceManager& resman, Card& card, const string& plane_str, const OutputI… in parse_plane() argument
259 Plane* p = card.get_plane(num); in parse_plane()
265 auto planes = card.get_planes(); in parse_plane()
307 static void get_props(Card& card, vector<PropInfo>& props, const DrmPropObject* propobj) in get_props() argument
313 static vector<Framebuffer*> get_default_fb(Card& card, unsigned width, unsigned height) in get_default_fb() argument
[all …]
Dkmsprint.cpp102 if (p.card().has_atomic()) { in format_plane()
151 Blob blob(prop->card(), blob_id); in format_property()
215 const Property* p = o->card().get_prop(pp.first); in format_props()
351 static void print_as_list(Card& card) in print_as_list() argument
356 for (Connector* conn : card.get_connectors()) { in print_as_list()
360 for (Encoder* enc : card.get_encoders()) { in print_as_list()
364 for (Crtc* crtc : card.get_crtcs()) { in print_as_list()
366 if (crtc->buffer_id() && !card.has_universal_planes()) { in print_as_list()
367 Framebuffer* fb = new Framebuffer(card, crtc->buffer_id()); in print_as_list()
372 for (Plane* plane : card.get_planes()) { in print_as_list()
[all …]
/external/adhd/sound_card_init/amp/src/max98390d/
Dmod.rs33 card: Card, field
49 &self.card.name(), in boot_time_calibration()
99 card: Card::new(card_name)?, in new()
107 self.card in set_volume()
117 self.card in apply_calibration_value()
120 self.card in apply_calibration_value()
137 let card = &mut self.card; in do_calibration() localVariable
142 card.control_by_name::<SwitchControl>(&control.calib_ctrl)? in do_calibration()
144 let rdc = card in do_calibration()
147 let temp = card in do_calibration()
[all …]
/external/adhd/sound_card_init/amp/src/max98373d/
Dmod.rs25 card: Card, field
42 &self.card.name(), in boot_time_calibration()
106 card: Card::new(card_name)?, in new()
144 &mut self.card, in set_volume()
151 self.card in set_volume()
161 &mut self.card, in apply_calibration_value()
169 self.card in apply_calibration_value()
189 .card in get_ambient_temp()
217 &mut self.card, in set_spt_mode()
222 self.card in set_spt_mode()
[all …]
/external/adhd/scripts/
Daudio_diagnostics11 for card in ${@}
13 echo "=== amixer -c ${card} scontents ==="
14 amixer -c "${card}" scontents
15 echo "=== amixer -c ${card} contents ==="
16 amixer -c "${card}" contents
53 aplay -l | grep -E ^card | sed 's/card \([0-9]\+\).*/\1/' | sort -u)
57 arecord -l | grep -E ^card | sed 's/card \([0-9]\+\).*/\1/' | sort -u)

12345678910>>...17