Searched refs:PAGE_SIZE (Results 1 - 25 of 1076) sorted by relevance

1234567891011>>

/drivers/gpu/drm/radeon/
H A Ddrm_buffer.h52 return buf->iterator / PAGE_SIZE;
59 return buf->iterator & (PAGE_SIZE - 1);
121 * multiples of dword and PAGE_SIZE is multiple dword.
131 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)];
145 return &buffer->data[iter / PAGE_SIZE][iter & (PAGE_SIZE - 1)];
H A Ddrm_buffer.c46 int nr_pages = size / PAGE_SIZE + 1;
66 kmalloc(min(PAGE_SIZE, size - idx * PAGE_SIZE),
100 int nr_pages = size / PAGE_SIZE + 1;
113 user_data + idx * PAGE_SIZE,
114 min(PAGE_SIZE, size - idx * PAGE_SIZE))) {
134 int nr_pages = buf->size / PAGE_SIZE + 1;
162 if (idx + objsize <= PAGE_SIZE) {
166 int beginsz = PAGE_SIZE
[all...]
/drivers/scsi/
H A Dosst_options.h51 #define OSST_MAX_SG (((OSST_BUFFER_BLOCKS*1024) / PAGE_SIZE) + 1)
55 #define OSST_FIRST_SG ((OSST_BUFFER_BLOCKS*1024) / PAGE_SIZE)
/drivers/media/common/siano/
H A Dsmsdvb-debugfs.c44 char stats_data[PAGE_SIZE];
65 n += snprintf(&buf[n], PAGE_SIZE - n,
67 n += snprintf(&buf[n], PAGE_SIZE - n,
69 n += snprintf(&buf[n], PAGE_SIZE - n,
71 n += snprintf(&buf[n], PAGE_SIZE - n,
73 n += snprintf(&buf[n], PAGE_SIZE - n,
75 n += snprintf(&buf[n], PAGE_SIZE - n,
77 n += snprintf(&buf[n], PAGE_SIZE - n,
79 n += snprintf(&buf[n], PAGE_SIZE - n,
81 n += snprintf(&buf[n], PAGE_SIZE
[all...]
/drivers/scsi/fnic/
H A Dfnic_attrs.c29 return snprintf(buf, PAGE_SIZE, "%s\n", fnic_state_str[fnic->state]);
35 return snprintf(buf, PAGE_SIZE, "%s\n", DRV_VERSION);
43 return snprintf(buf, PAGE_SIZE, "%s\n", (lp->link_up)
/drivers/block/zram/
H A Dzcomp_lz4.c30 return lz4_compress(src, PAGE_SIZE, dst, dst_len, private);
36 size_t dst_len = PAGE_SIZE;
H A Dzcomp_lzo.c29 int ret = lzo1x_1_compress(src, PAGE_SIZE, dst, dst_len, private);
36 size_t dst_len = PAGE_SIZE;
/drivers/misc/cxl/
H A Dsysfs.c26 return scnprintf(buf, PAGE_SIZE, "%i.%i\n", adapter->caia_major,
36 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->psl_rev);
45 return scnprintf(buf, PAGE_SIZE, "%i\n", adapter->base_image);
55 return scnprintf(buf, PAGE_SIZE, "user\n");
56 return scnprintf(buf, PAGE_SIZE, "factory\n");
75 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->adapter->ps_size);
84 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_offset);
93 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size);
112 return scnprintf(buf, PAGE_SIZE, "%llu\n", afu->pp_size);
113 return scnprintf(buf, PAGE_SIZE, "
[all...]
/drivers/s390/char/
H A Dhmcdrv_cache.h14 #define HMCDRV_CACHE_SIZE_DFLT (MAX_ORDER_NR_PAGES * PAGE_SIZE / 2UL)
/drivers/w1/slaves/
H A Dw1_ds2423.c58 c = PAGE_SIZE;
78 c -= snprintf(out_buf + PAGE_SIZE - c,
87 c -= snprintf(out_buf + PAGE_SIZE - c,
110 c -= snprintf(out_buf + PAGE_SIZE - c,
113 c -= snprintf(out_buf + PAGE_SIZE - c,
119 c -= snprintf(out_buf + PAGE_SIZE - c, c, "Connection error");
122 return PAGE_SIZE - c;
/drivers/scsi/qla4xxx/
H A Dql4_attr.c160 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d (%x)\n",
164 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d.%02d\n",
174 return snprintf(buf, PAGE_SIZE, "%s\n", ha->serial_number);
182 return snprintf(buf, PAGE_SIZE, "%d.%02d\n", ha->fw_info.iscsi_major,
191 return snprintf(buf, PAGE_SIZE, "%d.%02d.%02d.%02d\n",
201 return snprintf(buf, PAGE_SIZE, "0x%08X\n", ha->board_id);
211 return snprintf(buf, PAGE_SIZE, "0x%08X%8X\n", ha->firmware_state,
224 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_cnt);
236 return snprintf(buf, PAGE_SIZE, "0x%04X\n", ha->phy_port_num);
248 return snprintf(buf, PAGE_SIZE, "
[all...]
/drivers/target/iscsi/
H A Discsi_target_stat.c73 return snprintf(page, PAGE_SIZE, "%u\n", tiqn->tiqn_index);
80 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION);
87 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_DRAFT20_VERSION);
97 return snprintf(page, PAGE_SIZE, "%u\n", tiqn->tiqn_num_tpg_nps);
104 return snprintf(page, PAGE_SIZE, "%u\n", ISCSI_INST_NUM_NODES);
114 return snprintf(page, PAGE_SIZE, "%u\n", tiqn->tiqn_nsessions);
132 return snprintf(page, PAGE_SIZE, "%u\n", sess_err_count);
143 return snprintf(page, PAGE_SIZE, "%u\n",
155 return snprintf(page, PAGE_SIZE, "%s\n",
164 return snprintf(page, PAGE_SIZE, "
[all...]
/drivers/acpi/
H A Dbgrt.c22 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->version);
29 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->status);
36 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->image_type);
43 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->image_offset_x);
50 return snprintf(buf, PAGE_SIZE, "%d\n", bgrt_tab->image_offset_y);
/drivers/char/
H A Duv_mmtimer.c102 PAGE_SIZE) / 8;
151 if (vma->vm_end - vma->vm_start != PAGE_SIZE)
157 if (PAGE_SIZE > (1 << 16))
163 uv_mmtimer_addr &= ~(PAGE_SIZE - 1);
167 PAGE_SIZE, vma->vm_page_prot)) {
/drivers/gpu/drm/
H A Ddrm_scatter.c104 pages = (request->size + PAGE_SIZE - 1) / PAGE_SIZE;
140 i += PAGE_SIZE, j++) {
163 j < PAGE_SIZE / sizeof(unsigned long);
168 (PAGE_SIZE * i));
170 j < PAGE_SIZE / sizeof(unsigned long);
181 j < PAGE_SIZE / sizeof(unsigned long);
H A Dati_pcigart.c45 PAGE_SIZE);
82 PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
143 max_real_pages = max_ati_pages / (PAGE_SIZE / ATI_PCIGART_PAGE_SIZE);
157 0, PAGE_SIZE, PCI_DMA_BIDIRECTIONAL);
167 for (j = 0; j < (PAGE_SIZE / ATI_PCIGART_PAGE_SIZE); j++) {
/drivers/target/
H A Dtarget_core_stat.c83 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index);
93 return snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index);
100 return snprintf(page, PAGE_SIZE, "Target\n");
110 return snprintf(page, PAGE_SIZE, "%u\n", dev->dev_port_count);
160 return snprintf(page, PAGE_SIZE, "%u\n", hba->hba_index);
170 return snprintf(page, PAGE_SIZE, "%u\n", dev->dev_index);
177 return snprintf(page, PAGE_SIZE, "%u\n", LU_COUNT);
188 return snprintf(page, PAGE_SIZE, "activated");
190 return snprintf(page, PAGE_SIZE, "deactivated");
206 return snprintf(page, PAGE_SIZE, "
[all...]
/drivers/cpufreq/
H A Dcpufreq_stats.c160 len += scnprintf(buf + len, PAGE_SIZE - len, "CPU%d:", cpu);
162 len += scnprintf(buf + len, PAGE_SIZE - len,
165 len += scnprintf(buf + len, PAGE_SIZE - len, "\n");
179 len += scnprintf(buf + len, PAGE_SIZE - len, "freq\t\t");
181 len += scnprintf(buf + len, PAGE_SIZE - len, "cpu%d\t\t", cpu);
190 len += scnprintf(buf + len, PAGE_SIZE - len, "\n%u\t\t", freq);
198 len += scnprintf(buf + len, PAGE_SIZE - len,
202 len += scnprintf(buf + len, PAGE_SIZE - len,
210 len += scnprintf(buf + len, PAGE_SIZE - len, "\n");
224 len += snprintf(buf + len, PAGE_SIZE
[all...]
/drivers/staging/lustre/lustre/include/linux/
H A Dlustre_patchless_compat.h58 cancel_dirty_page(page, PAGE_SIZE);
/drivers/char/tpm/
H A Dtpm_ppi.c63 return scnprintf(buf, PAGE_SIZE, "%s\n", tpm_ppi_version);
88 size = scnprintf(buf, PAGE_SIZE, "%llu\n",
185 status = scnprintf(buf, PAGE_SIZE, "%d: %s\n", ret, info[ret]);
187 status = scnprintf(buf, PAGE_SIZE, "%d: %s\n", ret,
227 status = scnprintf(buf, PAGE_SIZE, "%llu %s\n", req,
230 status = scnprintf(buf, PAGE_SIZE, "%llu %s\n", req,
233 status = scnprintf(buf, PAGE_SIZE, "%llu %s\n", req,
236 status = scnprintf(buf, PAGE_SIZE, "%llu %llu: %s\n",
239 status = scnprintf(buf, PAGE_SIZE, "%llu %llu: %s\n",
242 status = scnprintf(buf, PAGE_SIZE, "
[all...]
/drivers/infiniband/hw/mthca/
H A Dmthca_allocator.c116 #define MTHCA_ARRAY_MASK (PAGE_SIZE / sizeof (void *) - 1)
162 int npage = (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE;
181 for (i = 0; i < (nent * sizeof (void *) + PAGE_SIZE - 1) / PAGE_SIZE; ++i)
231 npages = (size + PAGE_SIZE - 1) / PAGE_SIZE;
248 dma_alloc_coherent(&dev->pdev->dev, PAGE_SIZE,
294 for (i = 0; i < (size + PAGE_SIZE - 1) / PAGE_SIZE;
[all...]
/drivers/lguest/
H A Dcore.c55 if (end_switcher_text - start_switcher_text > PAGE_SIZE) {
91 switcher_addr = FIXADDR_START - (TOTAL_SWITCHER_PAGES+1)*PAGE_SIZE;
99 switcher_vma = __get_vm_area(TOTAL_SWITCHER_PAGES * PAGE_SIZE,
101 + (TOTAL_SWITCHER_PAGES+1) * PAGE_SIZE);
176 return (addr+len) / PAGE_SIZE < lg->pfn_limit && (addr+len >= addr);
/drivers/net/wireless/b43legacy/
H A Dsysfs.c89 count = snprintf(buf, PAGE_SIZE, "0 (No Interference"
93 count = snprintf(buf, PAGE_SIZE, "1 (Non-WLAN Interference"
97 count = snprintf(buf, PAGE_SIZE, "2 (WLAN Interference"
170 count = snprintf(buf, PAGE_SIZE, "1 (Short Preamble"
173 count = snprintf(buf, PAGE_SIZE, "0 (Short Preamble"
/drivers/infiniband/hw/ipath/
H A Dipath_sysfs.c79 return scnprintf(buf, PAGE_SIZE, "%s", ib_ipath_version);
84 return scnprintf(buf, PAGE_SIZE, "%d\n",
100 ret = scnprintf(buf, PAGE_SIZE, "0x%llx\n",
139 if (any && strlcat(buf, " ", PAGE_SIZE) >=
140 PAGE_SIZE)
144 PAGE_SIZE) >= PAGE_SIZE)
151 strlcat(buf, "\n", PAGE_SIZE);
165 return scnprintf(buf, PAGE_SIZE, "%s", dd->ipath_boardversion);
174 return scnprintf(buf, PAGE_SIZE, "
[all...]
/drivers/misc/mic/host/
H A Dmic_sysfs.c88 return scnprintf(buf, PAGE_SIZE, "%s\n", card);
117 return scnprintf(buf, PAGE_SIZE, "%s\n", string);
129 return scnprintf(buf, PAGE_SIZE, "%s\n",
180 return scnprintf(buf, PAGE_SIZE, "%s\n",
197 return scnprintf(buf, PAGE_SIZE, "%s\n", cmdline);
243 return scnprintf(buf, PAGE_SIZE, "%s\n", firmware);
288 return scnprintf(buf, PAGE_SIZE, "%s\n", ramdisk);
334 return scnprintf(buf, PAGE_SIZE, "%s\n", bootmode);
380 return scnprintf(buf, PAGE_SIZE, "%p\n", mdev->log_buf_addr);
414 return scnprintf(buf, PAGE_SIZE, "
[all...]

Completed in 566 milliseconds

1234567891011>>