| /kernel/linux/linux-6.6/tools/testing/radix-tree/ |
| H A D | regression3.c | 36 bool first; in regression3_test() local 43 first = true; in regression3_test() 46 if (first) { in regression3_test() 49 first = false; in regression3_test() 59 first = true; in regression3_test() 62 if (first) { in regression3_test() 64 first = false; in regression3_test()
|
| /kernel/linux/linux-5.10/kernel/bpf/ |
| H A D | percpu_freelist.c | 18 head->first = NULL; in pcpu_freelist_init() 21 s->extralist.first = NULL; in pcpu_freelist_init() 33 node->next = head->first; in pcpu_freelist_push_node() 34 head->first = node; in pcpu_freelist_push_node() 133 node = head->first; in ___pcpu_freelist_pop() 135 head->first = node->next; in ___pcpu_freelist_pop() 149 node = s->extralist.first; in ___pcpu_freelist_pop() 151 s->extralist.first = node->next; in ___pcpu_freelist_pop() 167 node = head->first; in ___pcpu_freelist_pop_nmi() 169 head->first in ___pcpu_freelist_pop_nmi() [all...] |
| /kernel/linux/linux-6.6/drivers/misc/lkdtm/ |
| H A D | heap.c | 70 * The slub allocator uses the first word to store the free in lkdtm_WRITE_AFTER_FREE() 96 * The slub allocator will use the either the first word or in lkdtm_READ_AFTER_FREE() 194 u8 *first; in lkdtm_SLAB_INIT_ON_ALLOC() local 197 first = kmalloc(512, GFP_KERNEL); in lkdtm_SLAB_INIT_ON_ALLOC() 198 if (!first) { in lkdtm_SLAB_INIT_ON_ALLOC() 199 pr_info("Unable to allocate 512 bytes the first time.\n"); in lkdtm_SLAB_INIT_ON_ALLOC() 203 memset(first, 0xAB, 512); in lkdtm_SLAB_INIT_ON_ALLOC() 204 kfree(first); in lkdtm_SLAB_INIT_ON_ALLOC() 211 if (val != first) { in lkdtm_SLAB_INIT_ON_ALLOC() 226 u8 *first; in lkdtm_BUDDY_INIT_ON_ALLOC() local [all...] |
| /kernel/linux/linux-5.10/lib/ |
| H A D | kasprintf.c | 17 unsigned int first, second; in kvasprintf() local 22 first = vsnprintf(NULL, 0, fmt, aq); in kvasprintf() 25 p = kmalloc_track_caller(first+1, gfp); in kvasprintf() 29 second = vsnprintf(p, first+1, fmt, ap); in kvasprintf() 30 WARN(first != second, "different return values (%u and %u) from vsnprintf(\"%s\", ...)", in kvasprintf() 31 first, second, fmt); in kvasprintf()
|
| /kernel/linux/linux-6.6/lib/ |
| H A D | kasprintf.c | 17 unsigned int first, second; in kvasprintf() local 22 first = vsnprintf(NULL, 0, fmt, aq); in kvasprintf() 25 p = kmalloc_track_caller(first+1, gfp); in kvasprintf() 29 second = vsnprintf(p, first+1, fmt, ap); in kvasprintf() 30 WARN(first != second, "different return values (%u and %u) from vsnprintf(\"%s\", ...)", in kvasprintf() 31 first, second, fmt); in kvasprintf()
|
| /kernel/linux/linux-5.10/drivers/crypto/marvell/cesa/ |
| H A D | tdma.c | 51 writel_relaxed(dreq->chain.first->cur_dma, in mv_cesa_dma_step() 62 for (tdma = dreq->chain.first; tdma;) { in mv_cesa_dma_cleanup() 75 dreq->chain.first = NULL; in mv_cesa_dma_cleanup() 84 for (tdma = dreq->chain.first; tdma; tdma = tdma->next) { in mv_cesa_dma_prepare() 99 if (engine->chain.first == NULL && engine->chain.last == NULL) { in mv_cesa_tdma_chain() 100 engine->chain.first = dreq->chain.first; in mv_cesa_tdma_chain() 106 last->next = dreq->chain.first; in mv_cesa_tdma_chain() 116 !(dreq->chain.first->flags & CESA_TDMA_SET_STATE)) in mv_cesa_tdma_chain() 117 last->next_dma = cpu_to_le32(dreq->chain.first in mv_cesa_tdma_chain() [all...] |
| /kernel/linux/linux-5.10/include/linux/sched/ |
| H A D | wake_q.h | 39 struct wake_q_node *first; member 46 struct wake_q_head name = { WAKE_Q_TAIL, &name.first } 50 head->first = WAKE_Q_TAIL; in wake_q_init() 51 head->lastp = &head->first; in wake_q_init() 56 return head->first == WAKE_Q_TAIL; in wake_q_empty()
|
| /kernel/linux/linux-6.6/include/linux/sched/ |
| H A D | wake_q.h | 39 struct wake_q_node *first; member 46 { WAKE_Q_TAIL, &name.first } 53 head->first = WAKE_Q_TAIL; in wake_q_init() 54 head->lastp = &head->first; in wake_q_init() 59 return head->first == WAKE_Q_TAIL; in wake_q_empty()
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/ibm/ |
| H A D | ibmvnic.h | 248 u8 first; member 264 u8 first; member 291 u8 first; member 303 u8 first; member 311 u8 first; member 324 u8 first; member 340 u8 first; member 345 u8 first; member 360 u8 first; member 367 u8 first; member 376 u8 first; global() member 384 u8 first; global() member 392 u8 first; global() member 421 u8 first; global() member 432 u8 first; global() member 441 u8 first; global() member 450 u8 first; global() member 461 u8 first; global() member 473 u8 first; global() member 482 u8 first; global() member 490 u8 first; global() member 504 u8 first; global() member 510 u8 first; global() member 518 u8 first; global() member 527 u8 first; global() member 534 u8 first; global() member 543 u8 first; global() member 552 u8 first; global() member 561 u8 first; global() member 571 u8 first; global() member 580 u8 first; global() member 588 u8 first; global() member 597 u8 first; global() member 603 u8 first; global() member [all...] |
| /kernel/linux/linux-5.10/fs/xfs/libxfs/ |
| H A D | xfs_types.c | 64 /* Calculate the first and last possible inode number in an AG. */ 69 xfs_agino_t *first, in xfs_agino_range() 78 * Calculate the first inode, which will be in the first in xfs_agino_range() 82 *first = XFS_AGB_TO_AGINO(mp, bno); in xfs_agino_range() 102 xfs_agino_t first; in xfs_verify_agino() local 105 xfs_agino_range(mp, agno, &first, &last); in xfs_verify_agino() 106 return agino >= first && agino <= last; in xfs_verify_agino() 188 /* root, rtbitmap, rtsum all live in the first chunk */ in xfs_icount_range() 192 xfs_agino_t first, las in xfs_icount_range() local 66 xfs_agino_range( struct xfs_mount *mp, xfs_agnumber_t agno, xfs_agino_t *first, xfs_agino_t *last) xfs_agino_range() argument [all...] |
| /kernel/linux/linux-6.6/include/linux/ |
| H A D | rculist_nulls.h | 42 * hlist_nulls_first_rcu - returns the first element of the hash list. 46 (*((struct hlist_nulls_node __rcu __force **)&(head)->first)) 102 struct hlist_nulls_node *first = h->first; in hlist_nulls_add_head_rcu() local 104 WRITE_ONCE(n->next, first); in hlist_nulls_add_head_rcu() 105 WRITE_ONCE(n->pprev, &h->first); in hlist_nulls_add_head_rcu() 107 if (!is_a_nulls(first)) in hlist_nulls_add_head_rcu() 108 WRITE_ONCE(first->pprev, &n->next); in hlist_nulls_add_head_rcu() 136 for (i = h->first; !is_a_nulls(i); i = i->next) in hlist_nulls_add_tail_rcu() 162 * The barrier() is needed to make sure compiler doesn't cache first elemen [all...] |
| H A D | rculist.h | 211 * @next: points to the first element of the existing list 231 struct list_head *first = list->next; in __list_splice_init_rcu() local 235 * "first" and "last" tracking list, so initialize it. RCU readers in __list_splice_init_rcu() 250 ASSERT_EXCLUSIVE_ACCESS(*first); in __list_splice_init_rcu() 262 rcu_assign_pointer(list_next_rcu(prev), first); in __list_splice_init_rcu() local 263 first->prev = prev; in __list_splice_init_rcu() 271 * @head: the place in the existing list to splice the first list into 286 * @head: the place in the existing list to splice the first list into 340 * list_first_or_null_rcu - get the first element from a list 358 * list_next_or_null_rcu - get the first elemen 587 struct hlist_node *first = h->first; hlist_add_head_rcu() local [all...] |
| /kernel/linux/linux-5.10/drivers/dma/ |
| H A D | at_xdmac.c | 242 /* Following members are only used by the first descriptor */ 336 struct at_xdmac_desc *first) in at_xdmac_start_xfer() 341 dev_vdbg(chan2dev(&atchan->chan), "%s: desc 0x%p\n", __func__, first); in at_xdmac_start_xfer() 344 first->active_xfer = true; in at_xdmac_start_xfer() 346 /* Tell xdmac where to get the first descriptor. */ in at_xdmac_start_xfer() 347 reg = AT_XDMAC_CNDA_NDA(first->tx_dma_desc.phys) in at_xdmac_start_xfer() 358 else if ((first->lld.mbr_ubc & in at_xdmac_start_xfer() 369 at_xdmac_chan_write(atchan, AT_XDMAC_CC, first->lld.mbr_cfg); in at_xdmac_start_xfer() 390 if (at_xdmac_chan_is_peripheral_xfer(first->lld.mbr_cfg)) in at_xdmac_start_xfer() 637 struct at_xdmac_desc *first in at_xdmac_prep_slave_sg() local 335 at_xdmac_start_xfer(struct at_xdmac_chan *atchan, struct at_xdmac_desc *first) at_xdmac_start_xfer() argument 717 __func__, desc, first); at_xdmac_prep_slave_sg() local 740 struct at_xdmac_desc *first = NULL, *prev = NULL; at_xdmac_prep_dma_cyclic() local 806 __func__, desc, first); at_xdmac_prep_dma_cyclic() local 945 struct at_xdmac_desc *prev = NULL, *first = NULL; at_xdmac_prep_interleaved() local 981 __func__, first, first); at_xdmac_prep_interleaved() local 1015 __func__, desc, first); at_xdmac_prep_interleaved() local 1041 struct at_xdmac_desc *first = NULL, *prev = NULL; at_xdmac_prep_dma_memcpy() local 1131 __func__, desc, first); at_xdmac_prep_dma_memcpy() local 1239 *ppdesc = NULL, *first = NULL; at_xdmac_prep_dma_memset_sg() local 1344 __func__, desc, first); at_xdmac_prep_dma_memset_sg() local [all...] |
| /base/security/dlp_permission_service/services/dlp_permission/sa/storage/src/ |
| H A D | sandbox_config_kv_data_storage.cpp | 129 std::size_t first = it->first.find_first_of(KEY_SEPATATOR); in GetKeyMapByUserId() local 130 std::size_t second = it->first.find_last_of(KEY_SEPATATOR); in GetKeyMapByUserId() 131 if (it->first.find(prefix) != std::string::npos && first != second) { in GetKeyMapByUserId() 132 std::string bundleName = it->first.substr(prefix.length(), second - first - 1); in GetKeyMapByUserId() 133 std::string tokenId = it->first.substr(second + 1, it->first.length() - second - 1); in GetKeyMapByUserId()
|
| /kernel/linux/linux-5.10/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_misc.h | 77 struct sym_quehead *first = list->flink; in sym_que_splice() local 79 if (first != list) { in sym_que_splice() 83 first->blink = head; in sym_que_splice() 84 head->flink = first; in sym_que_splice() 94 struct sym_quehead *first, *last; in sym_que_move() local 96 first = orig->flink; in sym_que_move() 97 if (first != orig) { in sym_que_move() 98 first->blink = dest; in sym_que_move() 99 dest->flink = first; in sym_que_move()
|
| /kernel/linux/linux-6.6/drivers/scsi/sym53c8xx_2/ |
| H A D | sym_misc.h | 77 struct sym_quehead *first = list->flink; in sym_que_splice() local 79 if (first != list) { in sym_que_splice() 83 first->blink = head; in sym_que_splice() 84 head->flink = first; in sym_que_splice() 94 struct sym_quehead *first, *last; in sym_que_move() local 96 first = orig->flink; in sym_que_move() 97 if (first != orig) { in sym_que_move() 98 first->blink = dest; in sym_que_move() 99 dest->flink = first; in sym_que_move()
|
| /kernel/linux/linux-6.6/drivers/net/ethernet/microchip/sparx5/ |
| H A D | sparx5_sdlb.c | 139 u32 *first) in sparx5_sdlb_group_get_adjacent() 143 *first = sparx5_sdlb_group_get_first(sparx5, group); in sparx5_sdlb_group_get_adjacent() 144 *prev = *first; in sparx5_sdlb_group_get_adjacent() 145 *next = *first; in sparx5_sdlb_group_get_adjacent() 146 itr = *first; in sparx5_sdlb_group_get_adjacent() 235 u32 first, u32 next, bool empty) in sparx5_sdlb_group_link() 248 /* Set the first lb */ in sparx5_sdlb_group_link() 249 spx5_wr(ANA_AC_SDLB_XLB_START_LBSET_START_SET(first), sparx5, in sparx5_sdlb_group_link() 260 u32 first, next; in sparx5_sdlb_group_add() local 263 first in sparx5_sdlb_group_add() 137 sparx5_sdlb_group_get_adjacent(struct sparx5 *sparx5, u32 group, u32 idx, u32 *prev, u32 *next, u32 *first) sparx5_sdlb_group_get_adjacent() argument 234 sparx5_sdlb_group_link(struct sparx5 *sparx5, u32 group, u32 idx, u32 first, u32 next, bool empty) sparx5_sdlb_group_link() argument 275 u32 first, next, prev; sparx5_sdlb_group_del() local [all...] |
| /kernel/linux/linux-5.10/drivers/video/fbdev/core/ |
| H A D | cfbcopyarea.c | 50 unsigned long first, last; in bitcpy() local 63 first = fb_shifted_pixels_mask_long(p, dst_idx, bswapmask); in bitcpy() 72 first &= last; in bitcpy() 73 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy() local 78 if (first != ~0UL) { in bitcpy() 79 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy() local 116 first &= last; in bitcpy() 132 FB_WRITEL(comp(d0, FB_READL(dst), first), dst); in bitcpy() 157 FB_WRITEL(comp(d0, FB_READL(dst), first), dst); in bitcpy() 216 unsigned long first, las in bitcpy_rev() local 252 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); bitcpy_rev() local [all...] |
| /kernel/linux/linux-6.6/drivers/video/fbdev/core/ |
| H A D | cfbcopyarea.c | 50 unsigned long first, last; in bitcpy() local 63 first = fb_shifted_pixels_mask_long(p, dst_idx, bswapmask); in bitcpy() 72 first &= last; in bitcpy() 73 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy() local 78 if (first != ~0UL) { in bitcpy() 79 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); in bitcpy() local 116 first &= last; in bitcpy() 132 FB_WRITEL(comp(d0, FB_READL(dst), first), dst); in bitcpy() 157 FB_WRITEL(comp(d0, FB_READL(dst), first), dst); in bitcpy() 216 unsigned long first, las in bitcpy_rev() local 252 FB_WRITEL( comp( FB_READL(src), FB_READL(dst), first), dst); bitcpy_rev() local [all...] |
| /kernel/linux/linux-6.6/drivers/net/ethernet/intel/ice/ |
| H A D | ice_txrx.c | 36 struct ice_tx_buf *tx_buf, *first; in ice_prgm_fdir_fltr() local 68 first = &tx_ring->tx_buf[i]; in ice_prgm_fdir_fltr() 100 first->next_to_watch = tx_desc; in ice_prgm_fdir_fltr() 992 /* Prefetch first cache line of first page. If xdp->data_meta in ice_build_skb() 994 * likely have a consumer accessing first few bytes of meta in ice_build_skb() 1042 /* prefetch first cache line of first page */ in ice_construct_skb() 1159 u32 first; in ice_clean_rx_irq() local 1301 first in ice_clean_rx_irq() 1641 ice_tx_map(struct ice_tx_ring *tx_ring, struct ice_tx_buf *first, struct ice_tx_offload_params *off) ice_tx_map() argument 1793 ice_tx_csum(struct ice_tx_buf *first, struct ice_tx_offload_params *off) ice_tx_csum() argument 1986 ice_tx_prepare_vlan_flags(struct ice_tx_ring *tx_ring, struct ice_tx_buf *first) ice_tx_prepare_vlan_flags() argument 2017 ice_tso(struct ice_tx_buf *first, struct ice_tx_offload_params *off) ice_tso() argument 2299 ice_tstamp(struct ice_tx_ring *tx_ring, struct sk_buff *skb, struct ice_tx_buf *first, struct ice_tx_offload_params *off) ice_tstamp() argument 2340 struct ice_tx_buf *first; ice_xmit_frame_ring() local [all...] |
| /kernel/linux/linux-6.6/arch/loongarch/kernel/ |
| H A D | unwind_prologue.c | 81 * As we meet ftrace_regs_entry, reset first flag like first doing 124 state->first = true; in unwind_by_prologue() 133 * When first is not set, the PC is a return address in the previous frame. in unwind_by_prologue() 136 pc = state->pc - (state->first ? 0 : LOONGARCH_INSN_SIZE); in unwind_by_prologue() 154 * first being true is reasonable, otherwise indicate analysis is broken. in unwind_by_prologue() 157 if (state->first) in unwind_by_prologue() 158 goto first; in unwind_by_prologue() 175 if (state->first) { in unwind_by_prologue() 177 goto first; in unwind_by_prologue() [all...] |
| /base/hiviewdfx/hiview/base/event_store/store/ |
| H A D | sys_event_doc_lru_cache.cpp | 35 auto iterList = iterCache->second.first;
in Get() 37 lruList_.push_front(iterCache->first);
in Get() 38 iterCache->second.first = lruList_.begin();
in Get() 50 HIVIEW_LOGD("put sysEventDoc domain=%{public}s, name=%{public}s", key.first.c_str(), key.second.c_str());
in Add() 64 lruList_.erase(iterCache->second.first);
in Remove()
|
| /kernel/linux/linux-5.10/drivers/net/wireguard/ |
| H A D | send.c | 242 static void wg_packet_create_data_done(struct wg_peer *peer, struct sk_buff *first) in wg_packet_create_data_done() argument 249 skb_list_walk_safe(first, skb, next) { in wg_packet_create_data_done() 267 struct sk_buff *first; in wg_packet_tx_worker() local 269 while ((first = wg_prev_queue_peek(&peer->tx_queue)) != NULL && in wg_packet_tx_worker() 270 (state = atomic_read_acquire(&PACKET_CB(first)->state)) != in wg_packet_tx_worker() 273 keypair = PACKET_CB(first)->keypair; in wg_packet_tx_worker() 276 wg_packet_create_data_done(peer, first); in wg_packet_tx_worker() 278 kfree_skb_list(first); in wg_packet_tx_worker() 291 struct sk_buff *first, *skb, *next; in wg_packet_encrypt_worker() local 293 while ((first in wg_packet_encrypt_worker() 311 wg_packet_create_data(struct wg_peer *peer, struct sk_buff *first) wg_packet_create_data() argument [all...] |
| /kernel/linux/linux-5.10/include/linux/ |
| H A D | rculist.h | 220 * @next: points to the first element of the existing list 240 struct list_head *first = list->next; in __list_splice_init_rcu() local 244 * "first" and "last" tracking list, so initialize it. RCU readers in __list_splice_init_rcu() 259 ASSERT_EXCLUSIVE_ACCESS(*first); in __list_splice_init_rcu() 271 rcu_assign_pointer(list_next_rcu(prev), first); in __list_splice_init_rcu() local 272 first->prev = prev; in __list_splice_init_rcu() 280 * @head: the place in the existing list to splice the first list into 295 * @head: the place in the existing list to splice the first list into 341 * list_first_or_null_rcu - get the first element from a list 359 * list_next_or_null_rcu - get the first elemen 588 struct hlist_node *first = h->first; hlist_add_head_rcu() local [all...] |
| /kernel/linux/linux-6.6/drivers/net/wireguard/ |
| H A D | send.c | 242 static void wg_packet_create_data_done(struct wg_peer *peer, struct sk_buff *first) in wg_packet_create_data_done() argument 249 skb_list_walk_safe(first, skb, next) { in wg_packet_create_data_done() 267 struct sk_buff *first; in wg_packet_tx_worker() local 269 while ((first = wg_prev_queue_peek(&peer->tx_queue)) != NULL && in wg_packet_tx_worker() 270 (state = atomic_read_acquire(&PACKET_CB(first)->state)) != in wg_packet_tx_worker() 273 keypair = PACKET_CB(first)->keypair; in wg_packet_tx_worker() 276 wg_packet_create_data_done(peer, first); in wg_packet_tx_worker() 278 kfree_skb_list(first); in wg_packet_tx_worker() 291 struct sk_buff *first, *skb, *next; in wg_packet_encrypt_worker() local 293 while ((first in wg_packet_encrypt_worker() 311 wg_packet_create_data(struct wg_peer *peer, struct sk_buff *first) wg_packet_create_data() argument [all...] |