Home | History | Annotate | Download | only in linux

Lines Matching refs:las

1020 static inline int cec_is_2nd_tv(const struct cec_log_addrs *las)
1026 return las->num_log_addrs &&
1027 las->log_addr[0] >= CEC_LOG_ADDR_SPECIFIC &&
1028 las->primary_device_type[0] == CEC_OP_PRIM_DEVTYPE_TV;
1031 static inline int cec_is_processor(const struct cec_log_addrs *las)
1037 return las->num_log_addrs &&
1038 las->log_addr[0] >= CEC_LOG_ADDR_BACKUP_1 &&
1039 las->primary_device_type[0] == CEC_OP_PRIM_DEVTYPE_PROCESSOR;
1042 static inline int cec_is_switch(const struct cec_log_addrs *las)
1048 return las->num_log_addrs == 1 &&
1049 las->log_addr[0] == CEC_LOG_ADDR_UNREGISTERED &&
1050 las->primary_device_type[0] == CEC_OP_PRIM_DEVTYPE_SWITCH &&
1051 !(las->flags & CEC_LOG_ADDRS_FL_CDC_ONLY);
1054 static inline int cec_is_cdc_only(const struct cec_log_addrs *las)
1060 return las->num_log_addrs == 1 &&
1061 las->log_addr[0] == CEC_LOG_ADDR_UNREGISTERED &&
1062 las->primary_device_type[0] == CEC_OP_PRIM_DEVTYPE_SWITCH &&
1063 (las->flags & CEC_LOG_ADDRS_FL_CDC_ONLY);