/kernel/linux/linux-5.10/net/rds/ |
H A D | ib_ring.c | 144 * returns the oldest alloced ring entry. This will be the next one 156 u32 rds_ib_ring_completed(struct rds_ib_work_ring *ring, u32 wr_id, u32 oldest) in rds_ib_ring_completed() argument 160 if (oldest <= (unsigned long long)wr_id) in rds_ib_ring_completed() 161 ret = (unsigned long long)wr_id - oldest + 1; in rds_ib_ring_completed() 163 ret = ring->w_nr - oldest + (unsigned long long)wr_id + 1; in rds_ib_ring_completed() 165 rdsdebug("ring %p ret %u wr_id %u oldest %u\n", ring, ret, in rds_ib_ring_completed() 166 wr_id, oldest); in rds_ib_ring_completed()
|
H A D | ib_send.c | 249 u32 oldest; in rds_ib_send_cqe_handler() local 267 oldest = rds_ib_ring_oldest(&ic->i_send_ring); in rds_ib_send_cqe_handler() 269 completed = rds_ib_ring_completed(&ic->i_send_ring, wc->wr_id, oldest); in rds_ib_send_cqe_handler() 272 send = &ic->i_sends[oldest]; in rds_ib_send_cqe_handler() 292 oldest = (oldest + 1) % ic->i_send_ring.w_nr; in rds_ib_send_cqe_handler()
|
/kernel/linux/linux-6.6/net/rds/ |
H A D | ib_ring.c | 144 * returns the oldest allocated ring entry. This will be the next one 156 u32 rds_ib_ring_completed(struct rds_ib_work_ring *ring, u32 wr_id, u32 oldest) in rds_ib_ring_completed() argument 160 if (oldest <= (unsigned long long)wr_id) in rds_ib_ring_completed() 161 ret = (unsigned long long)wr_id - oldest + 1; in rds_ib_ring_completed() 163 ret = ring->w_nr - oldest + (unsigned long long)wr_id + 1; in rds_ib_ring_completed() 165 rdsdebug("ring %p ret %u wr_id %u oldest %u\n", ring, ret, in rds_ib_ring_completed() 166 wr_id, oldest); in rds_ib_ring_completed()
|
H A D | ib_send.c | 249 u32 oldest; in rds_ib_send_cqe_handler() local 267 oldest = rds_ib_ring_oldest(&ic->i_send_ring); in rds_ib_send_cqe_handler() 269 completed = rds_ib_ring_completed(&ic->i_send_ring, wc->wr_id, oldest); in rds_ib_send_cqe_handler() 272 send = &ic->i_sends[oldest]; in rds_ib_send_cqe_handler() 292 oldest = (oldest + 1) % ic->i_send_ring.w_nr; in rds_ib_send_cqe_handler()
|
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7996/ |
H A D | coredump.c | 121 u32 oldest, i, idx; in mt7996_coredump_fw_stack() local 139 oldest = (u32)mt76_get_field(dev, MT_MCU_WM_EXCP_PC_CTRL, in mt7996_coredump_fw_stack() 142 idx = ((oldest + 2 * i + 1) % 32); in mt7996_coredump_fw_stack() 147 oldest = (u32)mt76_get_field(dev, MT_MCU_WM_EXCP_LR_CTRL, in mt7996_coredump_fw_stack() 150 idx = ((oldest + 2 * i + 1) % 32); in mt7996_coredump_fw_stack()
|
/kernel/linux/linux-5.10/drivers/input/ |
H A D | input-mt.c | 198 struct input_mt_slot *oldest; in input_mt_report_pointer_emulation() local 204 oldest = NULL; in input_mt_report_pointer_emulation() 215 oldest = ps; in input_mt_report_pointer_emulation() 240 if (oldest) { in input_mt_report_pointer_emulation() 241 int x = input_mt_get_value(oldest, ABS_MT_POSITION_X); in input_mt_report_pointer_emulation() 242 int y = input_mt_get_value(oldest, ABS_MT_POSITION_Y); in input_mt_report_pointer_emulation() 248 int p = input_mt_get_value(oldest, ABS_MT_PRESSURE); in input_mt_report_pointer_emulation()
|
/kernel/linux/linux-5.10/drivers/net/xen-netback/ |
H A D | hash.c | 38 struct xenvif_hash_cache_entry *new, *entry, *oldest; in xenvif_add_hash() local 53 oldest = NULL; in xenvif_add_hash() 60 if (!oldest || entry->seq < oldest->seq) in xenvif_add_hash() 61 oldest = entry; in xenvif_add_hash() 69 list_del_rcu(&oldest->link); in xenvif_add_hash() 71 kfree_rcu(oldest, rcu); in xenvif_add_hash()
|
/kernel/linux/linux-6.6/drivers/net/xen-netback/ |
H A D | hash.c | 38 struct xenvif_hash_cache_entry *new, *entry, *oldest; in xenvif_add_hash() local 53 oldest = NULL; in xenvif_add_hash() 60 if (!oldest || entry->seq < oldest->seq) in xenvif_add_hash() 61 oldest = entry; in xenvif_add_hash() 69 list_del_rcu(&oldest->link); in xenvif_add_hash() 71 kfree_rcu(oldest, rcu); in xenvif_add_hash()
|
/kernel/linux/linux-6.6/drivers/input/ |
H A D | input-mt.c | 199 struct input_mt_slot *oldest; in input_mt_report_pointer_emulation() local 205 oldest = NULL; in input_mt_report_pointer_emulation() 216 oldest = ps; in input_mt_report_pointer_emulation() 241 if (oldest) { in input_mt_report_pointer_emulation() 242 int x = input_mt_get_value(oldest, ABS_MT_POSITION_X); in input_mt_report_pointer_emulation() 243 int y = input_mt_get_value(oldest, ABS_MT_POSITION_Y); in input_mt_report_pointer_emulation() 249 int p = input_mt_get_value(oldest, ABS_MT_PRESSURE); in input_mt_report_pointer_emulation()
|
/kernel/linux/linux-5.10/net/rxrpc/ |
H A D | call_event.c | 162 ktime_t now, max_age, oldest, ack_ts; in rxrpc_resend() local 184 oldest = now; in rxrpc_resend() 198 if (ktime_before(skb->tstamp, oldest)) in rxrpc_resend() 199 oldest = skb->tstamp; in rxrpc_resend() 213 resend_at = nsecs_to_jiffies(ktime_to_ns(ktime_sub(now, oldest))); in rxrpc_resend()
|
/kernel/linux/linux-5.10/net/netfilter/ |
H A D | nf_conntrack_ftp.c | 352 unsigned int i, oldest; in update_nl_seq() local 354 /* Look for oldest: if we find exact match, we're done. */ in update_nl_seq() 364 oldest = 0; in update_nl_seq() 366 oldest = 1; in update_nl_seq() 368 if (after(nl_seq, info->seq_aft_nl[dir][oldest])) in update_nl_seq() 369 info->seq_aft_nl[dir][oldest] = nl_seq; in update_nl_seq()
|
/kernel/linux/linux-6.6/net/rxrpc/ |
H A D | call_event.c | 119 ktime_t now, max_age, oldest, ack_ts; in rxrpc_resend() local 128 oldest = now; in rxrpc_resend() 204 if (ktime_before(txb->last_sent, oldest)) in rxrpc_resend() 205 oldest = txb->last_sent; in rxrpc_resend() 220 resend_at = nsecs_to_jiffies(ktime_to_ns(ktime_sub(now, oldest))); in rxrpc_resend()
|
/kernel/linux/linux-6.6/net/netfilter/ |
H A D | nf_conntrack_ftp.c | 348 unsigned int i, oldest; in update_nl_seq() local 350 /* Look for oldest: if we find exact match, we're done. */ in update_nl_seq() 360 oldest = 0; in update_nl_seq() 362 oldest = 1; in update_nl_seq() 364 if (after(nl_seq, info->seq_aft_nl[dir][oldest])) in update_nl_seq() 365 info->seq_aft_nl[dir][oldest] = nl_seq; in update_nl_seq()
|
/kernel/linux/linux-6.6/fs/ceph/ |
H A D | addr.c | 558 * Get ref for the oldest snapc for an inode with dirty data... that is, the 662 struct ceph_snap_context *snapc, *oldest; in writepage_nounlock() local 684 oldest = get_oldest_context(inode, &ceph_wbc, snapc); in writepage_nounlock() 685 if (snapc->seq > oldest->seq) { in writepage_nounlock() 690 ceph_put_snap_context(oldest); in writepage_nounlock() 694 ceph_put_snap_context(oldest); in writepage_nounlock() 785 oldest = detach_page_private(page); in writepage_nounlock() 786 WARN_ON_ONCE(oldest != snapc); in writepage_nounlock() 974 /* find oldest snap context with dirty data */ in ceph_writepages_start() 982 dout(" oldest snap in ceph_writepages_start() 1405 struct ceph_snap_context *oldest = get_oldest_context(inode, NULL, NULL); context_is_writeable_or_written() local 1436 struct ceph_snap_context *snapc, *oldest; ceph_find_incompatible() local [all...] |
/kernel/linux/linux-5.10/fs/ceph/ |
H A D | addr.c | 498 * Get ref for the oldest snapc for an inode with dirty data... that is, the 596 struct ceph_snap_context *snapc, *oldest; in writepage_nounlock() local 612 oldest = get_oldest_context(inode, &ceph_wbc, snapc); in writepage_nounlock() 613 if (snapc->seq > oldest->seq) { in writepage_nounlock() 618 ceph_put_snap_context(oldest); in writepage_nounlock() 622 ceph_put_snap_context(oldest); in writepage_nounlock() 853 /* find oldest snap context with dirty data */ in ceph_writepages_start() 861 dout(" oldest snapc is %p seq %lld (%d snaps)\n", in ceph_writepages_start() 928 dout("page snapc %p %lld != oldest %p %lld\n", in ceph_writepages_start() 1234 struct ceph_snap_context *oldest in context_is_writeable_or_written() local 1265 struct ceph_snap_context *snapc, *oldest; ceph_find_incompatible() local [all...] |
/kernel/linux/linux-6.6/net/core/ |
H A D | gro.c | 420 struct sk_buff *oldest; in gro_flush_oldest() local 422 oldest = list_last_entry(head, struct sk_buff, list); in gro_flush_oldest() 427 if (WARN_ON_ONCE(!oldest)) in gro_flush_oldest() 433 skb_list_del_init(oldest); in gro_flush_oldest() 434 napi_gro_complete(napi, oldest); in gro_flush_oldest()
|
/kernel/linux/linux-6.6/drivers/net/wireless/mediatek/mt76/mt7915/ |
H A D | coredump.c | 227 u32 oldest, i, idx; in mt7915_coredump_fw_stack() local 233 oldest = (u32)mt76_get_field(dev, 0x89050200, GENMASK(20, 16)) + 2; in mt7915_coredump_fw_stack() 235 idx = ((oldest + 2 * i + 1) % 32); in mt7915_coredump_fw_stack()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8712/ |
H A D | rtl871x_mlme.c | 262 struct wlan_network *oldest = NULL; in r8712_get_oldest_wlan_network() local 271 if (!oldest || in r8712_get_oldest_wlan_network() 272 time_after((unsigned long)oldest->last_scanned, in r8712_get_oldest_wlan_network() 274 oldest = pwlan; in r8712_get_oldest_wlan_network() 278 return oldest; in r8712_get_oldest_wlan_network() 341 struct wlan_network *oldest = NULL; in update_scanned_network() local 353 if ((oldest == ((struct wlan_network *)0)) || in update_scanned_network() 354 time_after((unsigned long)oldest->last_scanned, in update_scanned_network() 356 oldest = pnetwork; in update_scanned_network() 367 /* If there are no more slots, expire the oldest */ in update_scanned_network() [all...] |
/kernel/linux/linux-5.10/drivers/staging/rtl8188eu/core/ |
H A D | rtw_mlme.c | 321 struct wlan_network *oldest = NULL; in rtw_get_oldest_wlan_network() local 329 if (!oldest || time_after(oldest->last_scanned, pwlan->last_scanned)) in rtw_get_oldest_wlan_network() 330 oldest = pwlan; in rtw_get_oldest_wlan_network() 333 return oldest; in rtw_get_oldest_wlan_network() 399 struct wlan_network *oldest = NULL; in rtw_update_scanned_network() local 410 if ((oldest == ((struct wlan_network *)0)) || in rtw_update_scanned_network() 411 time_after(oldest->last_scanned, pnetwork->last_scanned)) in rtw_update_scanned_network() 412 oldest = pnetwork; in rtw_update_scanned_network() 420 /* If there are no more slots, expire the oldest */ in rtw_update_scanned_network() [all...] |
/kernel/linux/linux-6.6/drivers/staging/rtl8712/ |
H A D | rtl871x_mlme.c | 261 struct wlan_network *oldest = NULL; in r8712_get_oldest_wlan_network() local 270 if (!oldest || in r8712_get_oldest_wlan_network() 271 time_after((unsigned long)oldest->last_scanned, in r8712_get_oldest_wlan_network() 273 oldest = pwlan; in r8712_get_oldest_wlan_network() 277 return oldest; in r8712_get_oldest_wlan_network() 340 struct wlan_network *oldest = NULL; in update_scanned_network() local 352 if ((oldest == ((struct wlan_network *)0)) || in update_scanned_network() 353 time_after((unsigned long)oldest->last_scanned, in update_scanned_network() 355 oldest = pnetwork; in update_scanned_network() 365 /* If there are no more slots, expire the oldest */ in update_scanned_network() [all...] |
/kernel/linux/linux-5.10/net/ipv4/ |
H A D | tcp_metrics.c | 189 struct tcp_metrics_block *oldest; in tcpm_new() local 191 oldest = deref_locked(tcp_metrics_hash[hash].chain); in tcpm_new() 192 for (tm = deref_locked(oldest->tcpm_next); tm; in tcpm_new() 195 READ_ONCE(oldest->tcpm_stamp))) in tcpm_new() 196 oldest = tm; in tcpm_new() 198 tm = oldest; in tcpm_new()
|
/kernel/linux/linux-6.6/net/ipv4/ |
H A D | tcp_metrics.c | 189 struct tcp_metrics_block *oldest; in tcpm_new() local 191 oldest = deref_locked(tcp_metrics_hash[hash].chain); in tcpm_new() 192 for (tm = deref_locked(oldest->tcpm_next); tm; in tcpm_new() 195 READ_ONCE(oldest->tcpm_stamp))) in tcpm_new() 196 oldest = tm; in tcpm_new() 198 tm = oldest; in tcpm_new()
|
/kernel/linux/linux-5.10/drivers/staging/rtl8723bs/core/ |
H A D | rtw_mlme.c | 461 struct wlan_network *oldest = NULL; in rtw_get_oldest_wlan_network() local 475 if (oldest == NULL || time_after(oldest->last_scanned, pwlan->last_scanned)) in rtw_get_oldest_wlan_network() 476 oldest = pwlan; in rtw_get_oldest_wlan_network() 481 return oldest; in rtw_get_oldest_wlan_network() 581 struct wlan_network *oldest = NULL; in rtw_update_scanned_network() local 603 /* TODO: don't select netowrk in the same ess as oldest if it's new enough*/ in rtw_update_scanned_network() 606 if (oldest == NULL || time_after(oldest->last_scanned, pnetwork->last_scanned)) in rtw_update_scanned_network() 607 oldest in rtw_update_scanned_network() [all...] |
/kernel/linux/linux-6.6/drivers/staging/rtl8723bs/core/ |
H A D | rtw_mlme.c | 426 struct wlan_network *oldest = NULL; in rtw_get_oldest_wlan_network() local 435 if (!oldest || time_after(oldest->last_scanned, pwlan->last_scanned)) in rtw_get_oldest_wlan_network() 436 oldest = pwlan; in rtw_get_oldest_wlan_network() 439 return oldest; in rtw_get_oldest_wlan_network() 518 struct wlan_network *oldest = NULL; in rtw_update_scanned_network() local 535 /* TODO: don't select network in the same ess as oldest if it's new enough*/ in rtw_update_scanned_network() 538 if (!oldest || time_after(oldest->last_scanned, pnetwork->last_scanned)) in rtw_update_scanned_network() 539 oldest in rtw_update_scanned_network() [all...] |
/kernel/linux/linux-5.10/drivers/hid/ |
H A D | hid-asus.c | 219 struct input_mt_slot *oldest; in asus_report_tool_width() local 225 oldest = NULL; in asus_report_tool_width() 236 oldest = ps; in asus_report_tool_width() 242 if (oldest) { in asus_report_tool_width() 244 input_mt_get_value(oldest, ABS_MT_TOUCH_MAJOR)); in asus_report_tool_width()
|