Searched defs:amount (Results 1 - 15 of 15) sorted by relevance

/drivers/gpu/drm/ttm/
H A Dttm_memory.c452 uint64_t amount)
462 zone->used_mem -= amount;
468 uint64_t amount)
470 return ttm_mem_global_free_zone(glob, NULL, amount);
476 uint64_t amount, bool reserve)
501 zone->used_mem += amount;
450 ttm_mem_global_free_zone(struct ttm_mem_global *glob, struct ttm_mem_zone *single_zone, uint64_t amount) argument
467 ttm_mem_global_free(struct ttm_mem_global *glob, uint64_t amount) argument
474 ttm_mem_global_reserve(struct ttm_mem_global *glob, struct ttm_mem_zone *single_zone, uint64_t amount, bool reserve) argument
/drivers/pci/hotplug/
H A Dibmphp_pci.c1071 * This function adds up the amount of resources needed behind the PPB bridge
1074 * Ouput: amount of resources needed
1095 struct res_needed *amount; local
1097 amount = kzalloc(sizeof(*amount), GFP_KERNEL);
1098 if (amount == NULL)
1106 amount->devices[device] = 0;
1122 amount->not_correct = 1;
1123 return amount;
1130 amount
[all...]
/drivers/usb/misc/
H A Dadutux.c440 int amount = bytes_to_read < data_in_secondary ? bytes_to_read : data_in_secondary; local
441 i = copy_to_user(buffer, dev->read_buffer_secondary+dev->secondary_head, amount);
446 dev->secondary_head += (amount - i);
447 bytes_read += (amount - i);
448 bytes_to_read -= (amount - i);
/drivers/gpu/drm/nouveau/
H A Dnouveau_bo.c537 u32 amount, stride, height; local
539 amount = min(length, (u64)(4 * 1024 * 1024));
541 height = amount / stride;
607 length -= amount;
608 src_offset += amount;
609 dst_offset += amount;
H A Dnouveau_bios.c2373 /* Probe amount of installed memory */
2403 uint32_t amount, off; local
2417 amount = bios_rd32(bios, NV04_PFB_FIFO_DATA);
2418 for (off = amount; off > 0x2000000; off -= 0x2000000)
2421 amount = bios_rd32(bios, NV04_PFB_FIFO_DATA);
2422 if (amount != peek_fb(dev, fb, amount - 4))
2440 * has (on nv10 and better chipsets the amount of installed VRAM is
/drivers/mmc/host/
H A Dat91_mci.c233 int amount; local
239 amount = min(size, sg->length);
240 size -= amount;
245 for (index = 0; index < (amount / 4); index++)
249 memcpy(tmpv, sgbuffer, amount);
250 tmpv += amount;
299 int amount; local
305 amount = min(size, sg->length);
306 size -= amount;
310 for (index = 0; index < (amount /
[all...]
/drivers/gpu/drm/radeon/
H A Datombios_crtc.c460 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount);
465 args.v3.usSpreadSpectrumAmount = cpu_to_le16(ss->amount);
485 args.v2.usSpreadSpectrumAmount = cpu_to_le16(ss->amount);
490 args.v2.usSpreadSpectrumAmount = cpu_to_le16(ss->amount);
1049 /* calculate ss amount and step size */
1052 u32 amount = (((fb_div * 10) + frac_fb_div) * ss.percentage) / 10000; local
1053 ss.amount = (amount / 10) & ATOM_PPLL_SS_AMOUNT_V2_FBDIV_MASK;
1054 ss.amount |= ((amount
[all...]
H A Dradeon_mode.h348 uint16_t amount; member in struct:radeon_atom_ss
/drivers/scsi/
H A Dfdomain.c579 static void do_pause(unsigned amount) /* Pause for amount*10 milliseconds */ argument
581 mdelay(10*amount);
H A Dinitio.c256 static void initio_do_pause(unsigned amount) argument
258 /* Pause for amount jiffies */
259 unsigned long the_time = jiffies + amount;
H A Dfd_mcs.c331 static void do_pause(unsigned amount) argument
332 { /* Pause for amount*10 milliseconds */
335 } while (--amount);
/drivers/net/wireless/bcmdhd/
H A Dbcmutils.c1963 bcm_inc_bytes(uchar *num, int num_bytes, uint8 amount) argument
1968 num[i] += amount;
1969 if (num[i] >= amount)
1971 amount = 1;
/drivers/usb/core/
H A Ddevio.c112 /* Limit on the total amount of memory we can allocate for transfers */
124 static int usbfs_increase_memory_usage(unsigned amount) argument
138 atomic_add(amount, &usbfs_memory_usage);
141 atomic_sub(amount, &usbfs_memory_usage);
146 static void usbfs_decrease_memory_usage(unsigned amount) argument
148 atomic_sub(amount, &usbfs_memory_usage);
/drivers/usb/gadget/
H A Df_mass_storage.c747 unsigned int amount; local
783 * Try to read the remaining amount.
787 amount = min(amount_left, FSG_BUFLEN);
788 amount = min((loff_t)amount,
803 if (amount == 0) {
818 amount, &file_offset_tmp);
819 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount,
827 } else if (nread < amount) {
829 (int)nread, amount);
878 unsigned int amount; local
1094 unsigned int amount; local
1585 u32 amount; local
[all...]
H A Dfile_storage.c1161 unsigned int amount; local
1193 * Try to read the remaining amount.
1197 amount = min((unsigned int) amount_left, mod_data.buflen);
1198 amount = min((loff_t) amount,
1211 if (amount == 0) {
1225 amount, &file_offset_tmp);
1226 VLDBG(curlun, "file read %u @ %llu -> %d\n", amount,
1236 } else if (nread < amount) {
1238 (int) nread, amount);
1284 unsigned int amount; local
1491 unsigned int amount; local
1969 u32 amount; local
[all...]

Completed in 448 milliseconds