/drivers/net/pcs/ |
D | pcs-xpcs.c | 158 const struct xpcs_compat *compat; member 167 const struct xpcs_compat *compat = &id->compat[i]; in xpcs_find_compat() local 169 for (j = 0; j < compat->num_interfaces; j++) in xpcs_find_compat() 170 if (compat->interface[j] == interface) in xpcs_find_compat() 171 return compat; in xpcs_find_compat() 179 const struct xpcs_compat *compat; in xpcs_get_an_mode() local 181 compat = xpcs_find_compat(xpcs->id, interface); in xpcs_get_an_mode() 182 if (!compat) in xpcs_get_an_mode() 185 return compat->an_mode; in xpcs_get_an_mode() 189 static bool __xpcs_linkmode_supported(const struct xpcs_compat *compat, in __xpcs_linkmode_supported() argument [all …]
|
/drivers/vfio/platform/ |
D | vfio_platform_private.h | 52 const char *compat; member 76 char *compat; member 105 void vfio_platform_unregister_reset(const char *compat, 110 .compat = __compat, \ 115 #define module_vfio_reset_handler(compat, reset) \ argument 116 MODULE_ALIAS("vfio-reset:" compat); \ 119 vfio_platform_register_reset(compat, reset); \ 124 vfio_platform_unregister_reset(compat, reset); \
|
D | vfio_platform_common.c | 31 static vfio_platform_reset_fn_t vfio_platform_lookup_reset(const char *compat, in vfio_platform_lookup_reset() argument 39 if (!strcmp(iter->compat, compat) && in vfio_platform_lookup_reset() 117 vdev->of_reset = vfio_platform_lookup_reset(vdev->compat, in vfio_platform_get_reset() 120 request_module("vfio-reset:%s", vdev->compat); in vfio_platform_get_reset() 121 vdev->of_reset = vfio_platform_lookup_reset(vdev->compat, in vfio_platform_get_reset() 610 &vdev->compat); in vfio_platform_of_probe() 674 void vfio_platform_unregister_reset(const char *compat, in vfio_platform_unregister_reset() argument 681 if (!strcmp(iter->compat, compat) && (iter->of_reset == fn)) { in vfio_platform_unregister_reset()
|
/drivers/clk/at91/ |
D | Makefile | 18 obj-$(CONFIG_SOC_AT91RM9200) += at91rm9200.o dt-compat.o 19 obj-$(CONFIG_SOC_AT91SAM9) += at91sam9260.o at91sam9rl.o at91sam9x5.o dt-compat.o 20 obj-$(CONFIG_SOC_AT91SAM9) += at91sam9g45.o dt-compat.o 21 obj-$(CONFIG_SOC_AT91SAM9) += at91sam9n12.o at91sam9x5.o dt-compat.o 23 obj-$(CONFIG_SOC_SAMA5D3) += sama5d3.o dt-compat.o 24 obj-$(CONFIG_SOC_SAMA5D4) += sama5d4.o dt-compat.o 25 obj-$(CONFIG_SOC_SAMA5D2) += sama5d2.o dt-compat.o
|
/drivers/macintosh/ |
D | macio_sysfs.c | 12 const char *compat; in compatible_show() local 17 compat = of_get_property(of->dev.of_node, "compatible", &cplen); in compatible_show() 18 if (!compat) { in compatible_show() 24 length += sprintf (buf, "%s\n", compat); in compatible_show() 26 l = strlen (compat) + 1; in compatible_show() 27 compat += l; in compatible_show()
|
/drivers/hid/ |
D | uhid.c | 434 struct uhid_create_req_compat *compat; in uhid_event_from_user() local 436 compat = kzalloc(sizeof(*compat), GFP_KERNEL); in uhid_event_from_user() 437 if (!compat) in uhid_event_from_user() 442 if (copy_from_user(compat, buffer, in uhid_event_from_user() 443 min(len, sizeof(*compat)))) { in uhid_event_from_user() 444 kfree(compat); in uhid_event_from_user() 451 memcpy(event->u.create.name, compat->name, in uhid_event_from_user() 452 sizeof(compat->name)); in uhid_event_from_user() 453 memcpy(event->u.create.phys, compat->phys, in uhid_event_from_user() 454 sizeof(compat->phys)); in uhid_event_from_user() [all …]
|
/drivers/of/ |
D | module.c | 13 const char *compat; in of_modalias() local 37 of_property_for_each_string(np, "compatible", p, compat) { in of_modalias() 38 csize = strlen(compat) + 1; in of_modalias() 43 csize = snprintf(str, len, "C%s", compat); in of_modalias()
|
D | fdt.c | 777 unsigned long node, const char *compat) in of_fdt_is_compatible() argument 788 if (of_compat_cmp(cp, compat, strlen(compat)) == 0) in of_fdt_is_compatible() 803 int __init of_flat_dt_is_compatible(unsigned long node, const char *compat) in of_flat_dt_is_compatible() argument 805 return of_fdt_is_compatible(initial_boot_params, node, compat); in of_flat_dt_is_compatible() 811 static int __init of_flat_dt_match(unsigned long node, const char *const *compat) in of_flat_dt_match() argument 815 if (!compat) in of_flat_dt_match() 818 while (*compat) { in of_flat_dt_match() 819 tmp = of_fdt_is_compatible(initial_boot_params, node, *compat); in of_flat_dt_match() 822 compat++; in of_flat_dt_match() 861 const char *const *compat; in of_flat_dt_match_machine() local [all …]
|
D | base.c | 321 const char *compat, const char *type, const char *name) in __of_device_is_compatible() argument 328 if (compat && compat[0]) { in __of_device_is_compatible() 332 if (of_compat_cmp(cp, compat, strlen(compat)) == 0) { in __of_device_is_compatible() 362 const char *compat) in of_device_is_compatible() argument 368 res = __of_device_is_compatible(device, compat, NULL, NULL); in of_device_is_compatible() 379 const char *const *compat) in of_device_compatible_match() argument 383 if (!compat) in of_device_compatible_match() 386 while (*compat) { in of_device_compatible_match() 387 tmp = of_device_is_compatible(device, *compat); in of_device_compatible_match() 390 compat++; in of_device_compatible_match()
|
D | device.c | 249 const char *compat, *type; in of_device_uevent() local 266 of_property_for_each_string(dev->of_node, "compatible", p, compat) { in of_device_uevent() 267 add_uevent_var(env, "OF_COMPATIBLE_%d=%s", seen, compat); in of_device_uevent()
|
/drivers/crypto/intel/qat/qat_common/ |
D | adf_pfvf_pf_proto.c | 239 u8 compat; in adf_handle_vf2pf_msg() local 246 compat = ADF_PF2VF_VF_INCOMPATIBLE; in adf_handle_vf2pf_msg() 248 compat = ADF_PF2VF_VF_COMPATIBLE; in adf_handle_vf2pf_msg() 250 compat = ADF_PF2VF_VF_COMPAT_UNKNOWN; in adf_handle_vf2pf_msg() 257 FIELD_PREP(ADF_PF2VF_VERSION_RESP_RESULT_MASK, compat); in adf_handle_vf2pf_msg() 262 u8 compat; in adf_handle_vf2pf_msg() local 272 compat = ADF_PF2VF_VF_COMPATIBLE; in adf_handle_vf2pf_msg() 277 FIELD_PREP(ADF_PF2VF_VERSION_RESP_RESULT_MASK, compat); in adf_handle_vf2pf_msg()
|
D | adf_pfvf_vf_msg.c | 54 int compat; in adf_vf2pf_request_version() local 72 compat = FIELD_GET(ADF_PF2VF_VERSION_RESP_RESULT_MASK, resp.data); in adf_vf2pf_request_version() 75 switch (compat) { in adf_vf2pf_request_version()
|
D | adf_pfvf_pf_msg.c | 23 u8 *buffer, u8 compat) in adf_pf_capabilities_msg_provider() argument 41 u8 *buffer, u8 compat) in adf_pf_ring_to_svc_msg_provider() argument
|
/drivers/gpu/drm/omapdrm/dss/ |
D | base.c | 198 const char *compat; member 218 const char *compat; in omapdss_walk_device() local 221 ret = of_property_read_string(node, "compatible", &compat); in omapdss_walk_device() 229 comp->compat = compat; in omapdss_walk_device() 277 if (!strstarts(comp->compat, "omapdss,")) in omapdss_component_is_loaded()
|
/drivers/pps/ |
D | pps.c | 258 struct pps_fdata_compat compat; in pps_cdev_compat_ioctl() local 264 err = copy_from_user(&compat, uarg, sizeof(struct pps_fdata_compat)); in pps_cdev_compat_ioctl() 268 memcpy(&fdata.timeout, &compat.timeout, in pps_cdev_compat_ioctl() 278 compat.info.assert_sequence = pps->assert_sequence; in pps_cdev_compat_ioctl() 279 compat.info.clear_sequence = pps->clear_sequence; in pps_cdev_compat_ioctl() 280 compat.info.current_mode = pps->current_mode; in pps_cdev_compat_ioctl() 282 memcpy(&compat.info.assert_tu, &pps->assert_tu, in pps_cdev_compat_ioctl() 284 memcpy(&compat.info.clear_tu, &pps->clear_tu, in pps_cdev_compat_ioctl() 289 return copy_to_user(uarg, &compat, in pps_cdev_compat_ioctl()
|
/drivers/clk/ |
D | clk-qoriq.c | 78 const char *compat, *guts_compat; member 556 .compat = "fsl,b4420-clockgen", 574 .compat = "fsl,b4860-clockgen", 592 .compat = "fsl,ls1021a-clockgen", 603 .compat = "fsl,ls1028a-clockgen", 619 .compat = "fsl,ls1043a-clockgen", 635 .compat = "fsl,ls1046a-clockgen", 651 .compat = "fsl,ls1088a-clockgen", 666 .compat = "fsl,ls1012a-clockgen", 676 .compat = "fsl,ls2080a-clockgen", [all …]
|
/drivers/staging/wlan-ng/ |
D | prism2fw.c | 80 struct hfa384x_caplevel compat; member 1145 s3info[i].info.compat.role, in validate_identity() 1146 s3info[i].info.compat.id, in validate_identity() 1147 s3info[i].info.compat.variant, in validate_identity() 1148 s3info[i].info.compat.bottom, in validate_identity() 1149 s3info[i].info.compat.top); in validate_identity() 1152 if ((s3info[i].info.compat.role == 1) && in validate_identity() 1153 (s3info[i].info.compat.id == 2)) { in validate_identity() 1154 if (s3info[i].info.compat.variant != in validate_identity() 1161 if ((s3info[i].info.compat.role == 1) && in validate_identity() [all …]
|
/drivers/md/bcache/ |
D | features.c | 14 int compat; member 30 for (f = &feature_list[0]; f->compat != 0; f++) { \ 31 if (f->compat != BCH_FEATURE_ ## type) \
|
/drivers/input/ |
D | evdev.c | 636 unsigned int maxlen, void __user *p, int compat) in bits_to_user() argument 640 if (compat) { in bits_to_user() 664 unsigned int maxlen, const void __user *p, int compat) in bits_from_user() argument 668 if (compat) { in bits_from_user() 703 unsigned int maxlen, void __user *p, int compat) in bits_to_user() argument 705 int len = compat ? in bits_to_user() 716 unsigned int maxlen, const void __user *p, int compat) in bits_from_user() argument 718 size_t chunk_size = compat ? sizeof(compat_long_t) : sizeof(long); in bits_from_user() 724 len = compat ? BITS_TO_LONGS_COMPAT(maxbit) : BITS_TO_LONGS(maxbit); in bits_from_user() 737 unsigned int maxlen, void __user *p, int compat) in bits_to_user() argument [all …]
|
/drivers/soundwire/ |
D | slave.c | 231 const char *compat = NULL; in sdw_of_find_slaves() local 235 compat = of_get_property(node, "compatible", NULL); in sdw_of_find_slaves() 236 if (!compat) in sdw_of_find_slaves() 239 ret = sscanf(compat, "sdw%01x%04hx%04hx%02hhx", &sdw_version, in sdw_of_find_slaves() 244 compat); in sdw_of_find_slaves()
|
/drivers/net/ethernet/hisilicon/hns3/hns3_common/ |
D | hclge_comm_cmd.c | 81 u32 compat = 0; in hclge_comm_firmware_compat_config() local 88 hnae3_set_bit(compat, HCLGE_COMM_LINK_EVENT_REPORT_EN_B, 1); in hclge_comm_firmware_compat_config() 89 hnae3_set_bit(compat, HCLGE_COMM_NCSI_ERROR_REPORT_EN_B, 1); in hclge_comm_firmware_compat_config() 91 hnae3_set_bit(compat, HCLGE_COMM_PHY_IMP_EN_B, 1); in hclge_comm_firmware_compat_config() 92 hnae3_set_bit(compat, HCLGE_COMM_MAC_STATS_EXT_EN_B, 1); in hclge_comm_firmware_compat_config() 93 hnae3_set_bit(compat, HCLGE_COMM_SYNC_RX_RING_HEAD_EN_B, 1); in hclge_comm_firmware_compat_config() 94 hnae3_set_bit(compat, HCLGE_COMM_LLRS_FEC_EN_B, 1); in hclge_comm_firmware_compat_config() 96 req->compat = cpu_to_le32(compat); in hclge_comm_firmware_compat_config()
|
/drivers/gpu/drm/meson/ |
D | meson_drv.c | 212 priv->compat = match->compat; in meson_drv_bind_master() 524 .compat = VPU_COMPATIBLE_GXBB, 528 .compat = VPU_COMPATIBLE_GXL, 532 .compat = VPU_COMPATIBLE_GXM, 537 .compat = VPU_COMPATIBLE_G12A,
|
D | meson_drv.h | 35 enum vpu_compatible compat; member 45 enum vpu_compatible compat; member 182 return priv->compat == family; in meson_vpu_is_compatible()
|
/drivers/slimbus/ |
D | core.c | 207 const char *compat = NULL; in of_register_slim_devices() local 211 compat = of_get_property(node, "compatible", NULL); in of_register_slim_devices() 212 if (!compat) in of_register_slim_devices() 215 ret = sscanf(compat, "slim%x,%x", &manf_id, &prod_code); in of_register_slim_devices() 218 compat); in of_register_slim_devices()
|
/drivers/virtio/ |
D | virtio.c | 370 char compat[] = "virtio,deviceXXXXXXXX"; in virtio_device_of_init() local 388 ret = snprintf(compat, sizeof(compat), "virtio,device%x", dev->id.device); in virtio_device_of_init() 389 BUG_ON(ret >= sizeof(compat)); in virtio_device_of_init() 396 if (!of_device_is_compatible(np, compat)) { in virtio_device_of_init()
|