/drivers/net/ethernet/ibm/ehea/ |
H A D | ehea_qmr.c | 572 static inline int ehea_init_bmap(struct ehea_bmap *ehea_bmap, int top, int dir) argument 574 if (!ehea_bmap->top[top]) { 575 ehea_bmap->top[top] = 577 if (!ehea_bmap->top[top]) 580 return ehea_init_top_bmap(ehea_bmap->top[top], dir); 592 int top, di local 646 int top = ehea_calc_index(i, EHEA_TOP_INDEX_SHIFT); local 755 int top, dir; local 782 int top, dir, idx; local 805 ehea_calc_sectbase(int top, int dir, int idx) argument 813 ehea_reg_mr_section(int top, int dir, int idx, u64 *pt, struct ehea_adapter *adapter, struct ehea_mr *mr) argument 844 ehea_reg_mr_sections(int top, int dir, u64 *pt, struct ehea_adapter *adapter, struct ehea_mr *mr) argument 862 ehea_reg_mr_dir_sections(int top, u64 *pt, struct ehea_adapter *adapter, struct ehea_mr *mr) argument 887 unsigned long top; local [all...] |
/drivers/media/platform/soc_camera/ |
H A D | soc_scale_crop.c | 35 return r1->left > r2->left || r1->top > r2->top || 37 r1->top + r1->height < r2->top + r2->height; 82 if (rect->top > subrect->top) 83 subrect->top = rect->top; 84 else if (rect->top + rect->height > 85 subrect->top [all...] |
/drivers/media/common/ |
H A D | btcx-risc.c | 98 clips[n].c.top = 0; 106 clips[n].c.top = 0; 111 if (win->top < 0) { 112 /* top */ 114 clips[n].c.top = 0; 116 clips[n].c.height = -win->top; 119 if (win->top + win->height > sheight) { 122 clips[n].c.top = sheight - win->top; 124 clips[n].c.height = win->height - clips[n].c.top; [all...] |
/drivers/media/platform/omap/ |
H A D | omap_voutlib.c | 53 crop->top = ((pix->height - crop->height) >> 1) & ~1; 78 if (try_win.top < 0) { 79 try_win.height += try_win.top; 80 try_win.top = 0; 88 if (try_win.top + try_win.height > fbuf->fmt.height) 89 try_win.height = fbuf->fmt.height - try_win.top; 180 if (try_crop.top < 0) { 181 try_crop.height += try_crop.top; 182 try_crop.top = 0; 190 if (try_crop.top [all...] |
/drivers/media/platform/vivid/ |
H A D | vivid-vid-common.c | 325 if (r->top < boundary->top) 326 r->top = boundary->top; 329 if (r->top + r->height > boundary->height) 330 r->top = boundary->height - r->height; 345 r.top = max(a->top, b->top); 347 bottom = min(a->top [all...] |
H A D | vivid-kthread-cap.c | 66 int top = dev->overlay_out_top; local 68 int fb_y = win_y + top; 78 win_y -= dev->compose_out.top; 86 if (fb_y >= r->top && fb_y < r->top + r->height && 192 dev->loop_vid_out.top += dev->crop_out.top; 200 dev->loop_vid_copy.left, dev->loop_vid_copy.top, 202 dev->loop_vid_out.left, dev->loop_vid_out.top, 204 dev->loop_vid_cap.left, dev->loop_vid_cap.top); [all...] |
/drivers/media/pci/bt8xx/ |
H A D | bttv-risc.c | 277 addr += btv->fbuf.fmt.bytesperline * ov->w.top; 393 && crop->top == tvnorm->cropcap.defrect.top 414 geo->vdelay = crop->top - tvnorm->cropcap.bounds.top + MIN_VDELAY; 469 if (NULL != btv->curr.top) btv->cap_ctl |= 0x02; 478 d2printk("%d: capctl=%x lirq=%d top=%08llx/%08llx even=%08llx/%08llx\n", 480 btv->cvbi ? (unsigned long long)btv->cvbi->top.dma : 0, 481 btv->curr.top ? (unsigned long long)btv->curr.top 598 struct btcx_riscmem *top; local [all...] |
/drivers/staging/lustre/lustre/obdclass/ |
H A D | lu_object.c | 71 struct lu_object_header *top; local 77 top = o->lo_header; 88 LASSERT(top->loh_hash.next == NULL 89 && top->loh_hash.pprev == NULL); 90 LASSERT(list_empty(&top->loh_lru)); 91 if (!atomic_dec_and_test(&top->loh_ref)) 93 list_for_each_entry_reverse(o, &top->loh_layers, lo_linkage) { 101 cfs_hash_bd_get(site->ls_obj_hash, &top->loh_fid, &bd); 104 if (!cfs_hash_bd_dec_and_lock(site->ls_obj_hash, &bd, &top->loh_ref)) { 105 if (lu_object_is_dying(top)) { 173 struct lu_object_header *top; local 201 struct lu_object *top; local 495 struct lu_object_header *top; local 524 struct lu_object_header *top; local 730 struct lu_object *top; local 983 lu_site_init(struct lu_site *s, struct lu_device *top) argument 1265 lu_stack_fini(const struct lu_env *env, struct lu_device *top) argument [all...] |
H A D | cl_object.c | 156 * Returns the top-object for a given \a o. 163 struct cl_object *top; local 168 top = lu2cl(lu_object_top(&hdr->coh_lu)); 169 CDEBUG(D_TRACE, "%p -> %p\n", o, top); 170 return top; 179 * spin-lock in the top-object. 214 * top-to-bottom to fill in parts of \a attr that this layer is responsible 220 struct lu_object_header *top; local 225 top = obj->co_lu.lo_header; 227 list_for_each_entry(obj, &top 251 struct lu_object_header *top; local 284 struct lu_object_header *top; local 311 struct lu_object_header *top; local [all...] |
/drivers/md/bcache/ |
H A D | extents.c | 268 struct btree_iter_set *top = iter->data, *i = top + 1; local 274 if (bkey_cmp(top->k, &START_KEY(i->k)) <= 0) 279 heap_sift(iter, i - top, bch_extent_sort_cmp); 283 if (top->k > i->k) { 284 if (bkey_cmp(top->k, i->k) >= 0) 287 bch_cut_front(top->k, i->k); 289 heap_sift(iter, i - top, bch_extent_sort_cmp); 292 BUG_ON(!bkey_cmp(&START_KEY(top->k), &START_KEY(i->k))); 294 if (bkey_cmp(i->k, top 402 struct bkey *top; local [all...] |
H A D | bset.h | 47 * (described below) for searching an individial bset, and on top of that we 467 struct bkey *top; member in union:keylist::__anon1969 484 l->top = bkey_next(k); 489 l->top = bkey_next(l->top); 494 bkey_copy(l->top, k); 500 return l->top == l->keys; 505 l->top = l->keys;
|
/drivers/media/platform/vsp1/ |
H A D | vsp1_rwpf.c | 135 crop->top = 0; 167 sel->r.top = 0; 195 * WPF top and left offsets are limited to 255. 200 sel->r.top = min_t(unsigned int, sel->r.top, format->height - 2); 203 sel->r.top = min_t(unsigned int, sel->r.top, 255); 208 format->height - sel->r.top);
|
H A D | vsp1_rwpf.h | 37 unsigned int top; member in struct:vsp1_rwpf::__anon2294
|
/drivers/uwb/ |
H A D | drp-avail.c | 144 size_t top = itr + len; local 148 while (itr < top) { 150 val |= array[top - 1]; 151 top--;
|
/drivers/media/ |
H A D | media-entity.c | 106 if (graph->top == MEDIA_ENTITY_ENUM_MAX_DEPTH - 1) { 110 graph->top++; 111 graph->stack[graph->top].link = 0; 112 graph->stack[graph->top].entity = entity; 119 entity = graph->stack[graph->top].entity; 120 graph->top--; 125 #define link_top(en) ((en)->stack[(en)->top].link) 126 #define stack_top(en) ((en)->stack[(en)->top].entity) 141 graph->top = 0; 142 graph->stack[graph->top] [all...] |
/drivers/infiniband/hw/ehca/ |
H A D | ehca_mrmw.c | 84 struct ehca_top_bmap *top[EHCA_MAP_ENTRIES]; member in struct:ehca_bmap 1523 static inline void *ehca_calc_sectbase(int top, int dir, int idx) argument 1527 ret |= top << EHCA_TOP_INDEX_SHIFT; 1534 static u64 ehca_reg_mr_section(int top, int dir, int idx, u64 *kpage, argument 1543 void *sectbase = ehca_calc_sectbase(top, dir, idx); 1571 static u64 ehca_reg_mr_sections(int top, int dir, u64 *kpage, argument 1579 if (!ehca_bmap_valid(ehca_bmap->top[top]->dir[dir]->ent[idx])) 1582 hret = ehca_reg_mr_section(top, dir, idx, kpage, shca, mr, 1590 static u64 ehca_reg_mr_dir_sections(int top, u6 argument 2274 ehca_init_bmap(struct ehca_bmap *ehca_bmap, int top, int dir) argument 2294 int top, dir; local 2319 int top, dir, idx; local 2412 int top; local 2445 int top, dir, idx; local [all...] |
/drivers/gpu/drm/qxl/ |
H A D | qxl_draw.c | 92 drawable->self_bitmap_area.top = 0; 199 rect.top = y; 230 drawable->u.copy.src_area.top = 0; 281 int left, right, top, bottom; local 301 top = clips->y1; 309 top = min_t(int, top, (int)clips_ptr->y1); 314 height = bottom - top; 333 drawable_rect.top = top; [all...] |
/drivers/video/fbdev/msm/ |
H A D | msm_fb.c | 74 int top; member in struct:msmfb_info::__anon7162 146 y = msmfb->update_info.top; 151 msmfb->update_info.top = msmfb->yres + 1; 193 static void msmfb_pan_update(struct fb_info *info, uint32_t left, uint32_t top, argument 204 left, top, eright, ebottom, yoffset, pan_display); 254 if (left == 0 && top == 0 && eright == info->var.xres && 267 if (top < msmfb->update_info.top) 268 msmfb->update_info.top = top; 293 msmfb_update(struct fb_info *info, uint32_t left, uint32_t top, uint32_t eright, uint32_t ebottom) argument [all...] |
/drivers/net/ethernet/mellanox/mlx4/ |
H A D | alloc.c | 52 bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top) 62 obj |= bitmap->top; 91 bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top) 104 obj |= bitmap->top; 129 bitmap->top = (bitmap->top + bitmap->max + bitmap->reserved_top) 145 bitmap->top = 0;
|
/drivers/infiniband/hw/mthca/ |
H A D | mthca_allocator.c | 49 alloc->top = (alloc->top + alloc->max) & alloc->mask; 55 obj |= alloc->top; 74 alloc->top = (alloc->top + alloc->max) & alloc->mask; 89 alloc->top = 0;
|
/drivers/media/pci/saa7134/ |
H A D | saa7134-go7007.c | 60 u8 *top; member in struct:saa7134_go7007 250 go7007_parse_video_stream(go, saa->top, PAGE_SIZE); 260 saa->top_dma = dma_map_page(&dev->pci->dev, virt_to_page(saa->top), 449 saa->top = (u8 *)get_zeroed_page(GFP_KERNEL); 450 if (!saa->top) 476 if (saa->top) 477 free_page((unsigned long)saa->top); 499 free_page((unsigned long)saa->top);
|
/drivers/staging/wlan-ng/ |
H A D | prism2sta.c | 684 hw->cap_sup_mfi.top = le16_to_cpu(hw->cap_sup_mfi.top); 690 hw->cap_sup_mfi.top); 707 hw->cap_sup_cfi.top = le16_to_cpu(hw->cap_sup_cfi.top); 713 hw->cap_sup_cfi.top); 730 hw->cap_sup_pri.top = le16_to_cpu(hw->cap_sup_pri.top); 736 hw->cap_sup_pri.top); 753 hw->cap_sup_sta.top [all...] |
/drivers/media/tuners/ |
H A D | mxl5005s.h | 103 u32 top; member in struct:mxl5005s_config
|
/drivers/pci/ |
H A D | bus.c | 287 * @top bus whose devices should be walked 299 void pci_walk_bus(struct pci_bus *top, int (*cb)(struct pci_dev *, void *), argument 307 bus = top; 309 next = top->devices.next; 313 if (bus == top)
|
/drivers/video/fbdev/kyro/ |
H A D | STG4000Interface.h | 56 u32 left, u32 top,
|