Home
last modified time | relevance | path

Searched refs:src_idx (Results 1 – 25 of 27) sorted by relevance

12

/linux-6.1.9/drivers/video/fbdev/core/
Dsyscopyarea.c29 const unsigned long *src, unsigned src_idx, int bits, unsigned n) in bitcpy() argument
32 int const shift = dst_idx-src_idx; in bitcpy()
90 } else if (src_idx+n <= bits) { in bitcpy()
171 const unsigned long *src, unsigned src_idx, unsigned bits, in bitcpy_rev() argument
178 src += (src_idx + n - 1) / bits; in bitcpy_rev()
180 src_idx = (src_idx + n - 1) % bits; in bitcpy_rev()
182 shift = dst_idx-src_idx; in bitcpy_rev()
237 } else if (1+(unsigned long)src_idx >= n) { in bitcpy_rev()
322 unsigned dst_idx = 0, src_idx = 0, rev_copy = 0; in sys_copyarea() local
338 dst_idx = src_idx = 8*((unsigned long)p->screen_base & (bytes-1)); in sys_copyarea()
[all …]
Dcfbcopyarea.c47 const unsigned long __iomem *src, unsigned src_idx, int bits, in bitcpy() argument
51 int const shift = dst_idx-src_idx; in bitcpy()
59 (char *)src + ((src_idx & (bits - 1))) / 8, n / 8); in bitcpy()
122 } else if (src_idx+n <= bits) { in bitcpy()
213 const unsigned long __iomem *src, unsigned src_idx, int bits, in bitcpy_rev() argument
225 (char *)src + ((src_idx & (bits - 1))) / 8, n / 8); in bitcpy_rev()
230 src += (src_idx + n - 1) / bits; in bitcpy_rev()
232 src_idx = (src_idx + n - 1) % bits; in bitcpy_rev()
234 shift = dst_idx-src_idx; in bitcpy_rev()
294 } else if (1+(unsigned long)src_idx >= n) { in bitcpy_rev()
[all …]
/linux-6.1.9/drivers/dma/
Diop-adma.h194 iop_desc_set_pq_src_addr(struct iop_adma_desc_slot *desc, int src_idx, in iop_desc_set_pq_src_addr() argument
396 static inline int __desc_idx(int src_idx) in __desc_idx() argument
408 return desc_idx_table[src_idx]; in __desc_idx()
413 int src_idx) in iop_desc_get_src_addr() argument
427 if (src_idx < 4) in iop_desc_get_src_addr()
428 return hw_desc.aau->src[src_idx]; in iop_desc_get_src_addr()
430 return hw_desc.aau->src_edc[__desc_idx(src_idx)].src_addr; in iop_desc_get_src_addr()
434 int src_idx, dma_addr_t addr) in iop3xx_aau_desc_set_src_addr() argument
436 if (src_idx < 4) in iop3xx_aau_desc_set_src_addr()
437 hw_desc->src[src_idx] = addr; in iop3xx_aau_desc_set_src_addr()
[all …]
Dmv_xor.c874 int i, src_idx, ret; in mv_chan_xor_self_test() local
888 for (src_idx = 0; src_idx < src_count; src_idx++) { in mv_chan_xor_self_test()
889 xor_srcs[src_idx] = alloc_page(GFP_KERNEL); in mv_chan_xor_self_test()
890 if (!xor_srcs[src_idx]) { in mv_chan_xor_self_test()
891 while (src_idx--) in mv_chan_xor_self_test()
892 __free_page(xor_srcs[src_idx]); in mv_chan_xor_self_test()
899 while (src_idx--) in mv_chan_xor_self_test()
900 __free_page(xor_srcs[src_idx]); in mv_chan_xor_self_test()
905 for (src_idx = 0; src_idx < src_count; src_idx++) { in mv_chan_xor_self_test()
906 u8 *ptr = page_address(xor_srcs[src_idx]); in mv_chan_xor_self_test()
[all …]
Dmv_xor.h171 #define mv_phy_src_idx(src_idx) (src_idx) argument
184 #define mv_phy_src_idx(src_idx) (src_idx ^ 1) argument
Diop-adma.c908 int i, src_idx; in iop_adma_xor_val_self_test() local
925 for (src_idx = 0; src_idx < IOP_ADMA_NUM_SRC_TEST; src_idx++) { in iop_adma_xor_val_self_test()
926 xor_srcs[src_idx] = alloc_page(GFP_KERNEL); in iop_adma_xor_val_self_test()
927 if (!xor_srcs[src_idx]) { in iop_adma_xor_val_self_test()
928 while (src_idx--) in iop_adma_xor_val_self_test()
929 __free_page(xor_srcs[src_idx]); in iop_adma_xor_val_self_test()
936 while (src_idx--) in iop_adma_xor_val_self_test()
937 __free_page(xor_srcs[src_idx]); in iop_adma_xor_val_self_test()
942 for (src_idx = 0; src_idx < IOP_ADMA_NUM_SRC_TEST; src_idx++) { in iop_adma_xor_val_self_test()
943 u8 *ptr = page_address(xor_srcs[src_idx]); in iop_adma_xor_val_self_test()
[all …]
/linux-6.1.9/drivers/dma/ioat/
Dinit.c785 int i, src_idx; in ioat_xor_val_self_test() local
809 for (src_idx = 0; src_idx < IOAT_NUM_SRC_TEST; src_idx++) { in ioat_xor_val_self_test()
810 xor_srcs[src_idx] = alloc_page(GFP_KERNEL); in ioat_xor_val_self_test()
811 if (!xor_srcs[src_idx]) { in ioat_xor_val_self_test()
812 while (src_idx--) in ioat_xor_val_self_test()
813 __free_page(xor_srcs[src_idx]); in ioat_xor_val_self_test()
820 while (src_idx--) in ioat_xor_val_self_test()
821 __free_page(xor_srcs[src_idx]); in ioat_xor_val_self_test()
826 for (src_idx = 0; src_idx < IOAT_NUM_SRC_TEST; src_idx++) { in ioat_xor_val_self_test()
827 u8 *ptr = page_address(xor_srcs[src_idx]); in ioat_xor_val_self_test()
[all …]
/linux-6.1.9/mm/
Dlist_lru.c353 static void memcg_list_lru_free(struct list_lru *lru, int src_idx) in memcg_list_lru_free() argument
355 struct list_lru_memcg *mlru = xa_erase_irq(&lru->xa, src_idx); in memcg_list_lru_free()
391 int src_idx, struct mem_cgroup *dst_memcg) in memcg_reparent_list_lru_node() argument
403 src = list_lru_from_memcg_idx(lru, nid, src_idx); in memcg_reparent_list_lru_node()
420 int src_idx, struct mem_cgroup *dst_memcg) in memcg_reparent_list_lru() argument
425 memcg_reparent_list_lru_node(lru, i, src_idx, dst_memcg); in memcg_reparent_list_lru()
427 memcg_list_lru_free(lru, src_idx); in memcg_reparent_list_lru()
434 int src_idx = memcg->kmemcg_id; in memcg_reparent_list_lrus() local
460 memcg_reparent_list_lru(lru, src_idx, parent); in memcg_reparent_list_lrus()
/linux-6.1.9/fs/pstore/
Dftrace.c161 size_t dest_idx = 0, src_idx = 0, merged_idx = 0; in pstore_ftrace_combine_log() local
183 pstore_ftrace_read_timestamp(&srec[src_idx])) { in pstore_ftrace_combine_log()
187 mrec[merged_idx++] = srec[src_idx++]; in pstore_ftrace_combine_log()
198 mrec[merged_idx++] = srec[src_idx++]; in pstore_ftrace_combine_log()
/linux-6.1.9/drivers/media/v4l2-core/
Dv4l2-mc.c326 int src_idx, sink_idx, ret; in v4l2_create_fwnode_links_to_pad() local
329 src_idx = media_entity_get_fwnode_pad(&src_sd->entity, in v4l2_create_fwnode_links_to_pad()
332 if (src_idx < 0) in v4l2_create_fwnode_links_to_pad()
359 src = &src_sd->entity.pads[src_idx]; in v4l2_create_fwnode_links_to_pad()
366 src_sd->entity.name, src_idx, in v4l2_create_fwnode_links_to_pad()
369 ret = media_create_pad_link(&src_sd->entity, src_idx, in v4l2_create_fwnode_links_to_pad()
374 src_sd->entity.name, src_idx, in v4l2_create_fwnode_links_to_pad()
/linux-6.1.9/net/bridge/
Dbr_multicast_eht.c514 u32 src_idx; in __eht_create_set_entries() local
517 for (src_idx = 0; src_idx < nsrcs; src_idx++) { in __eht_create_set_entries()
518 memcpy(&eht_src_addr, srcs + (src_idx * addr_size), addr_size); in __eht_create_set_entries()
536 u32 src_idx; in __eht_del_set_entries() local
541 for (src_idx = 0; src_idx < nsrcs; src_idx++) { in __eht_del_set_entries()
542 memcpy(&eht_src_addr, srcs + (src_idx * addr_size), addr_size); in __eht_del_set_entries()
545 memcpy(&src_ip, srcs + (src_idx * addr_size), addr_size); in __eht_del_set_entries()
Dbr_multicast.c2089 u32 src_idx; in br_multicast_isinc_allow() local
2093 for (src_idx = 0; src_idx < nsrcs; src_idx++) { in br_multicast_isinc_allow()
2094 memcpy(&src_ip.src, srcs + (src_idx * addr_size), addr_size); in br_multicast_isinc_allow()
2125 u32 src_idx; in __grp_src_isexc_incl() local
2132 for (src_idx = 0; src_idx < nsrcs; src_idx++) { in __grp_src_isexc_incl()
2133 memcpy(&src_ip.src, srcs + (src_idx * addr_size), addr_size); in __grp_src_isexc_incl()
2164 u32 src_idx; in __grp_src_isexc_excl() local
2171 for (src_idx = 0; src_idx < nsrcs; src_idx++) { in __grp_src_isexc_excl()
2172 memcpy(&src_ip.src, srcs + (src_idx * addr_size), addr_size); in __grp_src_isexc_excl()
2232 u32 src_idx, to_send = pg->src_ents; in __grp_src_toin_incl() local
[all …]
/linux-6.1.9/drivers/gpu/drm/i915/selftests/
Di915_vma.c380 unsigned long src_idx; in assert_rotated() local
389 src_idx = rotated_index(r, n, x, y); in assert_rotated()
390 src = i915_gem_object_get_dma_address(obj, src_idx); in assert_rotated()
395 x, y, src_idx); in assert_rotated()
401 x, y, src_idx); in assert_rotated()
457 unsigned long src_idx; in assert_remapped() local
470 src_idx = remapped_index(r, n, x, y); in assert_remapped()
471 src = i915_gem_object_get_dma_address(obj, src_idx); in assert_remapped()
476 x, y, src_idx); in assert_remapped()
482 x, y, src_idx); in assert_remapped()
[all …]
/linux-6.1.9/drivers/video/fbdev/
Damifb.c2592 int src_idx, u32 n) in bitcpy() argument
2595 int shift = dst_idx - src_idx, left, right; in bitcpy()
2602 shift = dst_idx - src_idx; in bitcpy()
2657 } else if (src_idx + n <= BITS_PER_LONG) { in bitcpy()
2732 const unsigned long *src, int src_idx, u32 n) in bitcpy_rev() argument
2735 int shift = dst_idx - src_idx, left, right; in bitcpy_rev()
2748 src_idx += (n - 1) % BITS_PER_LONG; in bitcpy_rev()
2749 src += src_idx >> SHIFT_PER_LONG; in bitcpy_rev()
2750 src_idx &= BITS_PER_LONG - 1; in bitcpy_rev()
2753 shift = dst_idx - src_idx; in bitcpy_rev()
[all …]
/linux-6.1.9/net/can/
Dgw.c122 int src_idx; member
739 if (nla_put_u32(skb, CGW_SRC_IF, gwj->ccgw.src_idx) < 0) in cgw_put_job()
1039 ccgw->src_idx = nla_get_u32(tb[CGW_SRC_IF]); in cgw_parse_attr()
1043 if (!ccgw->src_idx && !ccgw->dst_idx) in cgw_parse_attr()
1047 if (!ccgw->src_idx || !ccgw->dst_idx) in cgw_parse_attr()
1106 if (!ccgw.src_idx || !ccgw.dst_idx) in cgw_create_job()
1126 gwj->src.dev = __dev_get_by_index(net, gwj->ccgw.src_idx); in cgw_create_job()
1199 if (!ccgw.src_idx && !ccgw.dst_idx) { in cgw_remove_job()
/linux-6.1.9/net/ipv6/
Ddatagram.c793 int src_idx; in ip6_datagram_send_ctl() local
801 src_idx = src_info->ipi6_ifindex; in ip6_datagram_send_ctl()
803 if (src_idx) { in ip6_datagram_send_ctl()
805 src_idx != fl6->flowi6_oif && in ip6_datagram_send_ctl()
807 !sk_dev_equal_l3scope(sk, src_idx))) in ip6_datagram_send_ctl()
809 fl6->flowi6_oif = src_idx; in ip6_datagram_send_ctl()
/linux-6.1.9/drivers/net/ethernet/broadcom/
Db44.c654 static int b44_alloc_rx_skb(struct b44 *bp, int src_idx, u32 dest_idx_unmasked) in b44_alloc_rx_skb() argument
665 if (src_idx >= 0) in b44_alloc_rx_skb()
666 src_map = &bp->rx_buffers[src_idx]; in b44_alloc_rx_skb()
729 static void b44_recycle_rx(struct b44 *bp, int src_idx, u32 dest_idx_unmasked) in b44_recycle_rx() argument
740 src_desc = &bp->rx_ring[src_idx]; in b44_recycle_rx()
741 src_map = &bp->rx_buffers[src_idx]; in b44_recycle_rx()
751 src_idx * sizeof(*src_desc), in b44_recycle_rx()
/linux-6.1.9/drivers/gpu/drm/i915/
Di915_vma.c912 unsigned int src_idx; in rotate_pages() local
917 src_idx = src_stride * (height - 1) + column + offset; in rotate_pages()
927 i915_gem_object_get_dma_address(obj, src_idx); in rotate_pages()
930 src_idx -= src_stride; in rotate_pages()
/linux-6.1.9/sound/usb/
Dmixer_scarlett_gen2.c1570 int dst_idx, src_idx; in scarlett2_usb_populate_mux() local
1584 src_idx = scarlett2_mux_id_to_num(port_count, SCARLETT2_PORT_IN, in scarlett2_usb_populate_mux()
1586 if (src_idx < 0) in scarlett2_usb_populate_mux()
1589 if (src_idx >= private->num_mux_srcs) { in scarlett2_usb_populate_mux()
1592 mux_entry, src_idx, private->num_mux_srcs); in scarlett2_usb_populate_mux()
1596 private->mux[dst_idx] = src_idx; in scarlett2_usb_populate_mux()
Dpcm.c1306 unsigned int src_idx = subs->hwptr_done; in fill_playback_urb_dsd_dop() local
1333 src_idx += 2; in fill_playback_urb_dsd_dop()
1344 int idx = (src_idx + subs->dsd_dop.byte_idx - 1) % wrap; in fill_playback_urb_dsd_dop()
/linux-6.1.9/drivers/net/ethernet/intel/ice/
Dice_ptp_hw.c3387 u8 src_idx = hw->func_caps.ts_func_info.tmr_index_owned; in ice_ptp_init_phc() local
3390 wr32(hw, GLTSYN_ENA(src_idx), GLTSYN_ENA_TSYN_ENA_M); in ice_ptp_init_phc()
3393 (void)rd32(hw, GLTSYN_STAT(src_idx)); in ice_ptp_init_phc()
/linux-6.1.9/drivers/net/ethernet/huawei/hinic/
Dhinic_hw_mbox.c1238 u16 src_idx = vf_id + hinic_glb_pf_vf_offset(hwdev->hwif); in hinic_mbox_check_cmd_valid() local
1244 return cmd_handle[i].check_cmd(hwdev, src_idx, in hinic_mbox_check_cmd_valid()
/linux-6.1.9/fs/xfs/
Dxfs_trace.h2120 TP_PROTO(struct xfs_da_args *args, int src_idx, int dst_idx, int count),
2121 TP_ARGS(args, src_idx, dst_idx, count),
2126 __field(int, src_idx)
2134 __entry->src_idx = src_idx;
2143 __entry->src_idx,
/linux-6.1.9/sound/pci/ctxfi/
Dcthw20k2.c352 static unsigned int src_param_pitch_mixer(unsigned int src_idx) in src_param_pitch_mixer() argument
354 return ((src_idx << 4) + AR_PTS_PITCH + AR_SLOT_SIZE in src_param_pitch_mixer()
Dcthw20k1.c352 static unsigned int src_param_pitch_mixer(unsigned int src_idx) in src_param_pitch_mixer() argument
354 return ((src_idx << 4) + AR_PTS_PITCH + AR_SLOT_SIZE in src_param_pitch_mixer()

12