Searched refs:PAGE_SIZE (Results 1 - 25 of 876) sorted by last modified time

1234567891011>>

/drivers/staging/zcache/
H A Dzcache-main.c130 * (3) one of PAGE_SIZE/64 "unbuddied" lists indexed by how many chunks
160 #define NCHUNKS (((PAGE_SIZE - sizeof(struct zbud_page)) & \
213 unsigned offset = (unsigned long)zh & (PAGE_SIZE - 1);
243 p += PAGE_SIZE - ((size + CHUNK_SIZE - 1) & CHUNK_MASK);
444 unsigned int out_len = PAGE_SIZE;
464 BUG_ON(out_len != PAGE_SIZE);
685 static unsigned int zv_max_zsize = (PAGE_SIZE / 8) * 7;
691 static unsigned int zv_max_mean_zsize = (PAGE_SIZE / 8) * 5;
748 unsigned int clen = PAGE_SIZE;
762 BUG_ON(clen != PAGE_SIZE);
[all...]
/drivers/staging/zram/
H A Dzram_drv.c99 for (pos = 0; pos != PAGE_SIZE / sizeof(*page); pos++) {
161 if (zram->table[index].size <= PAGE_SIZE / 2)
203 return bvec->bv_len != PAGE_SIZE;
238 uncmem = kmalloc(PAGE_SIZE, GFP_KERNEL);
248 clen = PAGE_SIZE;
280 size_t clen = PAGE_SIZE;
286 memset(mem, 0, PAGE_SIZE);
294 memcpy(mem, cmem, PAGE_SIZE);
333 uncmem = kmalloc(PAGE_SIZE, GFP_KERNEL);
372 ret = lzo1x_1_compress(uncmem, PAGE_SIZE, sr
[all...]
H A Dzram_drv.h50 static const size_t max_zpage_size = PAGE_SIZE / 4 * 3;
/drivers/staging/zsmalloc/
H A Dzsmalloc-main.c177 * where Zp = zspage size = k * PAGE_SIZE where k = 1, 2, ...
179 * For example, for size class of 3/8 * PAGE_SIZE, we should
180 * link together 3 PAGE_SIZE sized pages to form a zspage
193 zspage_size = i * PAGE_SIZE;
328 objs_on_page = (PAGE_SIZE - off) / class->size;
332 if (off < PAGE_SIZE) {
347 off = (off + class->size) % PAGE_SIZE;
401 first_page->objects = class->zspage_order * PAGE_SIZE / class->size;
446 area->vm = alloc_vm_area(2 * PAGE_SIZE, area->vm_ptes);
499 ovhd_size = roundup(sizeof(*pool), PAGE_SIZE);
[all...]
H A Dzsmalloc_int.h65 #define ZS_MAX_ALLOC_SIZE PAGE_SIZE
126 /* Number of PAGE_SIZE sized pages to combine to form a 'zspage' */
/drivers/target/iscsi/
H A Discsi_target.c706 sg = &cmd->t_mem_sg[data_offset / PAGE_SIZE];
707 page_off = (data_offset % PAGE_SIZE);
783 int nents = DIV_ROUND_UP(length, PAGE_SIZE);
799 int buf_size = min_t(int, length, PAGE_SIZE);
H A Discsi_target_configfs.c405 return snprintf(page, PAGE_SIZE, "%s\n", auth->name); \
418 snprintf(auth->name, PAGE_SIZE, "%s", page); \
443 return snprintf(page, PAGE_SIZE, "%d\n", auth->name); \
528 rb = snprintf(page, PAGE_SIZE, \
532 rb = snprintf(page, PAGE_SIZE, "%u\n", \
994 rb = snprintf(page, PAGE_SIZE, "%s\n", param->value); \
1009 buf = kzalloc(PAGE_SIZE, GFP_KERNEL); \
1012 snprintf(buf, PAGE_SIZE, "%s=%s", __stringify(name), page); \
H A Discsi_target_stat.c75 return snprintf(page, PAGE_SIZE, "%u\n", tiqn->tiqn_index);
82 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION);
89 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION);
99 return snprintf(page, PAGE_SIZE, "%u\n", tiqn->tiqn_num_tpg_nps);
106 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_INST_NUM_NODES);
116 return snprintf(page, PAGE_SIZE, "%u\n", tiqn->tiqn_nsessions);
134 return snprintf(page, PAGE_SIZE, "%u\n", sess_err_count);
145 return snprintf(page, PAGE_SIZE, "%u\n",
157 return snprintf(page, PAGE_SIZE, "%s\n",
166 return snprintf(page, PAGE_SIZE, "
[all...]
/drivers/target/loopback/
H A Dtcm_loop.c1036 ret = snprintf(page, PAGE_SIZE, "%s\n",
/drivers/target/
H A Dtarget_core_configfs.c586 rb = snprintf(page, PAGE_SIZE, "%u\n", \
881 if (len + strlen(buf) >= PAGE_SIZE)
926 if (len + strlen(buf) >= PAGE_SIZE) \
932 if (len + strlen(buf) >= PAGE_SIZE) \
938 if (len + strlen(buf) >= PAGE_SIZE) \
1263 if (len + strlen(buf) >= PAGE_SIZE)
1676 return snprintf(page, PAGE_SIZE, "%s\n", se_dev->se_dev_alias);
1727 return snprintf(page, PAGE_SIZE, "%s\n", se_dev->se_dev_udev_path);
2140 if ((cur_len + len) > PAGE_SIZE) {
2552 if ((cur_len + len) > PAGE_SIZE) {
[all...]
H A Dtarget_core_device.c831 * Limit max_sectors to a PAGE_SIZE aligned value for modern
834 tmp = rounddown((max_sectors * block_size), PAGE_SIZE);
885 * Align max_sectors down to PAGE_SIZE to follow transport_allocate_data_tasks()
1220 * Align max_sectors down to PAGE_SIZE to follow transport_allocate_data_tasks()
1268 * Align max_sectors down to PAGE_SIZE to follow transport_allocate_data_tasks()
H A Dtarget_core_pscsi.c972 PAGE_SIZE - 1) >> PAGE_SHIFT;
989 bytes = min_t(unsigned int, len, PAGE_SIZE - off);
H A Dtarget_core_rd.c119 rd_dev->sg_table_count, (unsigned long)page_count * PAGE_SIZE);
187 sg[j].length = PAGE_SIZE;
274 (unsigned long)(rd_dev->rd_page_count * PAGE_SIZE));
365 src_len = PAGE_SIZE - rd_offset;
396 src_len = PAGE_SIZE;
427 req->rd_offset = do_div(tmp, PAGE_SIZE);
518 bl += sprintf(b + bl, " PAGES/PAGE_SIZE: %u*%lu"
520 PAGE_SIZE, rd_dev->sg_table_count);
537 unsigned long long blocks_long = ((rd_dev->rd_page_count * PAGE_SIZE) /
H A Dtarget_core_stat.c92 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index);
106 return snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index);
120 return snprintf(page, PAGE_SIZE, "Target\n");
134 return snprintf(page, PAGE_SIZE, "%u\n", dev->dev_port_count);
188 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index);
202 return snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index);
216 return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT);
250 return snprintf(page, PAGE_SIZE, "%s\n", status);
278 return snprintf(page, PAGE_SIZE, "%u\n", non_accessible_lus);
292 return snprintf(page, PAGE_SIZE, "
[all...]
H A Dtarget_core_transport.c3654 nents = DIV_ROUND_UP(length, PAGE_SIZE);
3665 u32 page_len = min_t(u32, length, PAGE_SIZE);
3839 * This now assumes that passed sg_ents are in PAGE_SIZE chunks
3842 task->task_sg_nents = DIV_ROUND_UP(task->task_size, PAGE_SIZE);
/drivers/target/tcm_fc/
H A Dtfc_conf.c121 len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn);
H A Dtfc_io.c148 PAGE_SIZE << compound_order(page);
154 tlen = min(tlen, (size_t)(PAGE_SIZE -
298 tlen = min(tlen, (size_t)(PAGE_SIZE -
/drivers/tty/
H A Dcyclades.c93 #define SERIAL_XMIT_SIZE (min(PAGE_SIZE, 4096))
/drivers/tty/hvc/
H A Dhvc_iucv.c33 #define MEMPOOL_MIN_NR (PAGE_SIZE / sizeof(struct iucv_tty_buffer)/4)
71 #define SNDBUF_SIZE (PAGE_SIZE) /* must be < MSG_MAX_DATALEN */
985 priv->hvc = hvc_alloc(HVC_IUCV_MAGIC + id, /* PAGE_SIZE */
1173 * (buffer size assumption PAGE_SIZE)
H A Dhvc_xen.c232 info->intf = ioremap(mfn << PAGE_SHIFT, PAGE_SIZE);
469 memset(info->intf, 0, PAGE_SIZE);
H A Dhvcs.c496 return snprintf(buf, PAGE_SIZE, "%d\n", hvcs_rescan_status);
/drivers/tty/serial/
H A Damba-pl011.c239 #define PL011_DMA_BUFFER_SIZE PAGE_SIZE
H A Dbfin_uart.c73 #define DMA_RX_YCOUNT (PAGE_SIZE / DMA_RX_XCOUNT)
631 uart->rx_dma_buf.buf = (unsigned char *)dma_alloc_coherent(NULL, PAGE_SIZE, &dma_handle, GFP_DMA);
767 dma_free_coherent(NULL, PAGE_SIZE, uart->rx_dma_buf.buf, 0);
H A Dimx.c1484 base = ioremap(res->start, PAGE_SIZE);
H A Dmrst_max3110.c180 xmit->head = (xmit->head + 1) & (PAGE_SIZE - 1);

Completed in 1239 milliseconds

1234567891011>>