Home
last modified time | relevance | path

Searched refs:ent (Results 1 – 25 of 382) sorted by relevance

12345678910>>...16

/drivers/nubus/
Dnubus.c230 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 …]
Dproc.c71 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/qla2xxx/
Dqla_tmpl.c218 qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf) in qla27xx_skip_entry() argument
221 ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY; in qla27xx_skip_entry()
226 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t0() argument
230 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t0()
237 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t255() argument
241 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t255()
249 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t256() argument
255 qla27xx_read_window(reg, ent->t256.base_addr, ent->t256.pci_offset, in qla27xx_fwdt_entry_t256()
256 ent->t256.reg_count, ent->t256.reg_width, buf, len); in qla27xx_fwdt_entry_t256()
263 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t257() argument
[all …]
/drivers/infiniband/hw/mlx5/
Dmr.c61 if (order < cache->ent[0].order) in order2idx()
64 return order - cache->ent[0].order; in order2idx()
73 struct mlx5_cache_ent *ent = &cache->ent[c]; in reg_mr_callback() local
79 spin_lock_irqsave(&ent->lock, flags); in reg_mr_callback()
80 ent->pending--; in reg_mr_callback()
81 spin_unlock_irqrestore(&ent->lock, flags); in reg_mr_callback()
107 spin_lock_irqsave(&ent->lock, flags); in reg_mr_callback()
108 list_add_tail(&mr->list, &ent->head); in reg_mr_callback()
109 ent->cur++; in reg_mr_callback()
110 ent->size++; in reg_mr_callback()
[all …]
/drivers/net/ethernet/mellanox/mlx5/core/
Dcmd.c105 struct mlx5_cmd_work_ent *ent; in alloc_cmd() local
107 ent = kzalloc(sizeof(*ent), alloc_flags); in alloc_cmd()
108 if (!ent) in alloc_cmd()
111 ent->in = in; in alloc_cmd()
112 ent->out = out; in alloc_cmd()
113 ent->uout = uout; in alloc_cmd()
114 ent->uout_size = uout_size; in alloc_cmd()
115 ent->callback = cbk; in alloc_cmd()
116 ent->context = context; in alloc_cmd()
117 ent->cmd = cmd; in alloc_cmd()
[all …]
/drivers/scsi/
Desp_scsi.c346 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/
Dcm.c170 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout() local
172 struct mlx4_ib_dev *dev = ent->dev; in id_map_ent_timeout()
175 int pv_id = (int) ent->pv_cm_id; in id_map_ent_timeout()
181 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout()
182 if (found_ent && found_ent == ent) in id_map_ent_timeout()
187 list_del(&ent->list); in id_map_ent_timeout()
189 kfree(ent); in id_map_ent_timeout()
196 struct id_map_entry *ent, *found_ent; in id_map_find_del() local
199 ent = (struct id_map_entry *)idr_find(&sriov->pv_id_table, pv_cm_id); in id_map_find_del()
200 if (!ent) in id_map_find_del()
[all …]
/drivers/staging/iio/Documentation/
Dlsiio.c48 const struct dirent *ent; in dump_channels() local
52 while (ent = readdir(dp), ent != NULL) in dump_channels()
53 if (check_prefix(ent->d_name, "in_") && in dump_channels()
54 check_postfix(ent->d_name, "_raw")) { in dump_channels()
55 printf(" %-10s\n", ent->d_name); in dump_channels()
93 const struct dirent *ent; in dump_devices() local
107 while (ent = readdir(dp), ent != NULL) { in dump_devices()
108 if (check_prefix(ent->d_name, type_device)) { in dump_devices()
110 asprintf(&dev_dir_name, "%s%s", iio_dir, ent->d_name); in dump_devices()
118 while (ent = readdir(dp), ent != NULL) { in dump_devices()
[all …]
Diio_utils.h109 const struct dirent *ent; in iioutils_get_type() local
132 while (ent = readdir(dp), ent != NULL) in iioutils_get_type()
137 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_type()
138 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_type()
140 "%s/%s", scan_el_dir, ent->d_name); in iioutils_get_type()
208 const struct dirent *ent; in iioutils_get_param_float() local
226 while (ent = readdir(dp), ent != NULL) in iioutils_get_param_float()
227 if ((strcmp(builtname, ent->d_name) == 0) || in iioutils_get_param_float()
228 (strcmp(builtname_generic, ent->d_name) == 0)) { in iioutils_get_param_float()
230 "%s/%s", device_dir, ent->d_name); in iioutils_get_param_float()
[all …]
/drivers/gpu/drm/nouveau/core/subdev/bios/
Di2c.c71 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 …]
Dgpio.c62 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()
DM0209.c97 nvbios_M0209Se(struct nouveau_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) in nvbios_M0209Se() argument
101 u32 data = nvbios_M0209Ee(bios, ent, ver, hdr, &cnt, &len); in nvbios_M0209Se()
111 nvbios_M0209Sp(struct nouveau_bios *bios, int ent, int idx, u8 *ver, u8 *hdr, in nvbios_M0209Sp() argument
116 u32 data = nvbios_M0209Ep(bios, ent, ver, hdr, &cnt, &len, &M0209E); in nvbios_M0209Sp()
118 u32 i, data = nvbios_M0209Se(bios, ent, idx, ver, hdr); in nvbios_M0209Sp()
DM0205.c109 nvbios_M0205Se(struct nouveau_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) in nvbios_M0205Se() argument
113 u32 data = nvbios_M0205Ee(bios, ent, ver, hdr, &cnt, &len); in nvbios_M0205Se()
123 nvbios_M0205Sp(struct nouveau_bios *bios, int ent, int idx, u8 *ver, u8 *hdr, in nvbios_M0205Sp() argument
126 u32 data = nvbios_M0205Se(bios, ent, idx, ver, hdr); in nvbios_M0205Sp()
/drivers/bcma/
Dscan.c156 u32 ent = readl(*eromptr); in bcma_erom_get_ent() local
158 return ent; in bcma_erom_get_ent()
168 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_get_ci() local
169 if (!(ent & SCAN_ER_VALID)) in bcma_erom_get_ci()
171 if ((ent & SCAN_ER_TAG) != SCAN_ER_TAG_CI) in bcma_erom_get_ci()
173 return ent; in bcma_erom_get_ci()
178 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_end() local
180 return (ent == (SCAN_ER_TAG_END | SCAN_ER_VALID)); in bcma_erom_is_end()
185 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_bridge() local
187 return (((ent & SCAN_ER_VALID)) && in bcma_erom_is_bridge()
[all …]
/drivers/w1/
Dw1_family.c40 struct list_head *ent, *n; in w1_register_family() local
45 list_for_each_safe(ent, n, &w1_families) { in w1_register_family()
46 f = list_entry(ent, struct w1_family, family_entry); in w1_register_family()
72 struct list_head *ent, *n; in w1_unregister_family() local
76 list_for_each_safe(ent, n, &w1_families) { in w1_unregister_family()
77 f = list_entry(ent, struct w1_family, family_entry); in w1_unregister_family()
103 struct list_head *ent, *n; in w1_family_registered() local
107 list_for_each_safe(ent, n, &w1_families) { in w1_family_registered()
108 f = list_entry(ent, struct w1_family, family_entry); in w1_family_registered()
/drivers/media/
Dmedia-device.c93 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 strlcpy(u_ent.name, ent->name, sizeof(u_ent.name)); in media_device_enum_entities()
108 u_ent.type = ent->type; in media_device_enum_entities()
109 u_ent.revision = ent->revision; in media_device_enum_entities()
110 u_ent.flags = ent->flags; in media_device_enum_entities()
111 u_ent.group_id = ent->group_id; in media_device_enum_entities()
[all …]
/drivers/crypto/
Dn2_core.c496 struct cwq_initial_entry *ent) in submit_and_wait_for_tail() argument
498 unsigned long hv_ret = spu_queue_submit(qp, ent); in submit_and_wait_for_tail()
512 struct cwq_initial_entry *ent; in n2_do_async_digest() local
548 ent = qp->q + qp->tail; in n2_do_async_digest()
550 ent->control = control_word_base(nbytes, auth_key_len, 0, in n2_do_async_digest()
555 ent->src_addr = __pa(walk.data); in n2_do_async_digest()
556 ent->auth_key_addr = auth_key; in n2_do_async_digest()
557 ent->auth_iv_addr = __pa(hash_loc); in n2_do_async_digest()
558 ent->final_auth_state_addr = 0UL; in n2_do_async_digest()
559 ent->enc_key_addr = 0UL; in n2_do_async_digest()
[all …]
/drivers/iommu/
Dexynos-iommu.c291 sysmmu_pte_t *ent; in show_fault_information() local
299 ent = section_entry(phys_to_virt(pgtable_base), fault_addr); in show_fault_information()
300 pr_err("\tLv1 entry: %#x\n", *ent); in show_fault_information()
302 if (lv1ent_page(ent)) { in show_fault_information()
303 ent = page_entry(ent, fault_addr); in show_fault_information()
304 pr_err("\t Lv2 entry: %#x\n", *ent); in show_fault_information()
1048 sysmmu_pte_t *ent; in exynos_iommu_unmap() local
1056 ent = section_entry(priv->pgtable, iova); in exynos_iommu_unmap()
1058 if (lv1ent_section(ent)) { in exynos_iommu_unmap()
1065 *ent = ZERO_LV2LINK; in exynos_iommu_unmap()
[all …]
/drivers/gpu/drm/
Ddrm_debugfs.c91 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()
380 struct dentry *root, *ent; in drm_debugfs_connector_add() local
392 ent = debugfs_create_file("force", S_IRUGO | S_IWUSR, root, connector, in drm_debugfs_connector_add()
394 if (!ent) in drm_debugfs_connector_add()
398 ent = debugfs_create_file("edid_override", S_IRUGO | S_IWUSR, root, in drm_debugfs_connector_add()
400 if (!ent) in drm_debugfs_connector_add()
/drivers/scsi/isci/
Dhost.c257 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/misc/cxl/
Ddebugfs.c120 struct dentry *ent; in cxl_debugfs_init() local
121 ent = debugfs_create_dir("cxl", NULL); in cxl_debugfs_init()
122 if (IS_ERR(ent)) in cxl_debugfs_init()
123 return PTR_ERR(ent); in cxl_debugfs_init()
124 cxl_debugfs = ent; in cxl_debugfs_init()
/drivers/net/ppp/
Dbsd_comp.c572 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/
Disdn_bsdcomp.c461 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/
Datl1e_param.c149 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/char/hw_random/
Dgeode-rng.c90 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()

12345678910>>...16