/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 …]
|
/drivers/char/ |
D | mem.c | 44 unsigned long sz; in size_inside_page() local 46 sz = PAGE_SIZE - (start & (PAGE_SIZE - 1)); in size_inside_page() 48 return min(sz, size); in size_inside_page() 104 ssize_t read, sz; in read_mem() local 113 sz = size_inside_page(p, count); in read_mem() 114 if (sz > 0) { in read_mem() 115 if (clear_user(buf, sz)) in read_mem() 117 buf += sz; in read_mem() 118 p += sz; in read_mem() 119 count -= sz; in read_mem() [all …]
|
/drivers/staging/rtl8712/ |
D | osdep_service.h | 170 static inline u8 *_malloc(u32 sz) in _malloc() argument 172 return kmalloc(sz, GFP_ATOMIC); in _malloc() 191 static inline u32 _RND8(u32 sz) in _RND8() argument 193 return ((sz >> 3) + ((sz & 7) ? 1 : 0)) << 3; in _RND8() 196 static inline u32 _RND128(u32 sz) in _RND128() argument 198 return ((sz >> 7) + ((sz & 127) ? 1 : 0)) << 7; in _RND128() 201 static inline u32 _RND256(u32 sz) in _RND256() argument 203 return ((sz >> 8) + ((sz & 255) ? 1 : 0)) << 8; in _RND256() 206 static inline u32 _RND512(u32 sz) in _RND512() argument 208 return ((sz >> 9) + ((sz & 511) ? 1 : 0)) << 9; in _RND512()
|
D | rtl871x_recv.h | 153 static inline u8 *recvframe_pull(union recv_frame *precvframe, sint sz) in recvframe_pull() argument 159 precvframe->u.hdr.rx_data += sz; in recvframe_pull() 161 precvframe->u.hdr.rx_data -= sz; in recvframe_pull() 164 precvframe->u.hdr.len -= sz; in recvframe_pull() 168 static inline u8 *recvframe_put(union recv_frame *precvframe, sint sz) in recvframe_put() argument 178 precvframe->u.hdr.rx_tail += sz; in recvframe_put() 180 precvframe->u.hdr.rx_tail -= sz; in recvframe_put() 183 precvframe->u.hdr.len += sz; in recvframe_put() 187 static inline u8 *recvframe_pull_tail(union recv_frame *precvframe, sint sz) in recvframe_pull_tail() argument 195 precvframe->u.hdr.rx_tail -= sz; in recvframe_pull_tail() [all …]
|
D | ieee80211.c | 175 int sz = 0, rateLen; in r8712_generate_ie() local 180 sz += 8; in r8712_generate_ie() 181 ie += sz; in r8712_generate_ie() 184 sz += 2; in r8712_generate_ie() 193 sz += 2; in r8712_generate_ie() 197 pdev_network->Ssid.Ssid, &sz); in r8712_generate_ie() 204 pdev_network->SupportedRates, &sz); in r8712_generate_ie() 206 (pdev_network->SupportedRates + 8), &sz); in r8712_generate_ie() 209 rateLen, pdev_network->SupportedRates, &sz); in r8712_generate_ie() 212 (u8 *)&(pdev_network->Configuration.DSConfig), &sz); in r8712_generate_ie() [all …]
|
/drivers/mmc/card/ |
D | mmc_test.c | 399 unsigned long sz = size; in mmc_test_map_sg() local 412 if (len > sz) in mmc_test_map_sg() 413 len = sz; in mmc_test_map_sg() 423 sz -= len; in mmc_test_map_sg() 425 if (!sz) in mmc_test_map_sg() 428 } while (sz && repeat); in mmc_test_map_sg() 430 if (sz) in mmc_test_map_sg() 444 unsigned long sz, in mmc_test_map_sg_max_scatter() argument 458 while (sz) { in mmc_test_map_sg_max_scatter() 461 while (sz && cnt) { in mmc_test_map_sg_max_scatter() [all …]
|
/drivers/gpu/drm/radeon/ |
D | r300_cmdbuf.c | 302 int sz; in r300_emit_carefully_checked_packet0() local 307 sz = header.packet0.count; in r300_emit_carefully_checked_packet0() 310 if ((sz > 64) || (sz < 0)) { in r300_emit_carefully_checked_packet0() 312 reg, sz); in r300_emit_carefully_checked_packet0() 316 for (i = 0; i < sz; i++) { in r300_emit_carefully_checked_packet0() 324 reg, sz); in r300_emit_carefully_checked_packet0() 335 BEGIN_RING(1 + sz); in r300_emit_carefully_checked_packet0() 336 OUT_RING(CP_PACKET0(reg, sz - 1)); in r300_emit_carefully_checked_packet0() 337 OUT_RING_DRM_BUFFER(cmdbuf->buffer, sz); in r300_emit_carefully_checked_packet0() 354 int sz; in r300_emit_packet0() local [all …]
|
/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 …]
|
/drivers/scsi/mpt3sas/ |
D | mpt3sas_debug.h | 162 _debug_dump_mf(void *mpi_request, int sz) in _debug_dump_mf() argument 168 for (i = 0; i < sz; i++) { in _debug_dump_mf() 181 _debug_dump_reply(void *mpi_request, int sz) in _debug_dump_reply() argument 187 for (i = 0; i < sz; i++) { in _debug_dump_reply() 200 _debug_dump_config(void *mpi_request, int sz) in _debug_dump_config() argument 206 for (i = 0; i < sz; i++) { in _debug_dump_config() 214 #define _debug_dump_mf(mpi_request, sz) argument 215 #define _debug_dump_reply(mpi_request, sz) argument 216 #define _debug_dump_config(mpi_request, sz) argument
|
D | mpt3sas_config.c | 80 u16 sz; member 192 if (mem->sz > ioc->config_page_sz) { in _config_alloc_config_dma_memory() 193 mem->page = dma_alloc_coherent(&ioc->pdev->dev, mem->sz, in _config_alloc_config_dma_memory() 198 ioc->name, __func__, mem->sz); in _config_alloc_config_dma_memory() 221 if (mem->sz > ioc->config_page_sz) in _config_free_config_dma_memory() 222 dma_free_coherent(&ioc->pdev->dev, mem->sz, mem->page, in _config_free_config_dma_memory() 321 mem.sz = mpi_request->Header.PageLength * 4; in _config_request() 323 mem.sz = le16_to_cpu(mpi_reply->ExtPageLength) * 4; in _config_request() 332 MPT3_CONFIG_COMMON_WRITE_SGLFLAGS | mem.sz, in _config_request() 334 memcpy(mem.page, config_page, min_t(u16, mem.sz, in _config_request() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-firmware.c | 151 int sz; in load_apu_fw_direct() local 163 sz = fw->size; in load_apu_fw_direct() 184 if (offset + seghdr.size > sz) in load_apu_fw_direct() 385 int sz, retries; in cx18_firmware_init() local 406 sz = load_cpu_fw_direct(CX18_CPU_FIRMWARE, cx->enc_mem, cx); in cx18_firmware_init() 407 if (sz <= 0) in cx18_firmware_init() 408 return sz; in cx18_firmware_init() 414 sz = load_apu_fw_direct(CX18_APU_FIRMWARE, cx->enc_mem, cx, in cx18_firmware_init() 416 if (sz <= 0) in cx18_firmware_init() 417 return sz; in cx18_firmware_init() [all …]
|
/drivers/of/ |
D | fdt.c | 46 u32 sz, noff; in of_fdt_get_property() local 55 sz = be32_to_cpup((__be32 *)p); in of_fdt_get_property() 59 p = ALIGN(p, sz >= 8 ? 8 : 4); in of_fdt_get_property() 68 *size = sz; in of_fdt_get_property() 71 p += sz; in of_fdt_get_property() 239 u32 sz, noff; in unflatten_dt_node() local 250 sz = be32_to_cpup((__be32 *)(*p)); in unflatten_dt_node() 254 *p = ALIGN(*p, sz >= 8 ? 8 : 4); in unflatten_dt_node() 283 pp->length = sz; in unflatten_dt_node() 288 *p = ALIGN((*p) + sz, 4); in unflatten_dt_node() [all …]
|
/drivers/gpio/ |
D | gpio-generic.c | 398 unsigned long sz, void __iomem *dat, void __iomem *set, in bgpio_init() argument 404 if (!is_power_of_2(sz)) in bgpio_init() 407 bgc->bits = sz * 8; in bgpio_init() 451 resource_size_t sz; in bgpio_map() local 460 sz = resource_size(r); in bgpio_map() 461 if (sz != sane_sz) { in bgpio_map() 467 if (!devm_request_mem_region(dev, start, sz, r->name)) { in bgpio_map() 472 ret = devm_ioremap(dev, start, sz); in bgpio_map() 490 unsigned long sz; in bgpio_pdev_probe() local 500 sz = resource_size(r); in bgpio_pdev_probe() [all …]
|
/drivers/block/zram/ |
D | zcomp.c | 281 ssize_t sz = 0; in zcomp_available_show() local 286 sz += scnprintf(buf + sz, PAGE_SIZE - sz - 2, in zcomp_available_show() 289 sz += scnprintf(buf + sz, PAGE_SIZE - sz - 2, in zcomp_available_show() 293 sz += scnprintf(buf + sz, PAGE_SIZE - sz, "\n"); in zcomp_available_show() 294 return sz; in zcomp_available_show()
|
/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()
|
/drivers/infiniband/hw/qib/ |
D | qib_cq.c | 215 u32 sz; in qib_create_cq() local 236 sz = sizeof(*wc); in qib_create_cq() 238 sz += sizeof(struct ib_uverbs_wc) * (entries + 1); in qib_create_cq() 240 sz += sizeof(struct ib_wc) * (entries + 1); in qib_create_cq() 241 wc = vmalloc_user(sz); in qib_create_cq() 254 cq->ip = qib_create_mmap_info(dev, sz, context, wc); in qib_create_cq() 385 u32 sz; in qib_resize_cq() local 395 sz = sizeof(*wc); in qib_resize_cq() 397 sz += sizeof(struct ib_uverbs_wc) * (cqe + 1); in qib_resize_cq() 399 sz += sizeof(struct ib_wc) * (cqe + 1); in qib_resize_cq() [all …]
|
D | qib_srq.c | 107 u32 sz; in qib_create_srq() local 134 sz = sizeof(struct ib_sge) * srq->rq.max_sge + in qib_create_srq() 136 srq->rq.wq = vmalloc_user(sizeof(struct qib_rwq) + srq->rq.size * sz); in qib_create_srq() 148 u32 s = sizeof(struct qib_rwq) + srq->rq.size * sz; in qib_create_srq() 222 u32 sz, size, n, head, tail; in qib_modify_srq() local 232 sz = sizeof(struct qib_rwqe) + in qib_modify_srq() 235 wq = vmalloc_user(sizeof(struct qib_rwq) + size * sz); in qib_modify_srq() 291 p = (struct qib_rwqe *)((char *) p + sz); in qib_modify_srq() 308 u32 s = sizeof(struct qib_rwq) + size * sz; in qib_modify_srq()
|
/drivers/infiniband/hw/ipath/ |
D | ipath_cq.c | 208 u32 sz; in ipath_create_cq() local 229 sz = sizeof(*wc); in ipath_create_cq() 231 sz += sizeof(struct ib_uverbs_wc) * (entries + 1); in ipath_create_cq() 233 sz += sizeof(struct ib_wc) * (entries + 1); in ipath_create_cq() 234 wc = vmalloc_user(sz); in ipath_create_cq() 247 cq->ip = ipath_create_mmap_info(dev, sz, context, wc); in ipath_create_cq() 378 u32 sz; in ipath_resize_cq() local 388 sz = sizeof(*wc); in ipath_resize_cq() 390 sz += sizeof(struct ib_uverbs_wc) * (cqe + 1); in ipath_resize_cq() 392 sz += sizeof(struct ib_wc) * (cqe + 1); in ipath_resize_cq() [all …]
|
D | ipath_srq.c | 107 u32 sz; in ipath_create_srq() local 137 sz = sizeof(struct ib_sge) * srq->rq.max_sge + in ipath_create_srq() 139 srq->rq.wq = vmalloc_user(sizeof(struct ipath_rwq) + srq->rq.size * sz); in ipath_create_srq() 151 u32 s = sizeof(struct ipath_rwq) + srq->rq.size * sz; in ipath_create_srq() 226 u32 sz, size, n, head, tail; in ipath_modify_srq() local 236 sz = sizeof(struct ipath_rwqe) + in ipath_modify_srq() 239 wq = vmalloc_user(sizeof(struct ipath_rwq) + size * sz); in ipath_modify_srq() 295 p = (struct ipath_rwqe *)((char *) p + sz); in ipath_modify_srq() 312 u32 s = sizeof(struct ipath_rwq) + size * sz; in ipath_modify_srq()
|
/drivers/scsi/fcoe/ |
D | fcoe_sysfs.c | 148 #define fcoe_ctlr_show_function(field, format_string, sz, cast) \ argument 156 return snprintf(buf, sz, format_string, \ 160 #define fcoe_fcf_show_function(field, format_string, sz, cast) \ argument 169 return snprintf(buf, sz, format_string, \ 173 #define fcoe_ctlr_private_show_function(field, format_string, sz, cast) \ argument 179 return snprintf(buf, sz, format_string, cast fcoe_ctlr_##field(ctlr)); \ 182 #define fcoe_fcf_private_show_function(field, format_string, sz, cast) \ argument 188 return snprintf(buf, sz, format_string, cast fcoe_fcf_##field(fcf)); \ 191 #define fcoe_ctlr_private_rd_attr(field, format_string, sz) \ argument 192 fcoe_ctlr_private_show_function(field, format_string, sz, ) \ [all …]
|
/drivers/gpu/drm/exynos/ |
D | exynos_drm_fimc.c | 614 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) in fimc_set_window() argument 620 h2 = sz->hsize - pos->w - pos->x; in fimc_set_window() 622 v2 = sz->vsize - pos->h - pos->y; in fimc_set_window() 625 __func__, pos->x, pos->y, pos->w, pos->h, sz->hsize, sz->vsize); in fimc_set_window() 649 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) in fimc_src_set_size() argument 653 struct drm_exynos_sz img_sz = *sz; in fimc_src_set_size() 657 __func__, swap, sz->hsize, sz->vsize); in fimc_src_set_size() 671 img_sz.hsize = sz->vsize; in fimc_src_set_size() 672 img_sz.vsize = sz->hsize; in fimc_src_set_size() 1109 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) in fimc_dst_set_size() argument [all …]
|
D | exynos_drm_gsc.c | 612 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) in gsc_src_set_size() argument 638 __func__, sz->hsize, sz->vsize); in gsc_src_set_size() 645 cfg |= (GSC_SRCIMG_WIDTH(sz->hsize) | in gsc_src_set_size() 646 GSC_SRCIMG_HEIGHT(sz->vsize)); in gsc_src_set_size() 1039 struct drm_exynos_pos *pos, struct drm_exynos_sz *sz) in gsc_dst_set_size() argument 1064 __func__, sz->hsize, sz->vsize); in gsc_dst_set_size() 1070 cfg |= (GSC_DSTIMG_WIDTH(sz->hsize) | in gsc_dst_set_size() 1071 GSC_DSTIMG_HEIGHT(sz->vsize)); in gsc_dst_set_size() 1410 struct drm_exynos_sz *sz; in gsc_ippdrv_check_property() local 1423 sz = &config->sz; in gsc_ippdrv_check_property() [all …]
|
/drivers/mmc/core/ |
D | sdio_io.c | 218 unsigned int sdio_align_size(struct sdio_func *func, unsigned int sz) in sdio_align_size() argument 224 orig_sz = sz; in sdio_align_size() 231 sz = mmc_align_data_size(func->card, sz); in sdio_align_size() 237 if (sz <= sdio_max_byte_size(func)) in sdio_align_size() 238 return sz; in sdio_align_size() 244 if ((sz % func->cur_blksize) == 0) in sdio_align_size() 245 return sz; in sdio_align_size() 251 blk_sz = ((sz + func->cur_blksize - 1) / in sdio_align_size() 267 sz % func->cur_blksize); in sdio_align_size() 269 blk_sz = sz / func->cur_blksize; in sdio_align_size()
|
/drivers/net/wireless/iwlwifi/ |
D | iwl-eeprom-read.c | 362 int sz; in iwl_read_eeprom() local 376 sz = trans->cfg->base_params->eeprom_size; in iwl_read_eeprom() 377 IWL_DEBUG_EEPROM(trans->dev, "NVM size = %d\n", sz); in iwl_read_eeprom() 379 e = kmalloc(sz, GFP_KERNEL); in iwl_read_eeprom() 416 for (addr = validblockaddr; addr < validblockaddr + sz; in iwl_read_eeprom() 428 for (addr = 0; addr < sz; addr += sizeof(u16)) { in iwl_read_eeprom() 453 *eeprom_size = sz; in iwl_read_eeprom()
|
/drivers/mtd/tests/ |
D | mtd_speedtest.c | 163 size_t written, sz = pgsize * 2; in write_eraseblock_by_2pages() local 169 err = mtd_write(mtd, addr, sz, &written, buf); in write_eraseblock_by_2pages() 170 if (err || written != sz) { in write_eraseblock_by_2pages() 177 addr += sz; in write_eraseblock_by_2pages() 178 buf += sz; in write_eraseblock_by_2pages() 240 size_t read, sz = pgsize * 2; in read_eraseblock_by_2pages() local 246 err = mtd_read(mtd, addr, sz, &read, buf); in read_eraseblock_by_2pages() 250 if (err || read != sz) { in read_eraseblock_by_2pages() 257 addr += sz; in read_eraseblock_by_2pages() 258 buf += sz; in read_eraseblock_by_2pages()
|