/drivers/nubus/ |
D | nubus.c | 230 struct nubus_dirent ent; in nubus_get_board_dir() local 238 if (nubus_readdir(dir, &ent) == -1) in nubus_get_board_dir() 240 if (nubus_get_subdir(&ent, dir) == -1) in nubus_get_board_dir() 246 int nubus_get_subdir(const struct nubus_dirent *ent, in nubus_get_subdir() argument 249 dir->ptr = dir->base = nubus_dirptr(ent); in nubus_get_subdir() 251 dir->mask = ent->mask; in nubus_get_subdir() 256 int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) in nubus_readdir() argument 263 ent->base = nd->ptr; in nubus_readdir() 277 ent->type = resid >> 24; in nubus_readdir() 279 ent->data = resid & 0xffffff; in nubus_readdir() [all …]
|
D | proc.c | 71 struct nubus_dirent ent; in nubus_proc_subdir() local 74 while (nubus_readdir(dir, &ent) != -1) { in nubus_proc_subdir() 78 sprintf(name, "%x", ent.type); in nubus_proc_subdir() 92 struct nubus_dirent ent; in nubus_proc_populate() local 96 while (nubus_readdir(root, &ent) != -1) { in nubus_proc_populate() 101 sprintf(name, "%x", ent.type); in nubus_proc_populate() 106 if (nubus_get_subdir(&ent, &dir) == -1) { in nubus_proc_populate() 109 dev->board->slot, ent.type); in nubus_proc_populate()
|
/drivers/scsi/ |
D | esp_scsi.c | 346 static dma_addr_t esp_cur_dma_addr(struct esp_cmd_entry *ent, in esp_cur_dma_addr() argument 351 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_addr() 352 return ent->sense_dma + in esp_cur_dma_addr() 353 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_addr() 361 static unsigned int esp_cur_dma_len(struct esp_cmd_entry *ent, in esp_cur_dma_len() argument 366 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_len() 368 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_len() 373 static void esp_advance_dma(struct esp *esp, struct esp_cmd_entry *ent, in esp_advance_dma() argument 378 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_advance_dma() 379 ent->sense_ptr += len; in esp_advance_dma() [all …]
|
/drivers/infiniband/hw/mlx4/ |
D | cm.c | 131 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout() local 133 struct mlx4_ib_dev *dev = ent->dev; in id_map_ent_timeout() 136 int pv_id = (int) ent->pv_cm_id; in id_map_ent_timeout() 142 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout() 143 if (found_ent && found_ent == ent) in id_map_ent_timeout() 148 list_del(&ent->list); in id_map_ent_timeout() 150 kfree(ent); in id_map_ent_timeout() 157 struct id_map_entry *ent, *found_ent; in id_map_find_del() local 160 ent = (struct id_map_entry *)idr_find(&sriov->pv_id_table, pv_cm_id); in id_map_find_del() 161 if (!ent) in id_map_find_del() [all …]
|
/drivers/staging/iio/Documentation/ |
D | iio_utils.h | 110 const struct dirent *ent; in iioutils_get_type() local 133 while (ent = readdir(dp), ent != NULL) in iioutils_get_type() 138 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type() 139 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type() 141 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type() 209 const struct dirent *ent; in iioutils_get_param_float() local 227 while (ent = readdir(dp), ent != NULL) in iioutils_get_param_float() 228 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float() 229 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float() 231 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float() [all …]
|
/drivers/gpu/drm/nouveau/core/subdev/bios/ |
D | i2c.c | 71 u16 ent = dcb_i2c_entry(bios, idx, &ver, &len); in dcb_i2c_parse() local 72 if (ent) { in dcb_i2c_parse() 73 info->type = nv_ro08(bios, ent + 3); in dcb_i2c_parse() 83 info->drive = nv_ro08(bios, ent + 0); in dcb_i2c_parse() 84 info->sense = nv_ro08(bios, ent + 1); in dcb_i2c_parse() 87 info->drive = nv_ro08(bios, ent + 1); in dcb_i2c_parse() 91 info->drive = nv_ro08(bios, ent + 0) & 0x0f; in dcb_i2c_parse() 92 if (nv_ro08(bios, ent + 1) & 0x01) { in dcb_i2c_parse() 93 info->share = nv_ro08(bios, ent + 1) >> 1; in dcb_i2c_parse() 111 ent = 0x0048; in dcb_i2c_parse() [all …]
|
D | gpio.c | 62 dcb_gpio_entry(struct nouveau_bios *bios, int idx, int ent, u8 *ver, u8 *len) in dcb_gpio_entry() argument 72 if (gpio && ent < cnt) in dcb_gpio_entry() 73 return gpio + hdr + (ent * *len); in dcb_gpio_entry() 78 dcb_gpio_parse(struct nouveau_bios *bios, int idx, int ent, u8 *ver, u8 *len, in dcb_gpio_parse() argument 81 u16 data = dcb_gpio_entry(bios, idx, ent, ver, len); in dcb_gpio_parse()
|
/drivers/bcma/ |
D | scan.c | 144 u32 ent = readl(*eromptr); in bcma_erom_get_ent() local 146 return ent; in bcma_erom_get_ent() 156 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_get_ci() local 157 if (!(ent & SCAN_ER_VALID)) in bcma_erom_get_ci() 159 if ((ent & SCAN_ER_TAG) != SCAN_ER_TAG_CI) in bcma_erom_get_ci() 161 return ent; in bcma_erom_get_ci() 166 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_end() local 168 return (ent == (SCAN_ER_TAG_END | SCAN_ER_VALID)); in bcma_erom_is_end() 173 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_bridge() local 175 return (((ent & SCAN_ER_VALID)) && in bcma_erom_is_bridge() [all …]
|
/drivers/w1/ |
D | w1_family.c | 36 struct list_head *ent, *n; in w1_register_family() local 41 list_for_each_safe(ent, n, &w1_families) { in w1_register_family() 42 f = list_entry(ent, struct w1_family, family_entry); in w1_register_family() 64 struct list_head *ent, *n; in w1_unregister_family() local 68 list_for_each_safe(ent, n, &w1_families) { in w1_unregister_family() 69 f = list_entry(ent, struct w1_family, family_entry); in w1_unregister_family() 95 struct list_head *ent, *n; in w1_family_registered() local 99 list_for_each_safe(ent, n, &w1_families) { in w1_family_registered() 100 f = list_entry(ent, struct w1_family, family_entry); in w1_family_registered()
|
/drivers/media/ |
D | media-device.c | 93 struct media_entity *ent; in media_device_enum_entities() local 100 ent = find_entity(mdev, u_ent.id); in media_device_enum_entities() 102 if (ent == NULL) in media_device_enum_entities() 105 u_ent.id = ent->id; in media_device_enum_entities() 106 if (ent->name) { in media_device_enum_entities() 107 strncpy(u_ent.name, ent->name, sizeof(u_ent.name)); in media_device_enum_entities() 112 u_ent.type = ent->type; in media_device_enum_entities() 113 u_ent.revision = ent->revision; in media_device_enum_entities() 114 u_ent.flags = ent->flags; in media_device_enum_entities() 115 u_ent.group_id = ent->group_id; in media_device_enum_entities() [all …]
|
/drivers/crypto/ |
D | n2_core.c | 499 struct cwq_initial_entry *ent) in submit_and_wait_for_tail() argument 501 unsigned long hv_ret = spu_queue_submit(qp, ent); in submit_and_wait_for_tail() 515 struct cwq_initial_entry *ent; in n2_do_async_digest() local 551 ent = qp->q + qp->tail; in n2_do_async_digest() 553 ent->control = control_word_base(nbytes, auth_key_len, 0, in n2_do_async_digest() 558 ent->src_addr = __pa(walk.data); in n2_do_async_digest() 559 ent->auth_key_addr = auth_key; in n2_do_async_digest() 560 ent->auth_iv_addr = __pa(hash_loc); in n2_do_async_digest() 561 ent->final_auth_state_addr = 0UL; in n2_do_async_digest() 562 ent->enc_key_addr = 0UL; in n2_do_async_digest() [all …]
|
/drivers/iommu/ |
D | exynos-iommu.c | 315 unsigned long *ent; in default_fault_handler() local 323 ent = section_entry(__va(pgtable_base), fault_addr); in default_fault_handler() 324 pr_err("\tLv1 entry: 0x%lx\n", *ent); in default_fault_handler() 326 if (lv1ent_page(ent)) { in default_fault_handler() 327 ent = page_entry(ent, fault_addr); in default_fault_handler() 328 pr_err("\t Lv2 entry: 0x%lx\n", *ent); in default_fault_handler() 971 unsigned long *ent; in exynos_iommu_unmap() local 977 ent = section_entry(priv->pgtable, iova); in exynos_iommu_unmap() 979 if (lv1ent_section(ent)) { in exynos_iommu_unmap() 982 *ent = 0; in exynos_iommu_unmap() [all …]
|
/drivers/scsi/isci/ |
D | host.c | 257 static void sci_controller_task_completion(struct isci_host *ihost, u32 ent) in sci_controller_task_completion() argument 259 u32 index = SCU_GET_COMPLETION_INDEX(ent); in sci_controller_task_completion() 269 sci_io_request_tc_completion(ireq, ent); in sci_controller_task_completion() 272 static void sci_controller_sdma_completion(struct isci_host *ihost, u32 ent) in sci_controller_sdma_completion() argument 278 index = SCU_GET_COMPLETION_INDEX(ent); in sci_controller_sdma_completion() 280 switch (scu_get_command_request_type(ent)) { in sci_controller_sdma_completion() 285 __func__, ent, ireq); in sci_controller_sdma_completion() 295 __func__, ent, idev); in sci_controller_sdma_completion() 302 __func__, ent); in sci_controller_sdma_completion() 307 static void sci_controller_unsolicited_frame(struct isci_host *ihost, u32 ent) in sci_controller_unsolicited_frame() argument [all …]
|
/drivers/net/ppp/ |
D | bsd_comp.c | 572 int ent; in bsd_compress() local 596 #define OUTPUT(ent) \ in bsd_compress() argument 599 accm |= ((ent) << bitno); \ in bsd_compress() 615 ent = PPP_PROTOCOL(rptr); in bsd_compress() 616 if (ent < 0x21 || ent > 0xf9) in bsd_compress() 657 fcode = BSD_KEY (ent, c); in bsd_compress() 658 hval = BSD_HASH (ent, c, hshift); in bsd_compress() 669 ent = dictp->codem1 + 1; in bsd_compress() 691 ent = dictp->codem1 + 1; /* finally found (prefix,suffix) */ in bsd_compress() 695 OUTPUT(ent); /* output the prefix */ in bsd_compress() [all …]
|
/drivers/isdn/i4l/ |
D | isdn_bsdcomp.c | 461 int ent; in bsd_compress() local 469 #define OUTPUT(ent) \ in bsd_compress() argument 472 accm |= ((ent) << bitno); \ in bsd_compress() 488 ent = proto; in bsd_compress() 513 fcode = BSD_KEY(ent, c); in bsd_compress() 514 hval = BSD_HASH(ent, c, hshift); in bsd_compress() 522 ent = dictp->codem1 + 1; in bsd_compress() 538 ent = dictp->codem1 + 1; /* finally found (prefix,suffix) */ in bsd_compress() 542 OUTPUT(ent); /* output the prefix */ in bsd_compress() 574 unsigned short *len2 = lens_ptr(db, ent); in bsd_compress() [all …]
|
/drivers/net/ethernet/atheros/atl1e/ |
D | atl1e_param.c | 149 struct atl1e_opt_list *ent; in atl1e_validate_option() local 152 ent = &opt->arg.l.p[i]; in atl1e_validate_option() 153 if (*value == ent->i) { in atl1e_validate_option() 154 if (ent->str[0] != '\0') in atl1e_validate_option() 156 "%s\n", ent->str); in atl1e_validate_option()
|
/drivers/gpu/drm/ |
D | drm_debugfs.c | 91 struct dentry *ent; in drm_debugfs_create_files() local 107 ent = debugfs_create_file(files[i].name, S_IFREG | S_IRUGO, in drm_debugfs_create_files() 109 if (!ent) { in drm_debugfs_create_files() 118 tmp->dent = ent; in drm_debugfs_create_files()
|
D | drm_proc.c | 96 struct proc_dir_entry *ent; in drm_proc_create_files() local 115 ent = proc_create_data(files[i].name, S_IRUGO, root, in drm_proc_create_files() 117 if (!ent) { in drm_proc_create_files()
|
/drivers/char/hw_random/ |
D | geode-rng.c | 90 const struct pci_device_id *ent; in mod_init() local 95 ent = pci_match_id(pci_tbl, pdev); in mod_init() 96 if (ent) in mod_init()
|
D | amd-rng.c | 117 const struct pci_device_id *ent; in mod_init() local 121 ent = pci_match_id(pci_tbl, pdev); in mod_init() 122 if (ent) in mod_init()
|
/drivers/isdn/hardware/eicon/ |
D | divasmain.c | 152 const struct pci_device_id *ent); 691 static int divas_init_one(struct pci_dev *pdev, const struct pci_device_id *ent) in divas_init_one() argument 698 CardProperties[ent->driver_data].Name, in divas_init_one() 701 DRIVERLNAME, CardProperties[ent->driver_data].Name, in divas_init_one() 707 CardProperties[ent->driver_data].Name, in divas_init_one() 713 CardProperties[ent->driver_data]. in divas_init_one() 731 if (!(pdiva = diva_driver_add_card(pdev, ent->driver_data))) { in divas_init_one() 734 CardProperties[ent->driver_data].Name, in divas_init_one() 740 CardProperties[ent->driver_data]. in divas_init_one()
|
/drivers/ata/ |
D | libata-eh.c | 340 int ent = ata_lookup_timeout_table(cmd); in ata_internal_cmd_timeout() local 343 if (ent < 0) in ata_internal_cmd_timeout() 346 idx = ehc->cmd_timeout_idx[dev->devno][ent]; in ata_internal_cmd_timeout() 347 return ata_eh_cmd_timeout_table[ent].timeouts[idx]; in ata_internal_cmd_timeout() 365 int ent = ata_lookup_timeout_table(cmd); in ata_internal_cmd_timed_out() local 368 if (ent < 0) in ata_internal_cmd_timed_out() 371 idx = ehc->cmd_timeout_idx[dev->devno][ent]; in ata_internal_cmd_timed_out() 372 if (ata_eh_cmd_timeout_table[ent].timeouts[idx + 1] != ULONG_MAX) in ata_internal_cmd_timed_out() 373 ehc->cmd_timeout_idx[dev->devno][ent]++; in ata_internal_cmd_timed_out() 379 struct ata_ering_entry *ent; in ata_ering_record() local [all …]
|
/drivers/net/ethernet/intel/e1000e/ |
D | param.c | 211 struct e1000_opt_list *ent; in e1000_validate_option() local 214 ent = &opt->arg.l.p[i]; in e1000_validate_option() 215 if (*value == ent->i) { in e1000_validate_option() 216 if (ent->str[0] != '\0') in e1000_validate_option() 218 ent->str); in e1000_validate_option()
|
/drivers/net/ethernet/intel/ixgb/ |
D | ixgb_param.c | 229 const struct ixgb_opt_list *ent; in ixgb_validate_option() local 232 ent = &opt->arg.l.p[i]; in ixgb_validate_option() 233 if (*value == ent->i) { in ixgb_validate_option() 234 if (ent->str[0] != '\0') in ixgb_validate_option() 235 pr_info("%s\n", ent->str); in ixgb_validate_option()
|
/drivers/scsi/arm/ |
D | queue.c | 137 static struct scsi_cmnd *__queue_remove(Queue_t *queue, struct list_head *ent) in __queue_remove() argument 144 list_del(ent); in __queue_remove() 145 q = list_entry(ent, QE_t, list); in __queue_remove() 149 list_add(ent, &queue->free); in __queue_remove()
|