/drivers/staging/zcache/ |
H A D | zcache-main.c | 130 * (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 D | zram_drv.c | 99 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 D | zram_drv.h | 50 static const size_t max_zpage_size = PAGE_SIZE / 4 * 3;
|
/drivers/staging/zsmalloc/ |
H A D | zsmalloc-main.c | 177 * 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 D | zsmalloc_int.h | 65 #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 D | iscsi_target.c | 706 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 D | iscsi_target_configfs.c | 405 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 D | iscsi_target_stat.c | 75 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 D | tcm_loop.c | 1036 ret = snprintf(page, PAGE_SIZE, "%s\n",
|
/drivers/target/ |
H A D | target_core_configfs.c | 586 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 D | target_core_device.c | 831 * 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 D | target_core_pscsi.c | 972 PAGE_SIZE - 1) >> PAGE_SHIFT; 989 bytes = min_t(unsigned int, len, PAGE_SIZE - off);
|
H A D | target_core_rd.c | 119 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 D | target_core_stat.c | 92 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 D | target_core_transport.c | 3654 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 D | tfc_conf.c | 121 len = ft_format_wwn(buf, PAGE_SIZE - 2, *wwn);
|
H A D | tfc_io.c | 148 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 D | cyclades.c | 93 #define SERIAL_XMIT_SIZE (min(PAGE_SIZE, 4096))
|
/drivers/tty/hvc/ |
H A D | hvc_iucv.c | 33 #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 D | hvc_xen.c | 232 info->intf = ioremap(mfn << PAGE_SHIFT, PAGE_SIZE); 469 memset(info->intf, 0, PAGE_SIZE);
|
H A D | hvcs.c | 496 return snprintf(buf, PAGE_SIZE, "%d\n", hvcs_rescan_status);
|
/drivers/tty/serial/ |
H A D | amba-pl011.c | 239 #define PL011_DMA_BUFFER_SIZE PAGE_SIZE
|
H A D | bfin_uart.c | 73 #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 D | imx.c | 1484 base = ioremap(res->start, PAGE_SIZE);
|
H A D | mrst_max3110.c | 180 xmit->head = (xmit->head + 1) & (PAGE_SIZE - 1);
|