/openbmc/linux/drivers/platform/chrome/ |
H A D | cros_typec_vdm.c | 26 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 81 amode = typec_match_altmode(typec->ports[port_num]->port_altmode, CROS_EC_ALTMODE_MAX, in cros_typec_handle_vdm_response() 83 if (!amode) { in cros_typec_handle_vdm_response() 89 ret = typec_altmode_vdm(amode, hdr, &resp.vdm_response[1], resp.vdm_data_objects); 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() [all …]
|
H A D | cros_ec_typec.c | 157 typec_unregister_altmode(node->amode); in cros_typec_unregister_altmodes() 271 struct typec_altmode *amode; in cros_typec_register_port_altmodes() local 277 amode = typec_port_register_altmode(port->port, &desc); in cros_typec_register_port_altmodes() 278 if (IS_ERR(amode)) in cros_typec_register_port_altmodes() 279 return PTR_ERR(amode); in cros_typec_register_port_altmodes() 280 port->port_altmode[CROS_EC_ALTMODE_DP] = amode; in cros_typec_register_port_altmodes() 281 typec_altmode_set_drvdata(amode, port); in cros_typec_register_port_altmodes() 282 amode->ops = &port_amode_ops; in cros_typec_register_port_altmodes() 292 amode = typec_port_register_altmode(port->port, &desc); in cros_typec_register_port_altmodes() 293 if (IS_ERR(amode)) in cros_typec_register_port_altmodes() [all …]
|
H A D | cros_ec_typec.h | 26 struct typec_altmode *amode; member
|
/openbmc/linux/drivers/usb/typec/ |
H A D | anx7411.c | 250 struct typec_altmode *amode[MAX_ALTMODE]; member 542 if (ctx->typec.amode[i]) { in anx7411_partner_unregister_altmode() 543 typec_unregister_altmode(ctx->typec.amode[i]); in anx7411_partner_unregister_altmode() 544 ctx->typec.amode[i] = NULL; in anx7411_partner_unregister_altmode() 562 if (!ctx->typec.amode[i]) in anx7411_typec_register_altmode() 572 ctx->typec.amode[i] = typec_partner_register_altmode(ctx->typec.partner, in anx7411_typec_register_altmode() 574 if (IS_ERR(ctx->typec.amode[i])) { in anx7411_typec_register_altmode() 576 err = PTR_ERR(ctx->typec.amode[i]); in anx7411_typec_register_altmode() 577 ctx->typec.amode[i] = NULL; in anx7411_typec_register_altmode() 602 if (!ctx->typec.amode[i]) in anx7411_update_altmode() [all …]
|
/openbmc/linux/drivers/rtc/ |
H A D | rtc-ds1286.c | 95 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/fs/sysfs/ |
H A D | sysfs.h | 31 const struct attribute *attr, umode_t amode, kuid_t uid,
|
/openbmc/linux/arch/um/os-Linux/ |
H A D | file.c | 73 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/crypto/chelsio/ |
H A D | chcr_algo.h | 145 #define FILL_SEC_CPL_SCMD0_SEQNO(ctrl, seq, cmode, amode, opad, size) \ argument 153 SCMD_AUTH_MODE_V((amode)) | \
|
/openbmc/linux/drivers/video/fbdev/ |
H A D | pxa168fb.h | 285 #define CFG_ALPHA_MODE(amode) ((amode) << 16) argument
|
/openbmc/u-boot/fs/yaffs2/ |
H A D | yaffsfs.h | 86 int yaffs_access(const YCHAR *path, int amode);
|
H A D | yaffsfs.c | 2230 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 D | mmp_ctrl.h | 510 #define CFG_ALPHA_MODE(amode) ((amode)<<16) argument
|
/openbmc/qemu/target/arm/tcg/ |
H A D | translate.c | 3377 * @amode: addressing mode (DA/IA/DB/IB), encoded as per P,U bits in ARM insn 3383 uint32_t mode, uint32_t amode, bool writeback) in gen_srs() argument 3447 switch (amode) { in gen_srs() 3470 switch (amode) { in gen_srs()
|