/drivers/nubus/ |
D | nubus.c | 242 struct nubus_dirent ent; in nubus_get_board_dir() local 250 if (nubus_readdir(dir, &ent) == -1) in nubus_get_board_dir() 252 if (nubus_get_subdir(&ent, dir) == -1) in nubus_get_board_dir() 258 int nubus_get_subdir(const struct nubus_dirent *ent, in nubus_get_subdir() argument 261 dir->ptr = dir->base = nubus_dirptr(ent); in nubus_get_subdir() 263 dir->mask = ent->mask; in nubus_get_subdir() 268 int nubus_readdir(struct nubus_dir *nd, struct nubus_dirent *ent) in nubus_readdir() argument 276 ent->base = nd->ptr; in nubus_readdir() 289 ent->type = resid >> 24; in nubus_readdir() 291 ent->data = resid & 0xffffff; in nubus_readdir() [all …]
|
D | proc.c | 69 const struct nubus_dirent *ent, in nubus_proc_add_rsrc_dir() argument 77 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc_dir() 121 struct nubus_dirent ent; in nubus_proc_rsrc_show() local 126 ent.mask = lanes; in nubus_proc_rsrc_show() 127 ent.base = pde_data->res_ptr; in nubus_proc_rsrc_show() 128 ent.data = 0; in nubus_proc_rsrc_show() 129 nubus_seq_write_rsrc_mem(m, &ent, pde_data->res_size); in nubus_proc_rsrc_show() 153 const struct nubus_dirent *ent, in nubus_proc_add_rsrc_mem() argument 162 snprintf(name, sizeof(name), "%x", ent->type); in nubus_proc_add_rsrc_mem() 164 pde_data = nubus_proc_alloc_pde_data(nubus_dirptr(ent), size); in nubus_proc_add_rsrc_mem() [all …]
|
/drivers/scsi/qla2xxx/ |
D | qla_tmpl.c | 123 qla27xx_skip_entry(struct qla27xx_fwdt_entry *ent, void *buf) in qla27xx_skip_entry() argument 126 ent->hdr.driver_flags |= DRIVER_FLAG_SKIP_ENTRY; in qla27xx_skip_entry() 130 qla27xx_next_entry(struct qla27xx_fwdt_entry *ent) in qla27xx_next_entry() argument 132 return (void *)ent + le32_to_cpu(ent->hdr.size); in qla27xx_next_entry() 137 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t0() argument 141 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t0() 143 return qla27xx_next_entry(ent); in qla27xx_fwdt_entry_t0() 148 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t255() argument 152 qla27xx_skip_entry(ent, buf); in qla27xx_fwdt_entry_t255() 160 struct qla27xx_fwdt_entry *ent, void *buf, ulong *len) in qla27xx_fwdt_entry_t256() argument [all …]
|
/drivers/net/ethernet/mellanox/mlx5/core/ |
D | cmd.c | 78 struct mlx5_cmd_work_ent *ent; in cmd_alloc_ent() local 80 ent = kzalloc(sizeof(*ent), alloc_flags); in cmd_alloc_ent() 81 if (!ent) in cmd_alloc_ent() 84 ent->idx = -EINVAL; in cmd_alloc_ent() 85 ent->in = in; in cmd_alloc_ent() 86 ent->out = out; in cmd_alloc_ent() 87 ent->uout = uout; in cmd_alloc_ent() 88 ent->uout_size = uout_size; in cmd_alloc_ent() 89 ent->callback = cbk; in cmd_alloc_ent() 90 ent->context = context; in cmd_alloc_ent() [all …]
|
/drivers/infiniband/hw/mlx5/ |
D | mr.c | 112 static void queue_adjust_cache_locked(struct mlx5_cache_ent *ent); 138 struct mlx5_cache_ent *ent = mr->cache_ent; in create_mkey_callback() local 144 spin_lock_irqsave(&ent->lock, flags); in create_mkey_callback() 145 ent->pending--; in create_mkey_callback() 147 spin_unlock_irqrestore(&ent->lock, flags); in create_mkey_callback() 158 spin_lock_irqsave(&ent->lock, flags); in create_mkey_callback() 159 list_add_tail(&mr->list, &ent->head); in create_mkey_callback() 160 ent->available_mrs++; in create_mkey_callback() 161 ent->total_mrs++; in create_mkey_callback() 163 queue_adjust_cache_locked(ent); in create_mkey_callback() [all …]
|
/drivers/scsi/ |
D | esp_scsi.c | 404 static dma_addr_t esp_cur_dma_addr(struct esp_cmd_entry *ent, in esp_cur_dma_addr() argument 409 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_addr() 410 return ent->sense_dma + in esp_cur_dma_addr() 411 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_addr() 419 static unsigned int esp_cur_dma_len(struct esp_cmd_entry *ent, in esp_cur_dma_len() argument 424 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_cur_dma_len() 426 (ent->sense_ptr - cmd->sense_buffer); in esp_cur_dma_len() 431 static void esp_advance_dma(struct esp *esp, struct esp_cmd_entry *ent, in esp_advance_dma() argument 436 if (ent->flags & ESP_CMD_FLAG_AUTOSENSE) { in esp_advance_dma() 437 ent->sense_ptr += len; in esp_advance_dma() [all …]
|
/drivers/soc/qcom/ |
D | cmd-db.c | 114 rsc_offset(const struct rsc_hdr *hdr, const struct entry_header *ent) in rsc_offset() argument 117 u16 loffset = le16_to_cpu(ent->offset); in rsc_offset() 142 const struct entry_header *ent; in cmd_db_get_header() local 158 ent = rsc_to_entry_header(rsc_hdr); in cmd_db_get_header() 159 for (j = 0; j < le16_to_cpu(rsc_hdr->cnt); j++, ent++) { in cmd_db_get_header() 160 if (memcmp(ent->id, query, sizeof(ent->id)) == 0) { in cmd_db_get_header() 162 *eh = ent; in cmd_db_get_header() 186 const struct entry_header *ent; in cmd_db_read_addr() local 188 ret = cmd_db_get_header(id, &ent, NULL); in cmd_db_read_addr() 190 return ret < 0 ? 0 : le32_to_cpu(ent->addr); in cmd_db_read_addr() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/subdev/bios/ |
D | i2c.c | 75 u16 ent = dcb_i2c_entry(bios, idx, &ver, &len); in dcb_i2c_parse() local 76 if (ent) { in dcb_i2c_parse() 78 u32 ent_value = nvbios_rd32(bios, ent); in dcb_i2c_parse() 88 info->type = nvbios_rd08(bios, ent + 0x03); in dcb_i2c_parse() 90 info->type = nvbios_rd08(bios, ent + 0x03) & 0x07; in dcb_i2c_parse() 102 info->drive = nvbios_rd08(bios, ent + 0); in dcb_i2c_parse() 103 info->sense = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 106 info->drive = nvbios_rd08(bios, ent + 1); in dcb_i2c_parse() 109 info->drive = nvbios_rd08(bios, ent + 0) & 0x0f; in dcb_i2c_parse() 110 if (nvbios_rd08(bios, ent + 1) & 0x01) in dcb_i2c_parse() [all …]
|
D | gpio.c | 61 dcb_gpio_entry(struct nvkm_bios *bios, int idx, int ent, u8 *ver, u8 *len) in dcb_gpio_entry() argument 71 if (gpio && ent < cnt) in dcb_gpio_entry() 72 return gpio + hdr + (ent * *len); in dcb_gpio_entry() 78 dcb_gpio_parse(struct nvkm_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()
|
D | M0209.c | 95 nvbios_M0209Se(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr) in nvbios_M0209Se() argument 99 u32 data = nvbios_M0209Ee(bios, ent, ver, hdr, &cnt, &len); in nvbios_M0209Se() 109 nvbios_M0209Sp(struct nvkm_bios *bios, int ent, int idx, u8 *ver, u8 *hdr, in nvbios_M0209Sp() argument 114 u32 data = nvbios_M0209Ep(bios, ent, ver, hdr, &cnt, &len, &M0209E); in nvbios_M0209Sp() 116 u32 i, data = nvbios_M0209Se(bios, ent, idx, ver, hdr); in nvbios_M0209Sp()
|
/drivers/infiniband/hw/mlx4/ |
D | cm.c | 179 struct id_map_entry *ent = container_of(delay, struct id_map_entry, timeout); in id_map_ent_timeout() local 181 struct mlx4_ib_dev *dev = ent->dev; in id_map_ent_timeout() 186 if (!xa_erase(&sriov->pv_id_table, ent->pv_cm_id)) in id_map_ent_timeout() 188 found_ent = id_map_find_by_sl_id(&dev->ib_dev, ent->slave_id, ent->sl_cm_id); in id_map_ent_timeout() 189 if (found_ent && found_ent == ent) in id_map_ent_timeout() 193 list_del(&ent->list); in id_map_ent_timeout() 195 kfree(ent); in id_map_ent_timeout() 202 struct id_map_entry *ent; in sl_id_map_add() local 206 ent = id_map_find_by_sl_id(ibdev, slave_id, sl_cm_id); in sl_id_map_add() 207 if (ent) { in sl_id_map_add() [all …]
|
/drivers/md/ |
D | md-autodetect.c | 65 int ent; in md_setup() local 76 for (ent=0 ; ent< md_setup_ents ; ent++) in md_setup() 77 if (md_setup_args[ent].minor == minor && in md_setup() 78 md_setup_args[ent].partitioned == partitioned) { in md_setup() 83 if (ent >= ARRAY_SIZE(md_setup_args)) { in md_setup() 87 if (ent >= md_setup_ents) in md_setup() 97 md_setup_args[ent].level = level; in md_setup() 98 md_setup_args[ent].chunk = 1 << (factor+12); in md_setup() 110 md_setup_args[ent].level = LEVEL_NONE; in md_setup() 116 md_setup_args[ent].device_names = str; in md_setup() [all …]
|
/drivers/bcma/ |
D | scan.c | 159 u32 ent = readl(*eromptr); in bcma_erom_get_ent() local 161 return ent; in bcma_erom_get_ent() 171 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_get_ci() local 172 if (!(ent & SCAN_ER_VALID)) in bcma_erom_get_ci() 174 if ((ent & SCAN_ER_TAG) != SCAN_ER_TAG_CI) in bcma_erom_get_ci() 176 return ent; in bcma_erom_get_ci() 181 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_end() local 183 return (ent == (SCAN_ER_TAG_END | SCAN_ER_VALID)); in bcma_erom_is_end() 188 u32 ent = bcma_erom_get_ent(bus, eromptr); in bcma_erom_is_bridge() local 190 return (((ent & SCAN_ER_VALID)) && in bcma_erom_is_bridge() [all …]
|
/drivers/nvdimm/ |
D | btt.h | 35 #define ent_lba(ent) (ent & MAP_LBA_MASK) argument 36 #define ent_e_flag(ent) (!!(ent & MAP_ERR_MASK)) argument 37 #define ent_z_flag(ent) (!!(ent & MAP_TRIM_MASK)) argument 38 #define set_e_flag(ent) (ent |= MAP_ERR_MASK) argument 40 #define ent_normal(ent) (ent_e_flag(ent) && ent_z_flag(ent)) argument 93 struct log_entry ent[4]; member
|
D | btt.c | 273 return le32_to_cpu(log->ent[log_idx].seq); in log_seq() 297 log->ent[idx0].seq = cpu_to_le32(1); in btt_log_get_old() 328 struct log_entry *ent, int old_flag) in btt_log_read() argument 342 old_ent, lane, log.ent[arena->log_index[0]].seq, in btt_log_read() 343 log.ent[arena->log_index[1]].seq); in btt_log_read() 350 if (ent != NULL) in btt_log_read() 351 memcpy(ent, &log.ent[arena->log_index[ret_ent]], LOG_ENT_SIZE); in btt_log_read() 362 u32 sub, struct log_entry *ent, unsigned long flags) in __btt_log_write() argument 367 void *src = ent; in __btt_log_write() 383 struct log_entry *ent) in btt_flog_write() argument [all …]
|
/drivers/media/test-drivers/vimc/ |
D | vimc-streamer.c | 25 static struct media_entity *vimc_get_source_entity(struct media_entity *ent) in vimc_get_source_entity() argument 30 for (i = 0; i < ent->num_pads; i++) { in vimc_get_source_entity() 31 if (ent->pads[i].flags & MEDIA_PAD_FL_SOURCE) in vimc_get_source_entity() 33 pad = media_entity_remote_pad(&ent->pads[i]); in vimc_get_source_entity() 58 if (!is_media_entity_v4l2_subdev(ved->ent)) in vimc_streamer_pipeline_terminate() 61 sd = media_entity_to_v4l2_subdev(ved->ent); in vimc_streamer_pipeline_terminate() 95 if (is_media_entity_v4l2_subdev(ved->ent)) { in vimc_streamer_pipeline_init() 96 sd = media_entity_to_v4l2_subdev(ved->ent); in vimc_streamer_pipeline_init() 100 ved->ent->name); in vimc_streamer_pipeline_init() 106 entity = vimc_get_source_entity(ved->ent); in vimc_streamer_pipeline_init() [all …]
|
/drivers/w1/ |
D | w1_family.c | 23 struct list_head *ent, *n; in w1_register_family() local 28 list_for_each_safe(ent, n, &w1_families) { in w1_register_family() 29 f = list_entry(ent, struct w1_family, family_entry); in w1_register_family() 56 struct list_head *ent, *n; in w1_unregister_family() local 60 list_for_each_safe(ent, n, &w1_families) { in w1_unregister_family() 61 f = list_entry(ent, struct w1_family, family_entry); in w1_unregister_family() 88 struct list_head *ent, *n; in w1_family_registered() local 92 list_for_each_safe(ent, n, &w1_families) { in w1_family_registered() 93 f = list_entry(ent, struct w1_family, family_entry); in w1_family_registered()
|
/drivers/net/dsa/b53/ |
D | b53_priv.h | 268 static inline void b53_arl_to_entry(struct b53_arl_entry *ent, in b53_arl_to_entry() argument 271 memset(ent, 0, sizeof(*ent)); in b53_arl_to_entry() 272 ent->port = fwd_entry & ARLTBL_DATA_PORT_ID_MASK; in b53_arl_to_entry() 273 ent->is_valid = !!(fwd_entry & ARLTBL_VALID); in b53_arl_to_entry() 274 ent->is_age = !!(fwd_entry & ARLTBL_AGE); in b53_arl_to_entry() 275 ent->is_static = !!(fwd_entry & ARLTBL_STATIC); in b53_arl_to_entry() 276 u64_to_ether_addr(mac_vid, ent->mac); in b53_arl_to_entry() 277 ent->vid = mac_vid >> ARLTBL_VID_S; in b53_arl_to_entry() 281 const struct b53_arl_entry *ent) in b53_arl_from_entry() argument 283 *mac_vid = ether_addr_to_u64(ent->mac); in b53_arl_from_entry() [all …]
|
/drivers/iommu/ |
D | exynos-iommu.c | 97 #define sect_to_phys(ent) (((phys_addr_t) ent) << PG_ENT_SHIFT) argument 391 sysmmu_pte_t *ent; in show_fault_information() local 396 ent = section_entry(phys_to_virt(data->pgtable), fault_addr); in show_fault_information() 397 dev_dbg(data->sysmmu, "\tLv1 entry: %#x\n", *ent); in show_fault_information() 398 if (lv1ent_page(ent)) { in show_fault_information() 399 ent = page_entry(ent, fault_addr); in show_fault_information() 400 dev_dbg(data->sysmmu, "\t Lv2 entry: %#x\n", *ent); in show_fault_information() 728 static inline void exynos_iommu_set_pte(sysmmu_pte_t *ent, sysmmu_pte_t val) in exynos_iommu_set_pte() argument 730 dma_sync_single_for_cpu(dma_dev, virt_to_phys(ent), sizeof(*ent), in exynos_iommu_set_pte() 732 *ent = cpu_to_le32(val); in exynos_iommu_set_pte() [all …]
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_ulp.c | 97 static void bnxt_fill_msix_vecs(struct bnxt *bp, struct bnxt_msix_entry *ent) in bnxt_fill_msix_vecs() argument 105 ent[i].vector = bp->irq_tbl[idx + i].vector; in bnxt_fill_msix_vecs() 106 ent[i].ring_idx = idx + i; in bnxt_fill_msix_vecs() 108 ent[i].db_offset = DB_PF_OFFSET_P5; in bnxt_fill_msix_vecs() 110 ent[i].db_offset = DB_VF_OFFSET_P5; in bnxt_fill_msix_vecs() 112 ent[i].db_offset = (idx + i) * 0x80; in bnxt_fill_msix_vecs() 118 struct bnxt_msix_entry *ent, int num_msix) in bnxt_req_msix_vecs() argument 176 bnxt_fill_msix_vecs(bp, ent); in bnxt_req_msix_vecs() 393 struct bnxt_msix_entry *ent = NULL; in bnxt_ulp_irq_restart() local 403 ent = kcalloc(ulp->msix_requested, sizeof(*ent), in bnxt_ulp_irq_restart() [all …]
|
/drivers/crypto/ |
D | n2_core.c | 508 struct cwq_initial_entry *ent) in submit_and_wait_for_tail() argument 510 unsigned long hv_ret = spu_queue_submit(qp, ent); in submit_and_wait_for_tail() 524 struct cwq_initial_entry *ent; in n2_do_async_digest() local 560 ent = qp->q + qp->tail; in n2_do_async_digest() 562 ent->control = control_word_base(nbytes, auth_key_len, 0, in n2_do_async_digest() 567 ent->src_addr = __pa(walk.data); in n2_do_async_digest() 568 ent->auth_key_addr = auth_key; in n2_do_async_digest() 569 ent->auth_iv_addr = __pa(hash_loc); in n2_do_async_digest() 570 ent->final_auth_state_addr = 0UL; in n2_do_async_digest() 571 ent->enc_key_addr = 0UL; in n2_do_async_digest() [all …]
|
/drivers/gpu/drm/nouveau/nvkm/engine/gr/ |
D | gk20a.c | 63 struct gf100_gr_init *ent = &init[i]; in gk20a_gr_av_to_init() local 66 ent->addr = av->addr; in gk20a_gr_av_to_init() 67 ent->data = av->data; in gk20a_gr_av_to_init() 68 ent->count = 1; in gk20a_gr_av_to_init() 69 ent->pitch = 1; in gk20a_gr_av_to_init() 113 struct gf100_gr_init *ent = &init[i]; in gk20a_gr_aiv_to_init() local 116 ent->addr = av->addr; in gk20a_gr_aiv_to_init() 117 ent->data = av->data; in gk20a_gr_aiv_to_init() 118 ent->count = 1; in gk20a_gr_aiv_to_init() 119 ent->pitch = 1; in gk20a_gr_aiv_to_init()
|
/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/media/mc/ |
D | mc-device.c | 102 struct media_entity *ent; in media_device_enum_entities() local 104 ent = find_entity(mdev, entd->id); in media_device_enum_entities() 105 if (ent == NULL) in media_device_enum_entities() 110 entd->id = media_entity_id(ent); in media_device_enum_entities() 111 if (ent->name) in media_device_enum_entities() 112 strscpy(entd->name, ent->name, sizeof(entd->name)); in media_device_enum_entities() 113 entd->type = ent->function; in media_device_enum_entities() 115 entd->flags = ent->flags; in media_device_enum_entities() 117 entd->pads = ent->num_pads; in media_device_enum_entities() 118 entd->links = ent->num_links - ent->num_backlinks; in media_device_enum_entities() [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 …]
|