Searched defs:alloc (Results 1 - 25 of 37) sorted by relevance

12

/drivers/gpu/drm/nouveau/core/include/subdev/
H A Dbar.h13 int (*alloc)(struct nouveau_bar *, struct nouveau_object *, member in struct:nouveau_bar
H A Dinstmem.h31 int (*alloc)(struct nouveau_instmem *, struct nouveau_object *, member in struct:nouveau_instmem
/drivers/scsi/arm/
H A Dqueue.h17 void *alloc; /* start of allocated mem */ member in struct:__anon5179
/drivers/infiniband/hw/cxgb4/
H A Did_table.c44 u32 c4iw_id_alloc(struct c4iw_id_table *alloc) argument
49 spin_lock_irqsave(&alloc->lock, flags);
51 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
52 if (obj >= alloc->max)
53 obj = find_first_zero_bit(alloc->table, alloc->max);
55 if (obj < alloc->max) {
56 if (alloc
71 c4iw_id_free(struct c4iw_id_table *alloc, u32 obj) argument
83 c4iw_id_table_alloc(struct c4iw_id_table *alloc, u32 start, u32 num, u32 reserved, u32 flags) argument
109 c4iw_id_table_free(struct c4iw_id_table *alloc) argument
[all...]
/drivers/char/agp/
H A Dcompat_ioctl.c151 struct agp_allocate32 alloc; local
154 if (copy_from_user(&alloc, arg, sizeof(alloc)))
157 memory = agp_allocate_memory_wrap(alloc.pg_count, alloc.type);
162 alloc.key = memory->key;
163 alloc.physical = memory->physical;
165 if (copy_to_user(arg, &alloc, sizeof(alloc))) {
H A Dfrontend.c877 struct agp_allocate alloc; local
880 if (copy_from_user(&alloc, arg, sizeof(struct agp_allocate)))
883 if (alloc.type >= AGP_USER_TYPES)
886 memory = agp_allocate_memory_wrap(alloc.pg_count, alloc.type);
891 alloc.key = memory->key;
892 alloc.physical = memory->physical;
894 if (copy_to_user(arg, &alloc, sizeof(struct agp_allocate))) {
/drivers/gpu/drm/radeon/
H A Dradeon_mem.c223 drm_radeon_mem_alloc_t *alloc = data; local
231 heap = get_heap(dev_priv, alloc->region);
238 if (alloc->alignment < 12)
239 alloc->alignment = 12;
241 block = alloc_block(*heap, alloc->size, alloc->alignment, file_priv);
246 if (copy_to_user(alloc->region_offset, &block->start,
H A Dradeon_state.c2136 drm_radeon_surface_alloc_t *alloc = data; local
2138 if (alloc_surface(alloc, dev_priv, file_priv) == -1)
/drivers/infiniband/hw/mthca/
H A Dmthca_allocator.c40 u32 mthca_alloc(struct mthca_alloc *alloc) argument
45 spin_lock_irqsave(&alloc->lock, flags);
47 obj = find_next_zero_bit(alloc->table, alloc->max, alloc->last);
48 if (obj >= alloc->max) {
49 alloc->top = (alloc->top + alloc->max) & alloc
64 mthca_free(struct mthca_alloc *alloc, u32 obj) argument
79 mthca_alloc_init(struct mthca_alloc *alloc, u32 num, u32 mask, u32 reserved) argument
105 mthca_alloc_cleanup(struct mthca_alloc *alloc) argument
[all...]
H A Dmthca_dev.h195 struct mthca_alloc alloc; member in struct:mthca_uar_table
201 struct mthca_alloc alloc; member in struct:mthca_pd_table
227 struct mthca_alloc alloc; member in struct:mthca_eq_table
240 struct mthca_alloc alloc; member in struct:mthca_cq_table
247 struct mthca_alloc alloc; member in struct:mthca_srq_table
254 struct mthca_alloc alloc; member in struct:mthca_qp_table
270 struct mthca_alloc alloc; member in struct:mthca_av_table
275 struct mthca_alloc alloc; member in struct:mthca_mcg_table
414 u32 mthca_alloc(struct mthca_alloc *alloc);
415 void mthca_free(struct mthca_alloc *alloc, u3
[all...]
/drivers/media/radio/
H A Dradio-isa.h58 struct radio_isa_card *(*alloc)(void); member in struct:radio_isa_ops
/drivers/uwb/
H A Ddrp-ie.c299 const struct uwb_drp_alloc *alloc; local
308 alloc = &drp_ie->allocs[cnt];
309 zone_bm = le16_to_cpu(alloc->zone_bm);
310 mas_bm = le16_to_cpu(alloc->mas_bm);
/drivers/base/
H A Dcomponent.c22 size_t alloc; member in struct:component_match
237 if (match && match->alloc == num)
251 new->alloc = num;
269 if (!match || match->num == match->alloc) {
270 size_t new_size = match ? match->alloc + 16 : 15;
/drivers/md/bcache/
H A Dalloc.c536 struct bkey *alloc)
549 if (!ret->sectors_free && KEY_PTRS(alloc)) {
551 bkey_copy(&ret->key, alloc);
552 bkey_init(alloc);
575 BKEY_PADDED(key) alloc;
581 * and then retry. KEY_PTRS() indicates whether alloc points to
585 bkey_init(&alloc.key);
588 while (!(b = pick_data_bucket(c, k, write_point, &alloc.key))) {
595 if (bch_bucket_alloc_set(c, watermark, &alloc.key, 1, wait))
606 if (KEY_PTRS(&alloc
533 pick_data_bucket(struct cache_set *c, const struct bkey *search, unsigned write_point, struct bkey *alloc) argument
[all...]
/drivers/video/fbdev/omap2/omapfb/
H A Domapfb.h62 bool alloc; /* allocated by the driver */ member in struct:omapfb2_mem_region
/drivers/iommu/
H A Damd_iommu_v2.c175 int pasid, bool alloc)
192 if (!alloc)
174 __get_pasid_state_ptr(struct device_state *dev_state, int pasid, bool alloc) argument
/drivers/media/usb/em28xx/
H A Dem28xx-core.c908 em28xx_errdev("cannot alloc memory for usb buffers\n");
934 em28xx_err("cannot alloc usb_ctl.urb %i\n", i);
1000 int alloc; local
1009 /* no need to free/alloc usb buffers in digital mode */
1010 alloc = 0;
1013 alloc = 1;
1016 if (alloc) {
/drivers/staging/lustre/lustre/lov/
H A Dlov_io.c538 int idx, int alloc)
540 return alloc ? &qin[idx] : &ld->ld_emrg[idx]->emrg_page_list;
572 #define QIN(stripe) lov_io_submit_qin(ld, stripes_qin, stripe, alloc)
575 int alloc = local
593 if (alloc) {
647 if (alloc) {
536 lov_io_submit_qin(struct lov_device *ld, struct cl_page_list *qin, int idx, int alloc) argument
/drivers/tty/vt/
H A Dvt_ioctl.c1432 int vt_move_to_console(unsigned int vt, int alloc) argument
1444 if (alloc && vc_allocate(vt)) {
/drivers/misc/
H A Dvmw_balloon.c156 unsigned int alloc; member in struct:vmballoon_stats
420 STATS_INC(b->stats.alloc);
728 stats->alloc, stats->alloc_fail,
/drivers/net/ethernet/
H A Dec_bhf.c126 u8 *alloc; member in struct:bhf_dma
350 buf->alloc = dma_alloc_coherent(dev, buf->alloc_len, &buf->alloc_phys,
352 if (buf->alloc == NULL) {
358 buf->buf = buf->alloc + (buf->buf_phys - buf->alloc_phys);
436 dma_free_coherent(dev, priv->rx_buf.alloc_len, priv->rx_buf.alloc,
454 priv->tx_buf.alloc, priv->tx_buf.alloc_phys);
456 priv->rx_buf.alloc, priv->rx_buf.alloc_phys);
/drivers/net/wireless/iwlwifi/pcie/
H A Dtx.c620 /* De-alloc array of command/tx buffers */
627 /* De-alloc circular buffer of TFDs */
814 /*It is not allowed to alloc twice, so warn when this happens.
851 IWL_ERR(trans, "Tx %d queue alloc failed\n", txq_id);
868 bool alloc = false; local
874 alloc = true;
904 if (alloc)
/drivers/s390/cio/
H A Dcmf.c108 * @alloc: allocate memory for a channel measurement block,
110 * @free: free memory allocated with @alloc
119 int (*alloc) (struct ccw_device *); member in struct:cmb_operations
766 .alloc = alloc_cmb,
1033 .alloc = alloc_cmbe,
1223 ret = cmbops->alloc(cdev);
/drivers/video/fbdev/omap/
H A Domapfb.h62 unsigned alloc:1; /* allocated by the driver */ member in struct:omapfb_mem_region
/drivers/input/touchscreen/
H A Dusbtouchscreen.c99 int (*alloc) (struct usbtouch_usb *usbtouch); member in struct:usbtouch_device_info
1268 .alloc = nexio_alloc,
1655 if (type->alloc) {
1656 err = type->alloc(usbtouch);
1659 "%s - type->alloc() failed, err: %d\n",

Completed in 4755 milliseconds

12