Home
last modified time | relevance | path

Searched refs:amode (Results 1 – 13 of 13) sorted by relevance

/openbmc/linux/drivers/platform/chrome/
H A Dcros_typec_vdm.c26 struct typec_altmode *amode; in cros_typec_handle_vdm_attention() local
43 amode = typec_match_altmode(typec->ports[port_num]->port_altmode, in cros_typec_handle_vdm_attention()
45 if (!amode) { in cros_typec_handle_vdm_attention()
52 typec_altmode_attention(amode, resp.vdm_attention[1]); in cros_typec_handle_vdm_attention()
65 struct typec_altmode *amode; in cros_typec_handle_vdm_response() local
83 if (!amode) { in cros_typec_handle_vdm_response()
95 static int cros_typec_port_amode_enter(struct typec_altmode *amode, u32 *vdo) in cros_typec_port_amode_enter() argument
97 struct cros_typec_port *port = typec_altmode_get_drvdata(amode); in cros_typec_port_amode_enter()
105 hdr = VDO(amode->svid, 1, SVDM_VER_2_0, CMD_ENTER_MODE); in cros_typec_port_amode_enter()
106 hdr |= VDO_OPOS(amode->mode); in cros_typec_port_amode_enter()
[all …]
H A Dcros_ec_typec.c271 struct typec_altmode *amode; in cros_typec_register_port_altmodes() local
278 if (IS_ERR(amode)) in cros_typec_register_port_altmodes()
279 return PTR_ERR(amode); in cros_typec_register_port_altmodes()
282 amode->ops = &port_amode_ops; in cros_typec_register_port_altmodes()
293 if (IS_ERR(amode)) in cros_typec_register_port_altmodes()
294 return PTR_ERR(amode); in cros_typec_register_port_altmodes()
297 amode->ops = &port_amode_ops; in cros_typec_register_port_altmodes()
424 return node->amode->vdo; in cros_typec_get_cable_vdo()
731 if (IS_ERR(amode)) { in cros_typec_register_altmodes()
732 ret = PTR_ERR(amode); in cros_typec_register_altmodes()
[all …]
H A Dcros_ec_typec.h26 struct typec_altmode *amode; member
/openbmc/linux/drivers/usb/typec/
H A Danx7411.c250 struct typec_altmode *amode[MAX_ALTMODE]; member
540 if (ctx->typec.amode[i]) { in anx7411_partner_unregister_altmode()
541 typec_unregister_altmode(ctx->typec.amode[i]); in anx7411_partner_unregister_altmode()
542 ctx->typec.amode[i] = NULL; in anx7411_partner_unregister_altmode()
560 if (!ctx->typec.amode[i]) in anx7411_typec_register_altmode()
572 if (IS_ERR(ctx->typec.amode[i])) { in anx7411_typec_register_altmode()
574 err = PTR_ERR(ctx->typec.amode[i]); in anx7411_typec_register_altmode()
575 ctx->typec.amode[i] = NULL; in anx7411_typec_register_altmode()
600 if (!ctx->typec.amode[i]) in anx7411_update_altmode()
603 if (ctx->typec.amode[i]->svid == svid) { in anx7411_update_altmode()
[all …]
/openbmc/linux/fs/sysfs/
H A Dsysfs.h31 const struct attribute *attr, umode_t amode, kuid_t uid,
/openbmc/linux/drivers/rtc/
H A Drtc-ds1286.c95 unsigned char month, cmd, amode; in ds1286_proc() local
105 amode = ((ds1286_rtc_read(priv, RTC_MINUTES_ALARM) & 0x80) >> 5) | in ds1286_proc()
108 switch (amode) { in ds1286_proc()
/openbmc/linux/drivers/crypto/chelsio/
H A Dchcr_algo.h145 #define FILL_SEC_CPL_SCMD0_SEQNO(ctrl, seq, cmode, amode, opad, size) \ argument
153 SCMD_AUTH_MODE_V((amode)) | \
/openbmc/linux/arch/um/os-Linux/
H A Dfile.c73 int amode, err; in os_access() local
75 amode = (mode & OS_ACC_R_OK ? R_OK : 0) | in os_access()
80 err = access(file, amode); in os_access()
/openbmc/linux/drivers/video/fbdev/
H A Dpxa168fb.h285 #define CFG_ALPHA_MODE(amode) ((amode) << 16) argument
/openbmc/u-boot/fs/yaffs2/
H A Dyaffsfs.h86 int yaffs_access(const YCHAR *path, int amode);
H A Dyaffsfs.c2230 int yaffs_access(const YCHAR *path, int amode) in yaffs_access() argument
2248 if (amode & ~(R_OK | W_OK | X_OK)) { in yaffs_access()
2264 else if ((amode & W_OK) && obj->my_dev->read_only) in yaffs_access()
2269 if ((amode & R_OK) && !(obj->yst_mode & S_IREAD)) in yaffs_access()
2271 if ((amode & W_OK) && !(obj->yst_mode & S_IWRITE)) in yaffs_access()
2273 if ((amode & X_OK) && !(obj->yst_mode & S_IEXEC)) in yaffs_access()
/openbmc/linux/drivers/video/fbdev/mmp/hw/
H A Dmmp_ctrl.h510 #define CFG_ALPHA_MODE(amode) ((amode)<<16) argument
/openbmc/qemu/target/arm/tcg/
H A Dtranslate.c3383 uint32_t mode, uint32_t amode, bool writeback) in gen_srs() argument
3447 switch (amode) { in gen_srs()
3470 switch (amode) { in gen_srs()