/linux-2.6.39/drivers/media/rc/ |
D | streamzap.c | 139 static void sz_push(struct streamzap_ir *sz, struct ir_raw_event rawir) in sz_push() argument 141 dev_dbg(sz->dev, "Storing %s with duration %u us\n", in sz_push() 143 ir_raw_event_store_with_filter(sz->rdev, &rawir); in sz_push() 146 static void sz_push_full_pulse(struct streamzap_ir *sz, in sz_push_full_pulse() argument 151 if (sz->idle) { in sz_push_full_pulse() 154 sz->signal_last = sz->signal_start; in sz_push_full_pulse() 155 do_gettimeofday(&sz->signal_start); in sz_push_full_pulse() 157 deltv = sz->signal_start.tv_sec - sz->signal_last.tv_sec; in sz_push_full_pulse() 164 sz->signal_start.tv_usec - in sz_push_full_pulse() 165 sz->signal_last.tv_usec); in sz_push_full_pulse() [all …]
|
/linux-2.6.39/drivers/char/ |
D | mem.c | 40 unsigned long sz; in size_inside_page() local 42 sz = PAGE_SIZE - (start & (PAGE_SIZE - 1)); in size_inside_page() 44 return min(sz, size); in size_inside_page() 97 ssize_t read, sz; in read_mem() local 106 sz = size_inside_page(p, count); in read_mem() 107 if (sz > 0) { in read_mem() 108 if (clear_user(buf, sz)) in read_mem() 110 buf += sz; in read_mem() 111 p += sz; in read_mem() 112 count -= sz; in read_mem() [all …]
|
/linux-2.6.39/net/xfrm/ |
D | xfrm_hash.c | 15 struct hlist_head *xfrm_hash_alloc(unsigned int sz) in xfrm_hash_alloc() argument 19 if (sz <= PAGE_SIZE) in xfrm_hash_alloc() 20 n = kzalloc(sz, GFP_KERNEL); in xfrm_hash_alloc() 22 n = vzalloc(sz); in xfrm_hash_alloc() 26 get_order(sz)); in xfrm_hash_alloc() 31 void xfrm_hash_free(struct hlist_head *n, unsigned int sz) in xfrm_hash_free() argument 33 if (sz <= PAGE_SIZE) in xfrm_hash_free() 38 free_pages((unsigned long)n, get_order(sz)); in xfrm_hash_free()
|
/linux-2.6.39/drivers/staging/rtl8712/ |
D | osdep_service.h | 196 static inline u8 *_malloc(u32 sz) in _malloc() argument 198 return kmalloc(sz, GFP_ATOMIC); in _malloc() 218 static inline u32 _RND8(u32 sz) in _RND8() argument 220 return ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3; in _RND8() 223 static inline u32 _RND128(u32 sz) in _RND128() argument 225 return ((sz >> 7) + ((sz & 127) ? 1 : 0)) << 7; in _RND128() 228 static inline u32 _RND256(u32 sz) in _RND256() argument 230 return ((sz >> 8) + ((sz & 255) ? 1 : 0)) << 8; in _RND256() 233 static inline u32 _RND512(u32 sz) in _RND512() argument 235 return ((sz >> 9) + ((sz & 511) ? 1 : 0)) << 9; in _RND512()
|
D | rtl871x_recv.h | 169 static inline u8 *recvframe_push(union recv_frame *precvframe, sint sz) in recvframe_push() argument 182 precvframe->u.hdr.rx_data -= sz ; in recvframe_push() 184 precvframe->u.hdr.rx_data += sz ; in recvframe_push() 187 precvframe->u.hdr.len += sz; in recvframe_push() 191 static inline u8 *recvframe_pull(union recv_frame *precvframe, sint sz) in recvframe_pull() argument 197 precvframe->u.hdr.rx_data += sz; in recvframe_pull() 199 precvframe->u.hdr.rx_data -= sz; in recvframe_pull() 202 precvframe->u.hdr.len -= sz; in recvframe_pull() 206 static inline u8 *recvframe_put(union recv_frame *precvframe, sint sz) in recvframe_put() argument 216 precvframe->u.hdr.rx_tail += sz; in recvframe_put() [all …]
|
D | ieee80211.c | 176 int sz = 0, rateLen; in r8712_generate_ie() local 186 sz += 8; in r8712_generate_ie() 187 ie += sz; in r8712_generate_ie() 190 sz += 2; in r8712_generate_ie() 199 sz += 2; in r8712_generate_ie() 203 pdev_network->Ssid.Ssid, &sz); in r8712_generate_ie() 210 pdev_network->SupportedRates, &sz); in r8712_generate_ie() 212 (pdev_network->SupportedRates + 8), &sz); in r8712_generate_ie() 215 rateLen, pdev_network->SupportedRates, &sz); in r8712_generate_ie() 218 (u8 *)&(pdev_network->Configuration.DSConfig), &sz); in r8712_generate_ie() [all …]
|
/linux-2.6.39/drivers/mmc/card/ |
D | mmc_test.c | 375 static int mmc_test_map_sg(struct mmc_test_mem *mem, unsigned long sz, in mmc_test_map_sg() argument 390 if (len > sz) in mmc_test_map_sg() 391 len = sz; in mmc_test_map_sg() 401 sz -= len; in mmc_test_map_sg() 403 if (!sz) in mmc_test_map_sg() 406 } while (sz && repeat); in mmc_test_map_sg() 408 if (sz) in mmc_test_map_sg() 422 unsigned long sz, in mmc_test_map_sg_max_scatter() argument 436 while (sz) { in mmc_test_map_sg_max_scatter() 439 while (sz && cnt) { in mmc_test_map_sg_max_scatter() [all …]
|
/linux-2.6.39/arch/arm/include/asm/ |
D | bitops.h | 201 #define find_first_zero_bit(p,sz) _find_first_zero_bit_le(p,sz) argument 202 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_le(p,sz,off) argument 203 #define find_first_bit(p,sz) _find_first_bit_le(p,sz) argument 204 #define find_next_bit(p,sz,off) _find_next_bit_le(p,sz,off) argument 212 #define find_first_zero_bit(p,sz) _find_first_zero_bit_be(p,sz) argument 213 #define find_next_zero_bit(p,sz,off) _find_next_zero_bit_be(p,sz,off) argument 214 #define find_first_bit(p,sz) _find_first_bit_be(p,sz) argument 215 #define find_next_bit(p,sz,off) _find_next_bit_be(p,sz,off) argument
|
/linux-2.6.39/net/netfilter/ |
D | nf_conntrack_h323_asn1.c | 85 unsigned char sz; member 312 switch (f->sz) { in decode_int() 338 INC_BITS(bs, f->sz); in decode_int() 357 INC_BITS(bs, f->sz); in decode_enum() 373 switch (f->sz) { in decode_bitstr() 407 len = get_bits(bs, f->sz) + f->lb; in decode_numstr() 424 switch (f->sz) { in decode_octstr() 452 len = get_bits(bs, f->sz) + f->lb; in decode_octstr() 473 switch (f->sz) { in decode_bmpstr() 480 len = get_bits(bs, f->sz) + f->lb; in decode_bmpstr() [all …]
|
/linux-2.6.39/drivers/mtd/ |
D | afs.c | 75 size_t sz; in afs_read_footer() local 78 ret = mtd->read(mtd, ptr, sizeof(fs), &sz, (u_char *) &fs); in afs_read_footer() 79 if (ret >= 0 && sz != sizeof(fs)) in afs_read_footer() 131 size_t sz; in afs_read_iis() local 135 ret = mtd->read(mtd, ptr, sizeof(*iis), &sz, (u_char *) iis); in afs_read_iis() 139 if (sz != sizeof(*iis)) { in afs_read_iis() 169 u_int mask, off, idx, sz; in parse_afs_partitions() local 184 for (idx = off = sz = 0; off < mtd->size; off += mtd->erasesize) { in parse_afs_partitions() 200 sz += sizeof(struct mtd_partition); in parse_afs_partitions() 201 sz += strlen(iis.name) + 1; in parse_afs_partitions() [all …]
|
/linux-2.6.39/arch/arm/mach-orion5x/ |
D | ts78xx-setup.c | 200 int sz; in ts78xx_ts_nand_write_buf() local 203 sz = min_t(int, 4 - off, len); in ts78xx_ts_nand_write_buf() 204 writesb(io_base, buf, sz); in ts78xx_ts_nand_write_buf() 205 buf += sz; in ts78xx_ts_nand_write_buf() 206 len -= sz; in ts78xx_ts_nand_write_buf() 209 sz = len >> 2; in ts78xx_ts_nand_write_buf() 210 if (sz) { in ts78xx_ts_nand_write_buf() 212 writesl(io_base, buf32, sz); in ts78xx_ts_nand_write_buf() 213 buf += sz << 2; in ts78xx_ts_nand_write_buf() 214 len -= sz << 2; in ts78xx_ts_nand_write_buf() [all …]
|
/linux-2.6.39/include/linux/mtd/ |
D | mtd.h | 293 static inline uint32_t mtd_div_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_eb() argument 296 return sz >> mtd->erasesize_shift; in mtd_div_by_eb() 297 do_div(sz, mtd->erasesize); in mtd_div_by_eb() 298 return sz; in mtd_div_by_eb() 301 static inline uint32_t mtd_mod_by_eb(uint64_t sz, struct mtd_info *mtd) in mtd_mod_by_eb() argument 304 return sz & mtd->erasesize_mask; in mtd_mod_by_eb() 305 return do_div(sz, mtd->erasesize); in mtd_mod_by_eb() 308 static inline uint32_t mtd_div_by_ws(uint64_t sz, struct mtd_info *mtd) in mtd_div_by_ws() argument 311 return sz >> mtd->writesize_shift; in mtd_div_by_ws() 312 do_div(sz, mtd->writesize); in mtd_div_by_ws() [all …]
|
/linux-2.6.39/drivers/gpu/drm/radeon/ |
D | r300_cmdbuf.c | 301 int sz; in r300_emit_carefully_checked_packet0() local 306 sz = header.packet0.count; in r300_emit_carefully_checked_packet0() 309 if ((sz > 64) || (sz < 0)) { in r300_emit_carefully_checked_packet0() 311 reg, sz); in r300_emit_carefully_checked_packet0() 315 for (i = 0; i < sz; i++) { in r300_emit_carefully_checked_packet0() 323 reg, sz); in r300_emit_carefully_checked_packet0() 334 BEGIN_RING(1 + sz); in r300_emit_carefully_checked_packet0() 335 OUT_RING(CP_PACKET0(reg, sz - 1)); in r300_emit_carefully_checked_packet0() 336 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz); in r300_emit_carefully_checked_packet0() 353 int sz; in r300_emit_packet0() local [all …]
|
/linux-2.6.39/arch/ia64/sn/kernel/sn2/ |
D | sn_hwperf.c | 59 u64 sz; in sn_hwperf_enum_objects() local 67 sz = sn_hwperf_obj_cnt * sizeof(struct sn_hwperf_object_info); in sn_hwperf_enum_objects() 68 objbuf = vmalloc(sz); in sn_hwperf_enum_objects() 70 printk("sn_hwperf_enum_objects: vmalloc(%d) failed\n", (int)sz); in sn_hwperf_enum_objects() 76 0, sz, (u64) objbuf, 0, 0, NULL); in sn_hwperf_enum_objects() 188 size_t sz; in print_pci_topology() local 191 for (sz = PAGE_SIZE; sz < 16 * PAGE_SIZE; sz += PAGE_SIZE) { in print_pci_topology() 192 if (!(p = kmalloc(sz, GFP_KERNEL))) in print_pci_topology() 194 e = ia64_sn_ioif_get_pci_topology(__pa(p), sz); in print_pci_topology() 238 int sz, i, j; in sn_hwperf_get_nearest_node_objdata() local [all …]
|
/linux-2.6.39/arch/x86/boot/tools/ |
D | build.c | 138 unsigned int i, sz, setup_sectors; in main() local 207 sz = sb.st_size; in main() 208 fprintf (stderr, "System is %d kB\n", (sz+1023)/1024); in main() 209 kernel = mmap(NULL, sz, PROT_READ, MAP_SHARED, fd, 0); in main() 213 sys_size = (sz + 15 + 4) / 16; in main() 227 crc = partial_crc32(kernel, sz, crc); in main() 228 if (fwrite(kernel, 1, sz, stdout) != sz) in main() 232 while (sz++ < (sys_size*16) - 4) { in main()
|
/linux-2.6.39/arch/mn10300/boot/tools/ |
D | build.c | 71 unsigned int i, c, sz, setup_sectors; in main() local 148 sz = sb.st_size; in main() 149 fprintf(stderr, "System is %d kB\n", sz / 1024); in main() 150 sys_size = (sz + 15) / 16; in main() 159 while (sz > 0) { in main() 162 l = (sz > sizeof(buf)) ? sizeof(buf) : sz; in main() 172 sz -= l; in main()
|
/linux-2.6.39/include/linux/ |
D | device-mapper.h | 368 #define DMEMIT(x...) sz += ((sz >= maxlen) ? \ 369 0 : scnprintf(result + sz, maxlen - sz, x)) 389 #define dm_div_up(n, sz) (((n) + (sz) - 1) / (sz)) argument 391 #define dm_sector_div_up(n, sz) ( \ argument 393 sector_t _r = ((n) + (sz) - 1); \ 394 sector_div(_r, (sz)); \ 402 #define dm_round_up(n, sz) (dm_div_up((n), (sz)) * (sz)) argument
|
/linux-2.6.39/drivers/of/ |
D | fdt.c | 45 u32 sz, noff; in of_fdt_get_property() local 54 sz = be32_to_cpup((__be32 *)p); in of_fdt_get_property() 58 p = ALIGN(p, sz >= 8 ? 8 : 4); in of_fdt_get_property() 67 *size = sz; in of_fdt_get_property() 70 p += sz; in of_fdt_get_property() 236 u32 sz, noff; in unflatten_dt_node() local 247 sz = be32_to_cpup((__be32 *)(*p)); in unflatten_dt_node() 251 *p = ALIGN(*p, sz >= 8 ? 8 : 4); in unflatten_dt_node() 280 pp->length = sz; in unflatten_dt_node() 285 *p = ALIGN((*p) + sz, 4); in unflatten_dt_node() [all …]
|
/linux-2.6.39/drivers/media/video/cx18/ |
D | cx18-firmware.c | 151 int sz; in load_apu_fw_direct() local 163 sz = fw->size; in load_apu_fw_direct() 179 if (offset + seghdr.size > sz) in load_apu_fw_direct() 377 int sz, retries; in cx18_firmware_init() local 398 sz = load_cpu_fw_direct("v4l-cx23418-cpu.fw", cx->enc_mem, cx); in cx18_firmware_init() 399 if (sz <= 0) in cx18_firmware_init() 400 return sz; in cx18_firmware_init() 406 sz = load_apu_fw_direct("v4l-cx23418-apu.fw", cx->enc_mem, cx, in cx18_firmware_init() 408 if (sz <= 0) in cx18_firmware_init() 409 return sz; in cx18_firmware_init() [all …]
|
/linux-2.6.39/arch/arm/mach-ux500/include/mach/ |
D | setup.h | 39 #define __IO_DEV_DESC(x, sz) { \ argument 42 .length = sz, \ 46 #define __MEM_DEV_DESC(x, sz) { \ argument 49 .length = sz, \
|
/linux-2.6.39/arch/arm/mach-ebsa110/include/mach/ |
D | io.h | 76 extern void insb(unsigned int port, void *buf, int sz); 77 extern void insw(unsigned int port, void *buf, int sz); 78 extern void insl(unsigned int port, void *buf, int sz); 80 extern void outsb(unsigned int port, const void *buf, int sz); 81 extern void outsw(unsigned int port, const void *buf, int sz); 82 extern void outsl(unsigned int port, const void *buf, int sz);
|
/linux-2.6.39/drivers/staging/brcm80211/util/ |
D | bcmotp.c | 379 uint base, i, sz; in ipxotp_read_region() local 384 sz = (uint) oi->hwlim - oi->hwbase; in ipxotp_read_region() 386 *wlen = sz; in ipxotp_read_region() 389 if (*wlen < sz) { in ipxotp_read_region() 390 *wlen = sz; in ipxotp_read_region() 396 sz = ((uint) oi->swlim - oi->swbase); in ipxotp_read_region() 398 *wlen = sz; in ipxotp_read_region() 401 if (*wlen < sz) { in ipxotp_read_region() 402 *wlen = sz; in ipxotp_read_region() 408 sz = OTPGU_CI_SZ; in ipxotp_read_region() [all …]
|
/linux-2.6.39/drivers/block/ |
D | cryptoloop.c | 148 const int sz = min(size, LOOP_IV_SECTOR_SIZE); in cryptoloop_transfer() local 152 sg_set_page(&sg_in, in_page, sz, in_offs); in cryptoloop_transfer() 153 sg_set_page(&sg_out, out_page, sz, out_offs); in cryptoloop_transfer() 156 err = encdecfunc(&desc, &sg_out, &sg_in, sz); in cryptoloop_transfer() 161 size -= sz; in cryptoloop_transfer() 162 in_offs += sz; in cryptoloop_transfer() 163 out_offs += sz; in cryptoloop_transfer()
|
/linux-2.6.39/arch/powerpc/platforms/cell/spufs/ |
D | coredump.c | 92 int i, sz, total = 0; in spufs_ctx_note_size() local 98 sz = spufs_coredump_read[i].size; in spufs_ctx_note_size() 104 total += roundup(sz, 4); in spufs_ctx_note_size() 172 int sz, rc, nread, total = 0; in spufs_arch_write_note() local 183 sz = spufs_coredump_read[i].size; in spufs_arch_write_note() 187 en.n_descsz = sz; in spufs_arch_write_note() 210 } while (nread == bufsz && total < sz); in spufs_arch_write_note() 217 rc = spufs_dump_align(file, buf, roundup(*foffset - total + sz, 4), in spufs_arch_write_note()
|
/linux-2.6.39/arch/arm/mach-bcmring/ |
D | mm.c | 21 #define IO_DESC(va, sz) { .virtual = va, \ argument 23 .length = sz, \ 26 #define MEM_DESC(va, sz) { .virtual = va, \ argument 28 .length = sz, \
|