log_addrs 107 drivers/gpu/drm/drm_dp_cec.c la_mask |= adap->log_addrs.log_addr_mask | (1 << addr); log_addrs 55 drivers/media/cec/cec-adap.c for (i = 0; i < adap->log_addrs.num_log_addrs; i++) log_addrs 56 drivers/media/cec/cec-adap.c if (adap->log_addrs.log_addr[i] == log_addr) log_addrs 65 drivers/media/cec/cec-adap.c return adap->log_addrs.primary_device_type[i < 0 ? 0 : i]; log_addrs 321 drivers/media/cec/cec-adap.c ev.state_change.log_addr_mask = adap->log_addrs.log_addr_mask; log_addrs 797 drivers/media/cec/cec-adap.c if ((adap->log_addrs.flags & CEC_LOG_ADDRS_FL_CDC_ONLY) && log_addrs 1103 drivers/media/cec/cec-adap.c adap->log_addrs.cec_version < CEC_OP_CEC_VERSION_2_0 && log_addrs 1222 drivers/media/cec/cec-adap.c if (adap->log_addrs.log_addr_mask == 0) log_addrs 1245 drivers/media/cec/cec-adap.c struct cec_log_addrs *las = &adap->log_addrs; log_addrs 1322 drivers/media/cec/cec-adap.c adap->log_addrs.log_addr_mask = 0; log_addrs 1385 drivers/media/cec/cec-adap.c struct cec_log_addrs *las = &adap->log_addrs; log_addrs 1448 drivers/media/cec/cec-adap.c if (adap->log_addrs.log_addr_mask == 0 && log_addrs 1453 drivers/media/cec/cec-adap.c if (adap->log_addrs.log_addr_mask == 0) { log_addrs 1487 drivers/media/cec/cec-adap.c adap->log_addrs.cec_version >= CEC_OP_CEC_VERSION_2_0) { log_addrs 1501 drivers/media/cec/cec-adap.c if (adap->log_addrs.vendor_id != CEC_VENDOR_ID_NONE) { log_addrs 1503 drivers/media/cec/cec-adap.c adap->log_addrs.vendor_id); log_addrs 1601 drivers/media/cec/cec-adap.c if (adap->log_addrs.num_log_addrs) log_addrs 1653 drivers/media/cec/cec-adap.c struct cec_log_addrs *log_addrs, bool block) log_addrs 1661 drivers/media/cec/cec-adap.c if (!log_addrs || log_addrs->num_log_addrs == 0) { log_addrs 1663 drivers/media/cec/cec-adap.c adap->log_addrs.num_log_addrs = 0; log_addrs 1665 drivers/media/cec/cec-adap.c adap->log_addrs.log_addr[i] = CEC_LOG_ADDR_INVALID; log_addrs 1666 drivers/media/cec/cec-adap.c adap->log_addrs.osd_name[0] = '\0'; log_addrs 1667 drivers/media/cec/cec-adap.c adap->log_addrs.vendor_id = CEC_VENDOR_ID_NONE; log_addrs 1668 drivers/media/cec/cec-adap.c adap->log_addrs.cec_version = CEC_OP_CEC_VERSION_2_0; log_addrs 1672 drivers/media/cec/cec-adap.c if (log_addrs->flags & CEC_LOG_ADDRS_FL_CDC_ONLY) { log_addrs 1677 drivers/media/cec/cec-adap.c log_addrs->num_log_addrs = 1; log_addrs 1678 drivers/media/cec/cec-adap.c log_addrs->osd_name[0] = '\0'; log_addrs 1679 drivers/media/cec/cec-adap.c log_addrs->vendor_id = CEC_VENDOR_ID_NONE; log_addrs 1680 drivers/media/cec/cec-adap.c log_addrs->log_addr_type[0] = CEC_LOG_ADDR_TYPE_UNREGISTERED; log_addrs 1689 drivers/media/cec/cec-adap.c log_addrs->primary_device_type[0] = CEC_OP_PRIM_DEVTYPE_SWITCH; log_addrs 1690 drivers/media/cec/cec-adap.c log_addrs->all_device_types[0] = 0; log_addrs 1691 drivers/media/cec/cec-adap.c log_addrs->features[0][0] = 0; log_addrs 1692 drivers/media/cec/cec-adap.c log_addrs->features[0][1] = 0; log_addrs 1696 drivers/media/cec/cec-adap.c log_addrs->osd_name[sizeof(log_addrs->osd_name) - 1] = '\0'; log_addrs 1699 drivers/media/cec/cec-adap.c if (log_addrs->num_log_addrs > adap->available_log_addrs) { log_addrs 1708 drivers/media/cec/cec-adap.c if (log_addrs->vendor_id != CEC_VENDOR_ID_NONE && log_addrs 1709 drivers/media/cec/cec-adap.c (log_addrs->vendor_id & 0xff000000) != 0) { log_addrs 1714 drivers/media/cec/cec-adap.c if (log_addrs->cec_version != CEC_OP_CEC_VERSION_1_4 && log_addrs 1715 drivers/media/cec/cec-adap.c log_addrs->cec_version != CEC_OP_CEC_VERSION_2_0) { log_addrs 1720 drivers/media/cec/cec-adap.c if (log_addrs->num_log_addrs > 1) log_addrs 1721 drivers/media/cec/cec-adap.c for (i = 0; i < log_addrs->num_log_addrs; i++) log_addrs 1722 drivers/media/cec/cec-adap.c if (log_addrs->log_addr_type[i] == log_addrs 1728 drivers/media/cec/cec-adap.c for (i = 0; i < log_addrs->num_log_addrs; i++) { log_addrs 1729 drivers/media/cec/cec-adap.c const u8 feature_sz = ARRAY_SIZE(log_addrs->features[0]); log_addrs 1730 drivers/media/cec/cec-adap.c u8 *features = log_addrs->features[i]; log_addrs 1734 drivers/media/cec/cec-adap.c log_addrs->log_addr[i] = CEC_LOG_ADDR_INVALID; log_addrs 1735 drivers/media/cec/cec-adap.c if (type_mask & (1 << log_addrs->log_addr_type[i])) { log_addrs 1739 drivers/media/cec/cec-adap.c type_mask |= 1 << log_addrs->log_addr_type[i]; log_addrs 1746 drivers/media/cec/cec-adap.c if (log_addrs->primary_device_type[i] > log_addrs 1751 drivers/media/cec/cec-adap.c if (log_addrs->primary_device_type[i] == 2) { log_addrs 1755 drivers/media/cec/cec-adap.c if (log_addrs->log_addr_type[i] > CEC_LOG_ADDR_TYPE_UNREGISTERED) { log_addrs 1774 drivers/media/cec/cec-adap.c if (log_addrs->cec_version >= CEC_OP_CEC_VERSION_2_0) { log_addrs 1775 drivers/media/cec/cec-adap.c if (log_addrs->num_log_addrs > 2) { log_addrs 1779 drivers/media/cec/cec-adap.c if (log_addrs->num_log_addrs == 2) { log_addrs 1794 drivers/media/cec/cec-adap.c for (i = log_addrs->num_log_addrs; i < CEC_MAX_LOG_ADDRS; i++) { log_addrs 1795 drivers/media/cec/cec-adap.c log_addrs->primary_device_type[i] = 0; log_addrs 1796 drivers/media/cec/cec-adap.c log_addrs->log_addr_type[i] = 0; log_addrs 1797 drivers/media/cec/cec-adap.c log_addrs->all_device_types[i] = 0; log_addrs 1798 drivers/media/cec/cec-adap.c memset(log_addrs->features[i], 0, log_addrs 1799 drivers/media/cec/cec-adap.c sizeof(log_addrs->features[i])); log_addrs 1802 drivers/media/cec/cec-adap.c log_addrs->log_addr_mask = adap->log_addrs.log_addr_mask; log_addrs 1803 drivers/media/cec/cec-adap.c adap->log_addrs = *log_addrs; log_addrs 1810 drivers/media/cec/cec-adap.c struct cec_log_addrs *log_addrs, bool block) log_addrs 1815 drivers/media/cec/cec-adap.c err = __cec_s_log_addrs(adap, log_addrs, block); log_addrs 1828 drivers/media/cec/cec-adap.c const struct cec_log_addrs *las = &adap->log_addrs; log_addrs 1837 drivers/media/cec/cec-adap.c msg->msg[2] = adap->log_addrs.cec_version; log_addrs 1904 drivers/media/cec/cec-adap.c if (cec_is_cdc_only(&adap->log_addrs) && log_addrs 1984 drivers/media/cec/cec-adap.c !(adap->log_addrs.flags & CEC_LOG_ADDRS_FL_ALLOW_RC_PASSTHRU)) log_addrs 2022 drivers/media/cec/cec-adap.c !(adap->log_addrs.flags & CEC_LOG_ADDRS_FL_ALLOW_RC_PASSTHRU)) log_addrs 2034 drivers/media/cec/cec-adap.c cec_msg_cec_version(&tx_cec_msg, adap->log_addrs.cec_version); log_addrs 2045 drivers/media/cec/cec-adap.c if (adap->log_addrs.vendor_id == CEC_VENDOR_ID_NONE) log_addrs 2047 drivers/media/cec/cec-adap.c cec_msg_device_vendor_id(&tx_cec_msg, adap->log_addrs.vendor_id); log_addrs 2057 drivers/media/cec/cec-adap.c if (adap->log_addrs.osd_name[0] == 0) log_addrs 2059 drivers/media/cec/cec-adap.c cec_msg_set_osd_name(&tx_cec_msg, adap->log_addrs.osd_name); log_addrs 2064 drivers/media/cec/cec-adap.c if (adap->log_addrs.cec_version < CEC_OP_CEC_VERSION_2_0) log_addrs 2157 drivers/media/cec/cec-adap.c seq_printf(file, "number of LAs: %d\n", adap->log_addrs.num_log_addrs); log_addrs 2158 drivers/media/cec/cec-adap.c seq_printf(file, "LA mask: 0x%04x\n", adap->log_addrs.log_addr_mask); log_addrs 147 drivers/media/cec/cec-api.c struct cec_log_addrs log_addrs; log_addrs 150 drivers/media/cec/cec-api.c log_addrs = adap->log_addrs; log_addrs 152 drivers/media/cec/cec-api.c memset(log_addrs.log_addr, CEC_LOG_ADDR_INVALID, log_addrs 153 drivers/media/cec/cec-api.c sizeof(log_addrs.log_addr)); log_addrs 156 drivers/media/cec/cec-api.c if (copy_to_user(parg, &log_addrs, sizeof(log_addrs))) log_addrs 164 drivers/media/cec/cec-api.c struct cec_log_addrs log_addrs; log_addrs 169 drivers/media/cec/cec-api.c if (copy_from_user(&log_addrs, parg, sizeof(log_addrs))) log_addrs 171 drivers/media/cec/cec-api.c log_addrs.flags &= CEC_LOG_ADDRS_FL_ALLOW_UNREG_FALLBACK | log_addrs 176 drivers/media/cec/cec-api.c (!log_addrs.num_log_addrs || !adap->is_configured) && log_addrs 178 drivers/media/cec/cec-api.c err = __cec_s_log_addrs(adap, &log_addrs, block); log_addrs 180 drivers/media/cec/cec-api.c log_addrs = adap->log_addrs; log_addrs 185 drivers/media/cec/cec-api.c if (copy_to_user(parg, &log_addrs, sizeof(log_addrs))) log_addrs 202 drivers/media/cec/cec-api.c if (adap->log_addrs.num_log_addrs == 0) log_addrs 580 drivers/media/cec/cec-api.c ev.state_change.log_addr_mask = adap->log_addrs.log_addr_mask; log_addrs 281 drivers/media/cec/cec-core.c adap->log_addrs.cec_version = CEC_OP_CEC_VERSION_2_0; log_addrs 282 drivers/media/cec/cec-core.c adap->log_addrs.vendor_id = CEC_VENDOR_ID_NONE; log_addrs 42 drivers/media/cec/cec-priv.h struct cec_log_addrs *log_addrs, bool block); log_addrs 234 drivers/media/platform/vivid/vivid-cec.c dest = adap->log_addrs.log_addr[0]; log_addrs 330 drivers/media/usb/pulse8-cec/pulse8-cec.c struct cec_log_addrs *log_addrs, u16 *pa) log_addrs 374 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->primary_device_type[0] = data[0]; log_addrs 376 drivers/media/usb/pulse8-cec/pulse8-cec.c switch (log_addrs->primary_device_type[0]) { log_addrs 378 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_type[0] = CEC_LOG_ADDR_TYPE_TV; log_addrs 379 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->all_device_types[0] = CEC_OP_ALL_DEVTYPE_TV; log_addrs 382 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_type[0] = CEC_LOG_ADDR_TYPE_RECORD; log_addrs 383 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->all_device_types[0] = CEC_OP_ALL_DEVTYPE_RECORD; log_addrs 386 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_type[0] = CEC_LOG_ADDR_TYPE_TUNER; log_addrs 387 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->all_device_types[0] = CEC_OP_ALL_DEVTYPE_TUNER; log_addrs 390 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_type[0] = CEC_LOG_ADDR_TYPE_PLAYBACK; log_addrs 391 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->all_device_types[0] = CEC_OP_ALL_DEVTYPE_PLAYBACK; log_addrs 394 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_type[0] = CEC_LOG_ADDR_TYPE_PLAYBACK; log_addrs 395 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->all_device_types[0] = CEC_OP_ALL_DEVTYPE_AUDIOSYSTEM; log_addrs 398 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_type[0] = CEC_LOG_ADDR_TYPE_UNREGISTERED; log_addrs 399 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->all_device_types[0] = CEC_OP_ALL_DEVTYPE_SWITCH; log_addrs 402 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_type[0] = CEC_LOG_ADDR_TYPE_SPECIFIC; log_addrs 403 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->all_device_types[0] = CEC_OP_ALL_DEVTYPE_SWITCH; log_addrs 406 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_type[0] = CEC_LOG_ADDR_TYPE_UNREGISTERED; log_addrs 407 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->all_device_types[0] = CEC_OP_ALL_DEVTYPE_SWITCH; log_addrs 409 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->primary_device_type[0]); log_addrs 417 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_mask = (data[0] << 8) | data[1]; log_addrs 419 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->log_addr_mask); log_addrs 420 drivers/media/usb/pulse8-cec/pulse8-cec.c if (log_addrs->log_addr_mask) log_addrs 421 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->num_log_addrs = 1; log_addrs 435 drivers/media/usb/pulse8-cec/pulse8-cec.c log_addrs->cec_version = data[0]; log_addrs 436 drivers/media/usb/pulse8-cec/pulse8-cec.c dev_dbg(pulse8->dev, "CEC version: %d\n", log_addrs->cec_version); log_addrs 442 drivers/media/usb/pulse8-cec/pulse8-cec.c strscpy(log_addrs->osd_name, data, sizeof(log_addrs->osd_name)); log_addrs 443 drivers/media/usb/pulse8-cec/pulse8-cec.c dev_dbg(pulse8->dev, "OSD name: %s\n", log_addrs->osd_name); log_addrs 449 drivers/media/usb/pulse8-cec/pulse8-cec.c struct cec_log_addrs *log_addrs, log_addrs 454 drivers/media/usb/pulse8-cec/pulse8-cec.c err = cec_s_log_addrs(pulse8->adap, log_addrs, false); log_addrs 506 drivers/media/usb/pulse8-cec/pulse8-cec.c cmd[1] = adap->log_addrs.primary_device_type[0]; log_addrs 512 drivers/media/usb/pulse8-cec/pulse8-cec.c switch (adap->log_addrs.primary_device_type[0]) { log_addrs 562 drivers/media/usb/pulse8-cec/pulse8-cec.c cmd[1] = adap->log_addrs.cec_version; log_addrs 568 drivers/media/usb/pulse8-cec/pulse8-cec.c if (adap->log_addrs.osd_name[0]) { log_addrs 569 drivers/media/usb/pulse8-cec/pulse8-cec.c size_t osd_len = strlen(adap->log_addrs.osd_name); log_addrs 573 drivers/media/usb/pulse8-cec/pulse8-cec.c strscpy(cmd + 1, adap->log_addrs.osd_name, sizeof(cmd) - 1); log_addrs 578 drivers/media/usb/pulse8-cec/pulse8-cec.c strscpy(adap->log_addrs.osd_name, osd_str, log_addrs 579 drivers/media/usb/pulse8-cec/pulse8-cec.c sizeof(adap->log_addrs.osd_name)); log_addrs 653 drivers/media/usb/pulse8-cec/pulse8-cec.c struct cec_log_addrs log_addrs = {}; log_addrs 679 drivers/media/usb/pulse8-cec/pulse8-cec.c err = pulse8_setup(pulse8, serio, &log_addrs, &pa); log_addrs 690 drivers/media/usb/pulse8-cec/pulse8-cec.c err = pulse8_apply_persistent_config(pulse8, &log_addrs, pa); log_addrs 240 drivers/media/usb/rainshadow-cec/rainshadow-cec.c struct cec_log_addrs *log_addrs, u16 *pa) log_addrs 311 drivers/media/usb/rainshadow-cec/rainshadow-cec.c struct cec_log_addrs log_addrs = {}; log_addrs 336 drivers/media/usb/rainshadow-cec/rainshadow-cec.c err = rain_setup(rain, serio, &log_addrs, &pa); log_addrs 215 include/media/cec.h struct cec_log_addrs log_addrs; log_addrs 244 include/media/cec.h return adap->log_addrs.log_addr_mask & (1 << log_addr); log_addrs 277 include/media/cec.h int cec_s_log_addrs(struct cec_adapter *adap, struct cec_log_addrs *log_addrs,