/drivers/net/ethernet/ibm/ehea/ |
D | ehea_qmr.c | 572 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/ |
D | soc_scale_crop.c | 35 return r1->left > r2->left || r1->top > r2->top || in is_inside() 37 r1->top + r1->height < r2->top + r2->height; in is_inside() 82 if (rect->top > subrect->top) in update_subrect() 83 subrect->top = rect->top; in update_subrect() 84 else if (rect->top + rect->height > in update_subrect() 85 subrect->top + subrect->height) in update_subrect() 86 subrect->top = rect->top + rect->height - in update_subrect() 118 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_crop() 126 cam_rect->left, cam_rect->top, in soc_camera_client_s_crop() 127 rect->width, rect->height, rect->left, rect->top); in soc_camera_client_s_crop() [all …]
|
/drivers/media/pci/bt8xx/ |
D | bttv-risc.c | 277 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 …]
|
D | btcx-risc.c | 94 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 …]
|
D | bttv-driver.c | 273 .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() 1973 max_top = b->top + b->height - c->rect.height; in bttv_crop_adjust() [all …]
|
/drivers/staging/lustre/lustre/obdclass/ |
D | lu_object.c | 72 struct lu_object_header *top; in lu_object_put() local 78 top = o->lo_header; in lu_object_put() 89 LASSERT(top->loh_hash.next == NULL in lu_object_put() 90 && top->loh_hash.pprev == NULL); in lu_object_put() 91 LASSERT(list_empty(&top->loh_lru)); in lu_object_put() 92 if (!atomic_dec_and_test(&top->loh_ref)) in lu_object_put() 94 list_for_each_entry_reverse(o, &top->loh_layers, lo_linkage) { in lu_object_put() 102 cfs_hash_bd_get(site->ls_obj_hash, &top->loh_fid, &bd); in lu_object_put() 105 if (!cfs_hash_bd_dec_and_lock(site->ls_obj_hash, &bd, &top->loh_ref)) { in lu_object_put() 106 if (lu_object_is_dying(top)) { in lu_object_put() [all …]
|
D | cl_object.c | 153 struct cl_object *top; in cl_object_top() local 158 top = lu2cl(lu_object_top(&hdr->coh_lu)); in cl_object_top() 159 CDEBUG(D_TRACE, "%p -> %p\n", o, top); in cl_object_top() 160 return top; in cl_object_top() 212 struct lu_object_header *top; in cl_object_attr_get() local 217 top = obj->co_lu.lo_header; in cl_object_attr_get() 219 list_for_each_entry(obj, &top->loh_layers, co_lu.lo_linkage) { in cl_object_attr_get() 243 struct lu_object_header *top; in cl_object_attr_set() local 248 top = obj->co_lu.lo_header; in cl_object_attr_set() 250 list_for_each_entry_reverse(obj, &top->loh_layers, in cl_object_attr_set() [all …]
|
/drivers/media/platform/vivid/ |
D | vivid-vid-common.c | 652 if (r->top < boundary->top) in rect_map_inside() 653 r->top = boundary->top; in rect_map_inside() 656 if (r->top + r->height > boundary->height) in rect_map_inside() 657 r->top = boundary->height - r->height; in rect_map_inside() 672 r.top = max(a->top, b->top); in rect_intersect() 674 bottom = min(a->top + a->height, b->top + b->height); in rect_intersect() 676 r.height = max(0, bottom - r.top); in rect_intersect() 689 r->left = r->top = r->width = r->height = 0; in rect_scale() 694 r->top = ((r->top - from->top) * to->height) / from->height; in rect_scale() 713 if (r1->top >= r2->top + r2->height || in rect_overlap() [all …]
|
D | vivid-kthread-cap.c | 66 int top = dev->overlay_out_top; in copy_pix() local 68 int fb_y = win_y + top; in copy_pix() 78 win_y -= dev->compose_out.top; in copy_pix() 86 if (fb_y >= r->top && fb_y < r->top + r->height && in copy_pix() 192 dev->loop_vid_out.top += dev->crop_out.top; in vivid_precalc_copy_rects() 200 dev->loop_vid_copy.left, dev->loop_vid_copy.top, in vivid_precalc_copy_rects() 202 dev->loop_vid_out.left, dev->loop_vid_out.top, in vivid_precalc_copy_rects() 204 dev->loop_vid_cap.left, dev->loop_vid_cap.top); in vivid_precalc_copy_rects() 210 r_overlay.top += dev->compose_out.top - dev->overlay_out_top; in vivid_precalc_copy_rects() 217 dev->loop_fb_copy.top -= dev->compose_out.top - dev->overlay_out_top; in vivid_precalc_copy_rects() [all …]
|
/drivers/media/platform/omap/ |
D | omap_voutlib.c | 53 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/md/bcache/ |
D | extents.c | 268 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 …]
|
D | bset.h | 474 struct bkey *top; member 491 l->top = bkey_next(k); in bch_keylist_init_single() 496 l->top = bkey_next(l->top); in bch_keylist_push() 501 bkey_copy(l->top, k); in bch_keylist_add() 507 return l->top == l->keys; in bch_keylist_empty() 512 l->top = l->keys; in bch_keylist_reset()
|
/drivers/staging/rdma/ehca/ |
D | ehca_mrmw.c | 84 struct ehca_top_bmap *top[EHCA_MAP_ENTRIES]; member 1523 static inline void *ehca_calc_sectbase(int top, int dir, int idx) in ehca_calc_sectbase() argument 1527 ret |= top << EHCA_TOP_INDEX_SHIFT; in ehca_calc_sectbase() 1534 static u64 ehca_reg_mr_section(int top, int dir, int idx, u64 *kpage, in ehca_reg_mr_section() argument 1543 void *sectbase = ehca_calc_sectbase(top, dir, idx); in ehca_reg_mr_section() 1571 static u64 ehca_reg_mr_sections(int top, int dir, u64 *kpage, in ehca_reg_mr_sections() argument 1579 if (!ehca_bmap_valid(ehca_bmap->top[top]->dir[dir]->ent[idx])) in ehca_reg_mr_sections() 1582 hret = ehca_reg_mr_section(top, dir, idx, kpage, shca, mr, in ehca_reg_mr_sections() 1590 static u64 ehca_reg_mr_dir_sections(int top, u64 *kpage, struct ehca_shca *shca, in ehca_reg_mr_dir_sections() argument 1598 if (!ehca_bmap_valid(ehca_bmap->top[top]->dir[dir])) in ehca_reg_mr_dir_sections() [all …]
|
/drivers/media/platform/vsp1/ |
D | vsp1_rwpf.c | 136 crop->top = 0; in vsp1_rwpf_set_format() 168 sel->r.top = 0; in vsp1_rwpf_get_selection() 206 sel->r.top = ALIGN(sel->r.top, 2); in vsp1_rwpf_set_selection() 212 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); in vsp1_rwpf_set_selection() 215 sel->r.top = min_t(unsigned int, sel->r.top, 255); in vsp1_rwpf_set_selection() 220 format->height - sel->r.top); in vsp1_rwpf_set_selection()
|
/drivers/gpu/drm/sti/ |
D | sti_hqvdp.c | 307 struct sti_hqvdp_top top; member 592 btm_cmd->top.config = TOP_CONFIG_INTER_BTM; in sti_hqvdp_vtg_cb() 593 btm_cmd->top.current_luma += in sti_hqvdp_vtg_cb() 594 btm_cmd->top.luma_src_pitch / 2; in sti_hqvdp_vtg_cb() 595 btm_cmd->top.current_chroma += in sti_hqvdp_vtg_cb() 596 btm_cmd->top.chroma_src_pitch / 2; in sti_hqvdp_vtg_cb() 826 cmd->top.config = TOP_CONFIG_PROGRESSIVE; in sti_hqvdp_atomic_update() 827 cmd->top.mem_format = TOP_MEM_FORMAT_DFLT; in sti_hqvdp_atomic_update() 849 cmd->top.current_luma = (u32)cma_obj->paddr + fb->offsets[0]; in sti_hqvdp_atomic_update() 850 cmd->top.current_chroma = (u32)cma_obj->paddr + fb->offsets[1]; in sti_hqvdp_atomic_update() [all …]
|
/drivers/gpu/drm/qxl/ |
D | qxl_draw.c | 92 drawable->self_bitmap_area.top = 0; in make_drawable() 201 rect.top = y; in qxl_draw_opaque_fb() 232 drawable->u.copy.src_area.top = 0; in qxl_draw_opaque_fb() 283 int left, right, top, bottom; in qxl_draw_dirty_fb() local 303 top = clips->y1; in qxl_draw_dirty_fb() 311 top = min_t(int, top, (int)clips_ptr->y1); in qxl_draw_dirty_fb() 316 height = bottom - top; in qxl_draw_dirty_fb() 335 drawable_rect.top = top; in qxl_draw_dirty_fb() 349 left, top, width, height, depth, stride); in qxl_draw_dirty_fb() 365 drawable->u.copy.src_area.top = 0; in qxl_draw_dirty_fb() [all …]
|
/drivers/media/ |
D | media-entity.c | 106 if (graph->top == MEDIA_ENTITY_ENUM_MAX_DEPTH - 1) { in stack_push() 110 graph->top++; in stack_push() 111 graph->stack[graph->top].link = 0; in stack_push() 112 graph->stack[graph->top].entity = entity; in stack_push() 119 entity = graph->stack[graph->top].entity; in stack_pop() 120 graph->top--; in stack_pop() 125 #define link_top(en) ((en)->stack[(en)->top].link) 126 #define stack_top(en) ((en)->stack[(en)->top].entity) 141 graph->top = 0; in media_entity_graph_walk_start() 142 graph->stack[graph->top].entity = NULL; in media_entity_graph_walk_start()
|
/drivers/staging/wlan-ng/ |
D | prism2sta.c | 686 hw->cap_sup_mfi.top = le16_to_cpu(hw->cap_sup_mfi.top); in prism2sta_getcardinfo() 692 hw->cap_sup_mfi.top); in prism2sta_getcardinfo() 710 hw->cap_sup_cfi.top = le16_to_cpu(hw->cap_sup_cfi.top); in prism2sta_getcardinfo() 716 hw->cap_sup_cfi.top); in prism2sta_getcardinfo() 734 hw->cap_sup_pri.top = le16_to_cpu(hw->cap_sup_pri.top); in prism2sta_getcardinfo() 740 hw->cap_sup_pri.top); in prism2sta_getcardinfo() 758 hw->cap_sup_sta.top = le16_to_cpu(hw->cap_sup_sta.top); in prism2sta_getcardinfo() 765 hw->cap_sup_sta.top); in prism2sta_getcardinfo() 771 hw->cap_sup_sta.top); in prism2sta_getcardinfo() 790 hw->cap_act_pri_cfi.top = le16_to_cpu(hw->cap_act_pri_cfi.top); in prism2sta_getcardinfo() [all …]
|
/drivers/gpu/drm/vmwgfx/ |
D | vmwgfx_scrn.c | 53 s32 left, right, top, bottom; member 754 cmd->body.destRect.top = sdirty->top; in vmw_sou_surface_fifo_commit() 759 cmd->body.srcRect.top = sdirty->top + trans_y; in vmw_sou_surface_fifo_commit() 769 blit->top -= sdirty->top; in vmw_sou_surface_fifo_commit() 770 blit->bottom -= sdirty->top; in vmw_sou_surface_fifo_commit() 775 sdirty->left = sdirty->top = S32_MAX; in vmw_sou_surface_fifo_commit() 797 blit->top = dirty->unit_y1; in vmw_sou_surface_clip() 803 sdirty->top = min_t(s32, sdirty->top, dirty->unit_y1); in vmw_sou_surface_clip() 861 sdirty.left = sdirty.top = S32_MAX; in vmw_kms_sou_do_surface_dirty() 905 blit->body.destRect.top = dirty->unit_y1; in vmw_sou_dmabuf_clip() [all …]
|
D | vmwgfx_stdu.c | 62 s32 left, right, top, bottom; member 295 s32 left, s32 right, s32 top, s32 bottom) in vmw_stdu_populate_update() argument 304 update->body.rect.y = top; in vmw_stdu_populate_update() 306 update->body.rect.h = bottom - top; in vmw_stdu_populate_update() 765 ddirty->top = min_t(s32, ddirty->top, dirty->unit_y1); in vmw_stdu_dmabuf_clip() 811 ddirty->top, ddirty->bottom); in vmw_stdu_dmabuf_fifo_commit() 816 ddirty->left = ddirty->top = S32_MAX; in vmw_stdu_dmabuf_fifo_commit() 866 ddirty.left = ddirty.top = S32_MAX; in vmw_kms_stdu_dma() 919 sdirty->top = min_t(s32, sdirty->top, dirty->unit_y1); in vmw_kms_stdu_surface_clip() 964 sdirty->right, sdirty->top, sdirty->bottom); in vmw_kms_stdu_surface_fifo_commit() [all …]
|
/drivers/gpu/drm/virtio/ |
D | virtgpu_fb.c | 128 int left, right, top, bottom; in virtio_gpu_surface_dirty() local 140 top = clips->y1; in virtio_gpu_surface_dirty() 148 top = min_t(int, top, (int)clips_ptr->y1); in virtio_gpu_surface_dirty() 153 return virtio_gpu_dirty_update(vgfb, false, left, top, in virtio_gpu_surface_dirty() 154 right - left, bottom - top); in virtio_gpu_surface_dirty() 157 left, top, right - left, bottom - top); in virtio_gpu_surface_dirty()
|
/drivers/media/pci/saa7134/ |
D | saa7134-go7007.c | 61 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/ |
D | mthca_allocator.c | 49 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()
|
/drivers/scsi/ |
D | scsi_devinfo.c | 607 struct list_head *top; member 615 list_entry(dl->top, struct scsi_dev_info_list_table, node); in devinfo_seq_show() 637 list_for_each(dl->top, &scsi_dev_info_list) { in devinfo_seq_start() 639 list_entry(dl->top, struct scsi_dev_info_list_table, in devinfo_seq_start() 654 list_entry(dl->top, struct scsi_dev_info_list_table, node); in devinfo_seq_next() 659 dl->top = dl->top->next; in devinfo_seq_next() 660 if (dl->top == &scsi_dev_info_list) { in devinfo_seq_next() 664 devinfo_table = list_entry(dl->top, in devinfo_seq_next()
|
/drivers/gpu/ipu-v3/ |
D | ipu-cpmem.c | 688 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() 699 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 701 image->rect.top) - offset; in ipu_cpmem_set_image() 703 image->rect.top) - offset; in ipu_cpmem_set_image() 710 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 712 image->rect.top) - offset; in ipu_cpmem_set_image() 720 offset = Y_OFFSET(pix, image->rect.left, image->rect.top); in ipu_cpmem_set_image() 722 image->rect.top) - offset; in ipu_cpmem_set_image() [all …]
|