Home
last modified time | relevance | path

Searched refs:top (Results 1 – 25 of 230) sorted by relevance

12345678910

/drivers/gpu/drm/nouveau/nvkm/subdev/top/
Dbase.c27 nvkm_top_device_new(struct nvkm_top *top) in nvkm_top_device_new() argument
38 list_add_tail(&info->head, &top->device); in nvkm_top_device_new()
46 struct nvkm_top *top = device->top; in nvkm_top_reset() local
49 if (top) { in nvkm_top_reset()
50 list_for_each_entry(info, &top->device, head) { in nvkm_top_reset()
62 struct nvkm_top *top = device->top; in nvkm_top_intr_mask() local
65 if (top) { in nvkm_top_intr_mask()
66 list_for_each_entry(info, &top->device, head) { in nvkm_top_intr_mask()
78 struct nvkm_top *top = device->top; in nvkm_top_intr() local
83 if (top) { in nvkm_top_intr()
[all …]
/drivers/net/ethernet/ibm/ehea/
Dehea_qmr.c572 static inline int ehea_init_bmap(struct ehea_bmap *ehea_bmap, int top, int dir) in ehea_init_bmap() argument
574 if (!ehea_bmap->top[top]) { in ehea_init_bmap()
575 ehea_bmap->top[top] = in ehea_init_bmap()
577 if (!ehea_bmap->top[top]) in ehea_init_bmap()
580 return ehea_init_top_bmap(ehea_bmap->top[top], dir); in ehea_init_bmap()
592 int top, dir, idx; in ehea_rebuild_busmap() local
594 for (top = 0; top < EHEA_MAP_ENTRIES; top++) { in ehea_rebuild_busmap()
598 if (!ehea_bmap->top[top]) in ehea_rebuild_busmap()
600 ehea_top = ehea_bmap->top[top]; in ehea_rebuild_busmap()
622 ehea_bmap->top[top] = NULL; in ehea_rebuild_busmap()
[all …]
/drivers/media/platform/soc_camera/
Dsoc_scale_crop.c35 return r1->left > r2->left || r1->top > r2->top || in is_inside()
37 r1->top + r1->height < r2->top + r2->height; in is_inside()
80 if (rect->top > subrect->top) in update_subrect()
81 subrect->top = rect->top; in update_subrect()
82 else if (rect->top + rect->height > in update_subrect()
83 subrect->top + subrect->height) in update_subrect()
84 subrect->top = rect->top + rect->height - in update_subrect()
126 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_selection()
134 cam_rect->left, cam_rect->top, in soc_camera_client_s_selection()
135 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_selection()
[all …]
/drivers/media/pci/bt8xx/
Dbttv-risc.c277 addr += btv->fbuf.fmt.bytesperline * ov->w.top; in bttv_risc_overlay()
393 && crop->top == tvnorm->cropcap.defrect.top in bttv_calc_geo()
414 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; in bttv_calc_geo()
469 if (NULL != btv->curr.top) btv->cap_ctl |= 0x02; in bttv_set_dma()
480 btv->cvbi ? (unsigned long long)btv->cvbi->top.dma : 0, in bttv_set_dma()
481 btv->curr.top ? (unsigned long long)btv->curr.top->top.dma : 0, in bttv_set_dma()
590 btcx_riscmem_free(btv->c.pci,&buf->top); in bttv_dma_free()
598 struct btcx_riscmem *top; in bttv_buffer_activate_vbi() local
603 top = NULL; in bttv_buffer_activate_vbi()
629 top = &vbi->top; in bttv_buffer_activate_vbi()
[all …]
Dbtcx-risc.c94 clips[n].c.top = 0; in btcx_screen_clips()
102 clips[n].c.top = 0; in btcx_screen_clips()
107 if (win->top < 0) { in btcx_screen_clips()
110 clips[n].c.top = 0; in btcx_screen_clips()
112 clips[n].c.height = -win->top; in btcx_screen_clips()
115 if (win->top + win->height > sheight) { in btcx_screen_clips()
118 clips[n].c.top = sheight - win->top; in btcx_screen_clips()
120 clips[n].c.height = win->height - clips[n].c.top; in btcx_screen_clips()
142 win->width, win->height, win->left, win->top, dx); in btcx_align()
155 clips[i].c.left, clips[i].c.top); in btcx_align()
[all …]
Dbttv-driver.c273 .cropcap.bounds.top = (videostart0) * 2 - (vdelay) + MIN_VDELAY, \
279 .cropcap.defrect.top = (videostart0) * 2, \
704 __s32 top = btv->crop[!!fh->do_crop].rect.top; in check_alloc_btres_lock() local
706 if (btv->vbi_end > top) in check_alloc_btres_lock()
711 btv->crop_start = top; in check_alloc_btres_lock()
758 btv->crop_start = tvnorm->cropcap.bounds.top in disclaim_video_lines()
1163 btv->crop_start = tvnorm->cropcap.bounds.top in set_tvnorm()
1588 if (btv->vbi_end > bttv_tvnorms[norm].cropcap.defrect.top) { in bttv_prepare_buffer()
1627 buf->crop.top != c.rect.top || in bttv_prepare_buffer()
1960 max_top = b->top + b->height - c->rect.height; in bttv_crop_adjust()
[all …]
/drivers/mfd/
Dexynos-lpass.c57 struct regmap *top; member
64 regmap_read(lpass->top, SFR_LPASS_CORE_SW_RESET, &val); in exynos_lpass_core_sw_reset()
67 regmap_write(lpass->top, SFR_LPASS_CORE_SW_RESET, val); in exynos_lpass_core_sw_reset()
72 regmap_write(lpass->top, SFR_LPASS_CORE_SW_RESET, val); in exynos_lpass_core_sw_reset()
78 regmap_write(lpass->top, SFR_LPASS_INTR_CA5_MASK, in exynos_lpass_enable()
81 regmap_write(lpass->top, SFR_LPASS_INTR_CPU_MASK, in exynos_lpass_enable()
96 regmap_write(lpass->top, SFR_LPASS_INTR_CPU_MASK, 0); in exynos_lpass_disable()
97 regmap_write(lpass->top, SFR_LPASS_INTR_CA5_MASK, 0); in exynos_lpass_disable()
127 lpass->top = regmap_init_mmio(dev, base_top, in exynos_lpass_probe()
129 if (IS_ERR(lpass->top)) { in exynos_lpass_probe()
[all …]
/drivers/staging/lustre/lustre/obdclass/
Dlu_object.c97 struct lu_object_header *top; in lu_object_put() local
103 top = o->lo_header; in lu_object_put()
114 LASSERT(!top->loh_hash.next && !top->loh_hash.pprev); in lu_object_put()
115 LASSERT(list_empty(&top->loh_lru)); in lu_object_put()
116 if (!atomic_dec_and_test(&top->loh_ref)) in lu_object_put()
118 list_for_each_entry_reverse(o, &top->loh_layers, lo_linkage) { in lu_object_put()
126 cfs_hash_bd_get(site->ls_obj_hash, &top->loh_fid, &bd); in lu_object_put()
129 if (!cfs_hash_bd_dec_and_lock(site->ls_obj_hash, &bd, &top->loh_ref)) { in lu_object_put()
130 if (lu_object_is_dying(top)) { in lu_object_put()
144 list_for_each_entry_reverse(o, &top->loh_layers, lo_linkage) { in lu_object_put()
[all …]
Dcl_object.c136 struct cl_object *top; in cl_object_top() local
141 top = lu2cl(lu_object_top(&hdr->coh_lu)); in cl_object_top()
142 CDEBUG(D_TRACE, "%p -> %p\n", o, top); in cl_object_top()
143 return top; in cl_object_top()
195 struct lu_object_header *top; in cl_object_attr_get() local
200 top = obj->co_lu.lo_header; in cl_object_attr_get()
202 list_for_each_entry(obj, &top->loh_layers, co_lu.lo_linkage) { in cl_object_attr_get()
226 struct lu_object_header *top; in cl_object_attr_update() local
231 top = obj->co_lu.lo_header; in cl_object_attr_update()
233 list_for_each_entry_reverse(obj, &top->loh_layers, co_lu.lo_linkage) { in cl_object_attr_update()
[all …]
/drivers/media/platform/omap/
Domap_voutlib.c53 crop->top = ((pix->height - crop->height) >> 1) & ~1; in omap_vout_default_crop()
78 if (try_win.top < 0) { in omap_vout_try_window()
79 try_win.height += try_win.top; in omap_vout_try_window()
80 try_win.top = 0; in omap_vout_try_window()
88 if (try_win.top + try_win.height > fbuf->fmt.height) in omap_vout_try_window()
89 try_win.height = fbuf->fmt.height - try_win.top; in omap_vout_try_window()
180 if (try_crop.top < 0) { in omap_vout_new_crop()
181 try_crop.height += try_crop.top; in omap_vout_new_crop()
182 try_crop.top = 0; in omap_vout_new_crop()
190 if (try_crop.top + try_crop.height > pix->height) in omap_vout_new_crop()
[all …]
/drivers/gpu/drm/sti/
Dsti_hqvdp.c306 struct sti_hqvdp_top top; member
475 seq_printf(s, "\n\t %-20s 0x%08X", "Config", c->top.config); in hqvdp_dbg_dump_cmd()
476 switch (c->top.config) { in hqvdp_dbg_dump_cmd()
491 seq_printf(s, "\n\t %-20s 0x%08X", "MemFormat", c->top.mem_format); in hqvdp_dbg_dump_cmd()
492 seq_printf(s, "\n\t %-20s 0x%08X", "CurrentY", c->top.current_luma); in hqvdp_dbg_dump_cmd()
493 seq_printf(s, "\n\t %-20s 0x%08X", "CurrentC", c->top.current_chroma); in hqvdp_dbg_dump_cmd()
494 seq_printf(s, "\n\t %-20s 0x%08X", "YSrcPitch", c->top.luma_src_pitch); in hqvdp_dbg_dump_cmd()
496 c->top.chroma_src_pitch); in hqvdp_dbg_dump_cmd()
498 c->top.input_frame_size); in hqvdp_dbg_dump_cmd()
500 c->top.input_frame_size & 0x0000FFFF, in hqvdp_dbg_dump_cmd()
[all …]
/drivers/md/bcache/
Dextents.c268 struct btree_iter_set *top = iter->data, *i = top + 1; in bch_extent_sort_fixup() local
274 if (bkey_cmp(top->k, &START_KEY(i->k)) <= 0) in bch_extent_sort_fixup()
279 heap_sift(iter, i - top, bch_extent_sort_cmp); in bch_extent_sort_fixup()
283 if (top->k > i->k) { in bch_extent_sort_fixup()
284 if (bkey_cmp(top->k, i->k) >= 0) in bch_extent_sort_fixup()
287 bch_cut_front(top->k, i->k); in bch_extent_sort_fixup()
289 heap_sift(iter, i - top, bch_extent_sort_cmp); in bch_extent_sort_fixup()
292 BUG_ON(!bkey_cmp(&START_KEY(top->k), &START_KEY(i->k))); in bch_extent_sort_fixup()
294 if (bkey_cmp(i->k, top->k) < 0) { in bch_extent_sort_fixup()
295 bkey_copy(tmp, top->k); in bch_extent_sort_fixup()
[all …]
Dbset.h467 struct bkey *top; member
484 l->top = bkey_next(k); in bch_keylist_init_single()
489 l->top = bkey_next(l->top); in bch_keylist_push()
494 bkey_copy(l->top, k); in bch_keylist_add()
500 return l->top == l->keys; in bch_keylist_empty()
505 l->top = l->keys; in bch_keylist_reset()
/drivers/media/platform/vivid/
Dvivid-kthread-cap.c67 int top = dev->overlay_out_top; in copy_pix() local
69 int fb_y = win_y + top; in copy_pix()
79 win_y -= dev->compose_out.top; in copy_pix()
87 if (fb_y >= r->top && fb_y < r->top + r->height && in copy_pix()
193 dev->loop_vid_out.top += dev->crop_out.top; in vivid_precalc_copy_rects()
201 dev->loop_vid_copy.left, dev->loop_vid_copy.top, in vivid_precalc_copy_rects()
203 dev->loop_vid_out.left, dev->loop_vid_out.top, in vivid_precalc_copy_rects()
205 dev->loop_vid_cap.left, dev->loop_vid_cap.top); in vivid_precalc_copy_rects()
211 r_overlay.top += dev->compose_out.top - dev->overlay_out_top; in vivid_precalc_copy_rects()
218 dev->loop_fb_copy.top -= dev->compose_out.top - dev->overlay_out_top; in vivid_precalc_copy_rects()
[all …]
/drivers/staging/vc04_services/interface/vchiq_arm/
Dvchiq_debugfs.c165 static int vchiq_debugfs_create_log_entries(struct dentry *top) in vchiq_debugfs_create_log_entries() argument
276 struct dentry *top, *use_count, *trace; in vchiq_debugfs_add_instance() local
282 top = debugfs_create_dir(pidstr, clients); in vchiq_debugfs_add_instance()
283 if (!top) in vchiq_debugfs_add_instance()
287 0444, top, in vchiq_debugfs_add_instance()
294 0644, top, in vchiq_debugfs_add_instance()
300 vchiq_instance_get_debugfs_node(instance)->dentry = top; in vchiq_debugfs_add_instance()
307 debugfs_remove(top); in vchiq_debugfs_add_instance()
/drivers/infiniband/hw/hns/
Dhns_roce_alloc.c44 bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top) in hns_roce_bitmap_alloc()
54 *obj |= bitmap->top; in hns_roce_bitmap_alloc()
83 bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top) in hns_roce_bitmap_alloc_range()
98 *obj |= bitmap->top; in hns_roce_bitmap_alloc_range()
120 bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top) in hns_roce_bitmap_free_range()
134 bitmap->top = 0; in hns_roce_bitmap_init()
/drivers/gpu/drm/qxl/
Dqxl_draw.c88 drawable->self_bitmap_area.top = 0; in make_drawable()
197 rect.top = y; in qxl_draw_opaque_fb()
228 drawable->u.copy.src_area.top = 0; in qxl_draw_opaque_fb()
279 int left, right, top, bottom; in qxl_draw_dirty_fb() local
299 top = clips->y1; in qxl_draw_dirty_fb()
307 top = min_t(int, top, (int)clips_ptr->y1); in qxl_draw_dirty_fb()
312 height = bottom - top; in qxl_draw_dirty_fb()
331 drawable_rect.top = top; in qxl_draw_dirty_fb()
345 left, top, width, height, depth, stride); in qxl_draw_dirty_fb()
360 drawable->u.copy.src_area.top = 0; in qxl_draw_dirty_fb()
[all …]
/drivers/media/platform/vsp1/
Dvsp1_rwpf.c111 crop->top = 0; in vsp1_rwpf_set_format()
159 sel->r.top = 0; in vsp1_rwpf_get_selection()
211 sel->r.top = ALIGN(sel->r.top, 2); in vsp1_rwpf_set_selection()
217 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection()
221 format->height - sel->r.top); in vsp1_rwpf_set_selection()
Dvsp1_rpf.c60 unsigned int top = 0; in rpf_configure() local
123 offsets[0] = crop.top * format->plane_fmt[0].bytesperline in rpf_configure()
127 offsets[1] = crop.top * format->plane_fmt[1].bytesperline in rpf_configure()
182 top = compose->top; in rpf_configure()
187 (top << VI6_RPF_LOC_VCOORD_SHIFT)); in rpf_configure()
/drivers/gpu/drm/vmwgfx/
Dvmwgfx_scrn.c53 s32 left, right, top, bottom; member
666 cmd->body.destRect.top = sdirty->top; in vmw_sou_surface_fifo_commit()
671 cmd->body.srcRect.top = sdirty->top + trans_y; in vmw_sou_surface_fifo_commit()
681 blit->top -= sdirty->top; in vmw_sou_surface_fifo_commit()
682 blit->bottom -= sdirty->top; in vmw_sou_surface_fifo_commit()
687 sdirty->left = sdirty->top = S32_MAX; in vmw_sou_surface_fifo_commit()
709 blit->top = dirty->unit_y1; in vmw_sou_surface_clip()
715 sdirty->top = min_t(s32, sdirty->top, dirty->unit_y1); in vmw_sou_surface_clip()
773 sdirty.left = sdirty.top = S32_MAX; in vmw_kms_sou_do_surface_dirty()
822 blit->body.destRect.top = dirty->unit_y1; in vmw_sou_dmabuf_clip()
[all …]
/drivers/gpu/ipu-v3/
Dipu-cpmem.c688 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
690 image->rect.top) - offset; in ipu_cpmem_set_image()
692 image->rect.top) - offset; in ipu_cpmem_set_image()
698 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
700 image->rect.top) - offset; in ipu_cpmem_set_image()
702 image->rect.top) - offset; in ipu_cpmem_set_image()
708 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
710 image->rect.top) - offset; in ipu_cpmem_set_image()
712 image->rect.top) - offset; in ipu_cpmem_set_image()
718 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image()
[all …]
/drivers/staging/wlan-ng/
Dprism2sta.c687 hw->cap_sup_mfi.top = le16_to_cpu(hw->cap_sup_mfi.top); in prism2sta_getcardinfo()
693 hw->cap_sup_mfi.top); in prism2sta_getcardinfo()
711 hw->cap_sup_cfi.top = le16_to_cpu(hw->cap_sup_cfi.top); in prism2sta_getcardinfo()
717 hw->cap_sup_cfi.top); in prism2sta_getcardinfo()
735 hw->cap_sup_pri.top = le16_to_cpu(hw->cap_sup_pri.top); in prism2sta_getcardinfo()
741 hw->cap_sup_pri.top); in prism2sta_getcardinfo()
759 hw->cap_sup_sta.top = le16_to_cpu(hw->cap_sup_sta.top); in prism2sta_getcardinfo()
766 hw->cap_sup_sta.top); in prism2sta_getcardinfo()
772 hw->cap_sup_sta.top); in prism2sta_getcardinfo()
791 hw->cap_act_pri_cfi.top = le16_to_cpu(hw->cap_act_pri_cfi.top); in prism2sta_getcardinfo()
[all …]
/drivers/gpu/drm/virtio/
Dvirtgpu_fb.c127 int left, right, top, bottom; in virtio_gpu_surface_dirty() local
139 top = clips->y1; in virtio_gpu_surface_dirty()
147 top = min_t(int, top, (int)clips_ptr->y1); in virtio_gpu_surface_dirty()
152 return virtio_gpu_dirty_update(vgfb, false, left, top, in virtio_gpu_surface_dirty()
153 right - left, bottom - top); in virtio_gpu_surface_dirty()
156 left, top, right - left, bottom - top); in virtio_gpu_surface_dirty()
/drivers/media/pci/saa7134/
Dsaa7134-go7007.c61 u8 *top; member
251 go7007_parse_video_stream(go, saa->top, PAGE_SIZE); in saa7134_go7007_irq_ts_done()
261 saa->top_dma = dma_map_page(&dev->pci->dev, virt_to_page(saa->top), in saa7134_go7007_stream_start()
450 saa->top = (u8 *)get_zeroed_page(GFP_KERNEL); in saa7134_go7007_init()
451 if (!saa->top) in saa7134_go7007_init()
477 if (saa->top) in saa7134_go7007_init()
478 free_page((unsigned long)saa->top); in saa7134_go7007_init()
500 free_page((unsigned long)saa->top); in saa7134_go7007_fini()
/drivers/infiniband/hw/mthca/
Dmthca_allocator.c49 alloc->top = (alloc->top + alloc->max) & alloc->mask; in mthca_alloc()
55 obj |= alloc->top; in mthca_alloc()
74 alloc->top = (alloc->top + alloc->max) & alloc->mask; in mthca_free()
89 alloc->top = 0; in mthca_alloc_init()

12345678910