/drivers/infiniband/core/ |
D | uverbs_marshall.c | 36 void ib_copy_ah_attr_to_user(struct ib_uverbs_ah_attr *dst, in ib_copy_ah_attr_to_user() argument 39 memcpy(dst->grh.dgid, src->grh.dgid.raw, sizeof src->grh.dgid); in ib_copy_ah_attr_to_user() 40 dst->grh.flow_label = src->grh.flow_label; in ib_copy_ah_attr_to_user() 41 dst->grh.sgid_index = src->grh.sgid_index; in ib_copy_ah_attr_to_user() 42 dst->grh.hop_limit = src->grh.hop_limit; in ib_copy_ah_attr_to_user() 43 dst->grh.traffic_class = src->grh.traffic_class; in ib_copy_ah_attr_to_user() 44 memset(&dst->grh.reserved, 0, sizeof(dst->grh.reserved)); in ib_copy_ah_attr_to_user() 45 dst->dlid = src->dlid; in ib_copy_ah_attr_to_user() 46 dst->sl = src->sl; in ib_copy_ah_attr_to_user() 47 dst->src_path_bits = src->src_path_bits; in ib_copy_ah_attr_to_user() [all …]
|
/drivers/video/fbdev/core/ |
D | cfbfillrect.c | 35 bitfill_aligned(struct fb_info *p, unsigned long __iomem *dst, int dst_idx, in bitfill_aligned() argument 50 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned() 56 FB_WRITEL(comp(pat, FB_READL(dst), first), dst); in bitfill_aligned() 57 dst++; in bitfill_aligned() 64 FB_WRITEL(pat, dst++); in bitfill_aligned() 65 FB_WRITEL(pat, dst++); in bitfill_aligned() 66 FB_WRITEL(pat, dst++); in bitfill_aligned() 67 FB_WRITEL(pat, dst++); in bitfill_aligned() 68 FB_WRITEL(pat, dst++); in bitfill_aligned() 69 FB_WRITEL(pat, dst++); in bitfill_aligned() [all …]
|
D | sysfillrect.c | 25 bitfill_aligned(struct fb_info *p, unsigned long *dst, int dst_idx, in bitfill_aligned() argument 40 *dst = comp(pat, *dst, first); in bitfill_aligned() 46 *dst = comp(pat, *dst, first); in bitfill_aligned() 47 dst++; in bitfill_aligned() 54 *dst++ = pat; in bitfill_aligned() 55 *dst++ = pat; in bitfill_aligned() 56 *dst++ = pat; in bitfill_aligned() 57 *dst++ = pat; in bitfill_aligned() 58 *dst++ = pat; in bitfill_aligned() 59 *dst++ = pat; in bitfill_aligned() [all …]
|
D | syscopyarea.c | 28 bitcpy(struct fb_info *p, unsigned long *dst, unsigned dst_idx, in bitcpy() argument 44 *dst = comp(*src, *dst, first); in bitcpy() 49 *dst = comp(*src, *dst, first); in bitcpy() 50 dst++; in bitcpy() 58 *dst++ = *src++; in bitcpy() 59 *dst++ = *src++; in bitcpy() 60 *dst++ = *src++; in bitcpy() 61 *dst++ = *src++; in bitcpy() 62 *dst++ = *src++; in bitcpy() 63 *dst++ = *src++; in bitcpy() [all …]
|
D | cfbcopyarea.c | 46 bitcpy(struct fb_info *p, unsigned long __iomem *dst, unsigned dst_idx, in bitcpy() argument 58 memmove((char *)dst + ((dst_idx & (bits - 1))) / 8, in bitcpy() 73 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy() 79 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy() 80 dst++; in bitcpy() 88 FB_WRITEL(FB_READL(src++), dst++); in bitcpy() 89 FB_WRITEL(FB_READL(src++), dst++); in bitcpy() 90 FB_WRITEL(FB_READL(src++), dst++); in bitcpy() 91 FB_WRITEL(FB_READL(src++), dst++); in bitcpy() 92 FB_WRITEL(FB_READL(src++), dst++); in bitcpy() [all …]
|
/drivers/phy/ |
D | phy-xgene.c | 106 #define REGSPEC_CFG_I_TX_WORDMODE0_SET(dst, src) \ argument 107 (((dst) & ~0x00070000) | (((u32) (src) << 16) & 0x00070000)) 108 #define REGSPEC_CFG_I_RX_WORDMODE0_SET(dst, src) \ argument 109 (((dst) & ~0x00e00000) | (((u32) (src) << 21) & 0x00e00000)) 111 #define REGSPEC_CFG_I_CUSTOMER_PIN_MODE0_SET(dst, src) \ argument 112 (((dst) & ~0x00007fff) | (((u32) (src)) & 0x00007fff)) 114 #define CFG_I_SPD_SEL_CDR_OVR1_SET(dst, src) \ argument 115 (((dst) & ~0x0000000f) | (((u32) (src)) & 0x0000000f)) 121 #define CFG_IND_ADDR_SET(dst, src) \ argument 122 (((dst) & ~0x003ffff0) | (((u32) (src) << 4) & 0x003ffff0)) [all …]
|
/drivers/media/platform/s5p-tv/ |
D | mixer_grp_layer.c | 153 struct mxr_crop *dst = &geo->dst; in mxr_graph_fix_geometry() local 164 x_center = dst->x_offset + dst->width / 2; in mxr_graph_fix_geometry() 165 y_center = dst->y_offset + dst->height / 2; in mxr_graph_fix_geometry() 168 dst->width = round_down(dst->width, 2); in mxr_graph_fix_geometry() 169 dst->height = round_down(dst->height, 2); in mxr_graph_fix_geometry() 171 dst->width = round_up(dst->width, 2); in mxr_graph_fix_geometry() 172 dst->height = round_up(dst->height, 2); in mxr_graph_fix_geometry() 175 dst->width = min(dst->width, dst->full_width); in mxr_graph_fix_geometry() 176 dst->height = min(dst->height, dst->full_height); in mxr_graph_fix_geometry() 179 dst->width = min(dst->width, 2 * src->full_width); in mxr_graph_fix_geometry() [all …]
|
D | mixer_vp_layer.c | 148 struct mxr_crop *dst = &geo->dst; in mxr_vp_fix_geometry() local 156 x_center = dst->x_offset + dst->width / 2; in mxr_vp_fix_geometry() 157 y_center = dst->y_offset + dst->height / 2; in mxr_vp_fix_geometry() 160 dst->width = clamp(dst->width, 8U, 16 * src->full_width); in mxr_vp_fix_geometry() 161 dst->height = clamp(dst->height, 1U, 16 * src->full_height); in mxr_vp_fix_geometry() 164 dst->x_offset = do_center(x_center, dst->width, in mxr_vp_fix_geometry() 165 dst->full_width, flags); in mxr_vp_fix_geometry() 166 dst->y_offset = do_center(y_center, dst->height, in mxr_vp_fix_geometry() 167 dst->full_height, flags); in mxr_vp_fix_geometry() 176 src->width = clamp(src->width, round_up(dst->width / 16, 4), in mxr_vp_fix_geometry() [all …]
|
/drivers/video/fbdev/ |
D | atafb_utils.h | 219 static inline void fast_memmove(char *dst, const char *src, size_t size) in fast_memmove() argument 223 if (dst < src) in fast_memmove() 231 : "=a" (src), "=a" (dst), "=d" (size) in fast_memmove() 232 : "0" (src), "1" (dst), "2" (size / 16 - 1) in fast_memmove() 242 : "=a" (src), "=a" (dst), "=d" (size) in fast_memmove() 243 : "0" (src + size), "1" (dst + size), "2" (size / 16 - 1) in fast_memmove() 279 static inline void fill8_col(u8 *dst, u32 m[]) in fill8_col() argument 282 dst[0] = tmp; in fill8_col() 283 dst[2] = (tmp >>= 8); in fill8_col() 285 dst[4] = (tmp >>= 8); in fill8_col() [all …]
|
D | amifb.c | 2600 static void bitcpy(unsigned long *dst, int dst_idx, const unsigned long *src, in bitcpy() argument 2622 *dst = comp(*src, *dst, first); in bitcpy() 2627 *dst = comp(*src, *dst, first); in bitcpy() 2628 dst++; in bitcpy() 2636 *dst++ = *src++; in bitcpy() 2637 *dst++ = *src++; in bitcpy() 2638 *dst++ = *src++; in bitcpy() 2639 *dst++ = *src++; in bitcpy() 2640 *dst++ = *src++; in bitcpy() 2641 *dst++ = *src++; in bitcpy() [all …]
|
/drivers/block/xen-blkback/ |
D | common.h | 392 static inline void blkif_get_x86_32_req(struct blkif_request *dst, in blkif_get_x86_32_req() argument 396 dst->operation = READ_ONCE(src->operation); in blkif_get_x86_32_req() 397 switch (dst->operation) { in blkif_get_x86_32_req() 402 dst->u.rw.nr_segments = src->u.rw.nr_segments; in blkif_get_x86_32_req() 403 dst->u.rw.handle = src->u.rw.handle; in blkif_get_x86_32_req() 404 dst->u.rw.id = src->u.rw.id; in blkif_get_x86_32_req() 405 dst->u.rw.sector_number = src->u.rw.sector_number; in blkif_get_x86_32_req() 407 if (n > dst->u.rw.nr_segments) in blkif_get_x86_32_req() 408 n = dst->u.rw.nr_segments; in blkif_get_x86_32_req() 410 dst->u.rw.seg[i] = src->u.rw.seg[i]; in blkif_get_x86_32_req() [all …]
|
/drivers/staging/lustre/lustre/obdclass/linux/ |
D | linux-obdo.c | 52 void obdo_refresh_inode(struct inode *dst, struct obdo *src, u32 valid) in obdo_refresh_inode() argument 59 src->o_valid, LTIME_S(dst->i_mtime), in obdo_refresh_inode() 60 LTIME_S(dst->i_ctime), src->o_mtime, src->o_ctime); in obdo_refresh_inode() 62 if (valid & OBD_MD_FLATIME && src->o_atime > LTIME_S(dst->i_atime)) in obdo_refresh_inode() 63 LTIME_S(dst->i_atime) = src->o_atime; in obdo_refresh_inode() 64 if (valid & OBD_MD_FLMTIME && src->o_mtime > LTIME_S(dst->i_mtime)) in obdo_refresh_inode() 65 LTIME_S(dst->i_mtime) = src->o_mtime; in obdo_refresh_inode() 66 if (valid & OBD_MD_FLCTIME && src->o_ctime > LTIME_S(dst->i_ctime)) in obdo_refresh_inode() 67 LTIME_S(dst->i_ctime) = src->o_ctime; in obdo_refresh_inode() 69 i_size_write(dst, src->o_size); in obdo_refresh_inode() [all …]
|
/drivers/net/ethernet/apm/xgene/ |
D | xgene_enet_hw.h | 32 static inline void xgene_set_bits(u32 *dst, u32 val, u32 start, u32 len) in xgene_set_bits() argument 37 *dst &= ~mask; in xgene_set_bits() 38 *dst |= (val << start) & mask; in xgene_set_bits() 128 #define PHY_CONTROL_SET(dst, val) xgene_set_bits(dst, val, 0, 16) argument 146 #define CFG_TXCLK_MUXSEL0_SET(dst, val) xgene_set_bits(dst, val, 29, 3) argument 147 #define CFG_RXCLK_MUXSEL0_SET(dst, val) xgene_set_bits(dst, val, 26, 3) argument 149 #define CFG_CLE_IP_PROTOCOL0_SET(dst, val) xgene_set_bits(dst, val, 16, 2) argument 150 #define CFG_CLE_IP_HDR_LEN_SET(dst, val) xgene_set_bits(dst, val, 8, 5) argument 151 #define CFG_CLE_DSTQID0_SET(dst, val) xgene_set_bits(dst, val, 0, 12) argument 152 #define CFG_CLE_FPSEL0_SET(dst, val) xgene_set_bits(dst, val, 16, 4) argument [all …]
|
/drivers/staging/lustre/lustre/obdclass/ |
D | obdo.c | 48 void obdo_set_parent_fid(struct obdo *dst, const struct lu_fid *parent) in obdo_set_parent_fid() argument 50 dst->o_parent_oid = fid_oid(parent); in obdo_set_parent_fid() 51 dst->o_parent_seq = fid_seq(parent); in obdo_set_parent_fid() 52 dst->o_parent_ver = fid_ver(parent); in obdo_set_parent_fid() 53 dst->o_valid |= OBD_MD_FLGENER | OBD_MD_FLFID; in obdo_set_parent_fid() 59 void obdo_from_inode(struct obdo *dst, struct inode *src, u32 valid) in obdo_from_inode() argument 69 dst->o_atime = LTIME_S(src->i_atime); in obdo_from_inode() 73 dst->o_mtime = LTIME_S(src->i_mtime); in obdo_from_inode() 77 dst->o_ctime = LTIME_S(src->i_ctime); in obdo_from_inode() 81 dst->o_size = i_size_read(src); in obdo_from_inode() [all …]
|
/drivers/crypto/ccp/ |
D | ccp-ops.c | 122 struct ccp_mem dst; member 277 cr[4] = ccp_addr_lo(&op->dst.u.dma); in ccp_perform_aes() 279 | ccp_addr_hi(&op->dst.u.dma); in ccp_perform_aes() 307 cr[4] = ccp_addr_lo(&op->dst.u.dma); in ccp_perform_xts_aes() 309 | ccp_addr_hi(&op->dst.u.dma); in ccp_perform_xts_aes() 360 cr[4] = ccp_addr_lo(&op->dst.u.dma); in ccp_perform_rsa() 362 | ccp_addr_hi(&op->dst.u.dma); in ccp_perform_rsa() 379 cr[1] = op->dst.u.dma.length - 1; in ccp_perform_passthru() 393 if (op->dst.type == CCP_MEMTYPE_SYSTEM) { in ccp_perform_passthru() 394 cr[4] = ccp_addr_lo(&op->dst.u.dma); in ccp_perform_passthru() [all …]
|
/drivers/media/pci/cx18/ |
D | cx18-io.c | 29 u8 __iomem *dst = addr; in cx18_memset_io() local 34 if ((count > 0) && ((unsigned long)dst & 1)) { in cx18_memset_io() 35 cx18_writeb(cx, (u8) val, dst); in cx18_memset_io() 37 dst++; in cx18_memset_io() 39 if ((count > 1) && ((unsigned long)dst & 2)) { in cx18_memset_io() 40 cx18_writew(cx, val2, dst); in cx18_memset_io() 42 dst += 2; in cx18_memset_io() 45 cx18_writel(cx, val4, dst); in cx18_memset_io() 47 dst += 4; in cx18_memset_io() 50 cx18_writew(cx, val2, dst); in cx18_memset_io() [all …]
|
D | cx18-vbi.c | 60 u8 *dst = &cx->vbi.sliced_mpeg_data[idx][0]; in copy_vbi_data() local 77 dst[sd + 12 + line * 43] = cx18_service2vbi(sdata->id); in copy_vbi_data() 78 memcpy(dst + sd + 12 + line * 43 + 1, sdata->data, 42); in copy_vbi_data() 81 memcpy(dst, mpeg_hdr_data, sizeof(mpeg_hdr_data)); in copy_vbi_data() 86 memcpy(dst + sd, "ITV0", 4); in copy_vbi_data() 87 memmove(dst + sd + 4, dst + sd + 12, line * 43); in copy_vbi_data() 90 memcpy(dst + sd, "itv0", 4); in copy_vbi_data() 93 memcpy(dst + sd + 4, &linemask[0], 8); in copy_vbi_data() 96 dst[4+16] = (size + 10) >> 8; in copy_vbi_data() 97 dst[5+16] = (size + 10) & 0xff; in copy_vbi_data() [all …]
|
/drivers/video/console/ |
D | fbcon_rotate.c | 28 u8 *dst; in fbcon_rotate_font() local 50 dst = kmalloc(d_cellsize * len, GFP_KERNEL); in fbcon_rotate_font() 52 if (dst == NULL) { in fbcon_rotate_font() 59 ops->fontbuffer = dst; in fbcon_rotate_font() 62 dst = ops->fontbuffer; in fbcon_rotate_font() 63 memset(dst, 0, ops->fd_size); in fbcon_rotate_font() 68 rotate_ud(src, dst, vc->vc_font.width, in fbcon_rotate_font() 72 dst += d_cellsize; in fbcon_rotate_font() 77 rotate_cw(src, dst, vc->vc_font.width, in fbcon_rotate_font() 80 dst += d_cellsize; in fbcon_rotate_font() [all …]
|
/drivers/base/regmap/ |
D | regcache-lzo.c | 23 void *dst; member 52 lzo_ctx->dst, &compress_size, lzo_ctx->wmem); in regcache_lzo_compress() 66 lzo_ctx->dst, &dst_len); in regcache_lzo_decompress() 78 lzo_ctx->dst = kmalloc(lzo_ctx->dst_len, GFP_KERNEL); in regcache_lzo_compress_cache_block() 79 if (!lzo_ctx->dst) { in regcache_lzo_compress_cache_block() 96 lzo_ctx->dst = kmalloc(lzo_ctx->dst_len, GFP_KERNEL); in regcache_lzo_decompress_cache_block() 97 if (!lzo_ctx->dst) { in regcache_lzo_decompress_cache_block() 224 kfree(lzo_blocks[i]->dst); in regcache_lzo_exit() 252 tmp_dst = lzo_block->dst; in regcache_lzo_read() 256 lzo_block->src = lzo_block->dst; in regcache_lzo_read() [all …]
|
/drivers/scsi/aic7xxx/ |
D | aic79xx_inline.h | 58 ahd_mode src, ahd_mode dst); 61 ahd_mode dst); 64 ahd_mode *src, ahd_mode *dst); 67 ahd_mode dst); 76 ahd_known_modes(struct ahd_softc *ahd, ahd_mode src, ahd_mode dst) in ahd_known_modes() argument 79 ahd->dst_mode = dst; in ahd_known_modes() 81 ahd->saved_dst_mode = dst; in ahd_known_modes() 85 ahd_build_mode_state(struct ahd_softc *ahd, ahd_mode src, ahd_mode dst) in ahd_build_mode_state() argument 87 return ((src << SRC_MODE_SHIFT) | (dst << DST_MODE_SHIFT)); in ahd_build_mode_state() 92 ahd_mode *src, ahd_mode *dst) in ahd_extract_mode_state() argument [all …]
|
/drivers/char/hw_random/ |
D | xgene-rng.c | 66 #define MAX_REFILL_CYCLES_SET(dst, src) \ argument 67 ((dst & ~0xffff0000) | (((u32)src << 16) & 0xffff0000)) 68 #define MIN_REFILL_CYCLES_SET(dst, src) \ argument 69 ((dst & ~0x000000ff) | (((u32)src) & 0x000000ff)) 70 #define ALARM_THRESHOLD_SET(dst, src) \ argument 71 ((dst & ~0x000000ff) | (((u32)src) & 0x000000ff)) 72 #define ENABLE_RNG_SET(dst, src) \ argument 73 ((dst & ~BIT(10)) | (((u32)src << 10) & BIT(10))) 74 #define REGSPEC_TEST_MODE_SET(dst, src) \ argument 75 ((dst & ~BIT(8)) | (((u32)src << 8) & BIT(8))) [all …]
|
/drivers/media/usb/dvb-usb/ |
D | vp702x-fe.c | 44 struct vp702x_device_state *dst = st->d->priv; in vp702x_fe_refresh_state() local 48 mutex_lock(&dst->buf_mutex); in vp702x_fe_refresh_state() 49 buf = dst->buf; in vp702x_fe_refresh_state() 60 mutex_unlock(&dst->buf_mutex); in vp702x_fe_refresh_state() 143 struct vp702x_device_state *dst = st->d->priv; in vp702x_fe_set_frontend() local 150 mutex_lock(&dst->buf_mutex); in vp702x_fe_set_frontend() 152 cmd = dst->buf; in vp702x_fe_set_frontend() 196 mutex_unlock(&dst->buf_mutex); in vp702x_fe_set_frontend() 220 struct vp702x_device_state *dst = st->d->priv; in vp702x_fe_send_diseqc_msg() local 227 mutex_lock(&dst->buf_mutex); in vp702x_fe_send_diseqc_msg() [all …]
|
/drivers/gpu/drm/ |
D | drm_rect.c | 68 bool drm_rect_clip_scaled(struct drm_rect *src, struct drm_rect *dst, in drm_rect_clip_scaled() argument 74 diff = clip->x1 - dst->x1; in drm_rect_clip_scaled() 79 diff = clip->y1 - dst->y1; in drm_rect_clip_scaled() 84 diff = dst->x2 - clip->x2; in drm_rect_clip_scaled() 89 diff = dst->y2 - clip->y2; in drm_rect_clip_scaled() 95 return drm_rect_intersect(dst, clip); in drm_rect_clip_scaled() 99 static int drm_calc_scale(int src, int dst) in drm_calc_scale() argument 103 if (src < 0 || dst < 0) in drm_calc_scale() 106 if (dst == 0) in drm_calc_scale() 109 scale = src / dst; in drm_calc_scale() [all …]
|
/drivers/gpu/drm/amd/amdgpu/ |
D | atom.c | 587 uint32_t dst, src, saved; in atom_op_add() local 590 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_add() 593 dst += src; in atom_op_add() 595 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); in atom_op_add() 601 uint32_t dst, src, saved; in atom_op_and() local 604 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_and() 607 dst &= src; in atom_op_and() 609 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); in atom_op_and() 648 uint32_t dst, src; in atom_op_compare() local 650 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); in atom_op_compare() [all …]
|
/drivers/gpu/drm/radeon/ |
D | atom.c | 590 uint32_t dst, src, saved; in atom_op_add() local 593 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_add() 596 dst += src; in atom_op_add() 598 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); in atom_op_add() 604 uint32_t dst, src, saved; in atom_op_and() local 607 dst = atom_get_dst(ctx, arg, attr, ptr, &saved, 1); in atom_op_and() 610 dst &= src; in atom_op_and() 612 atom_put_dst(ctx, arg, attr, &dptr, dst, saved); in atom_op_and() 651 uint32_t dst, src; in atom_op_compare() local 653 dst = atom_get_dst(ctx, arg, attr, ptr, NULL, 1); in atom_op_compare() [all …]
|