mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-09-04 20:19:47 +08:00
treewide, timers: Rename from_timer() to timer_container_of()
Move this API to the canonical timer_*() namespace. [ tglx: Redone against pre rc1 ] Signed-off-by: Ingo Molnar <mingo@kernel.org> Signed-off-by: Thomas Gleixner <tglx@linutronix.de> Link: https://lore.kernel.org/all/aB2X0jCKQO56WdMt@gmail.com
This commit is contained in:
parent
8630c59e99
commit
41cb08555c
@ -69,7 +69,8 @@ srmcons_do_receive_chars(struct tty_port *port)
|
||||
static void
|
||||
srmcons_receive_chars(struct timer_list *t)
|
||||
{
|
||||
struct srmcons_private *srmconsp = from_timer(srmconsp, t, timer);
|
||||
struct srmcons_private *srmconsp = timer_container_of(srmconsp, t,
|
||||
timer);
|
||||
struct tty_port *port = &srmconsp->port;
|
||||
unsigned long flags;
|
||||
int incr = 10;
|
||||
|
@ -628,7 +628,7 @@ static void arm_next_watchdog(struct kvm_vcpu *vcpu)
|
||||
|
||||
static void kvmppc_watchdog_func(struct timer_list *t)
|
||||
{
|
||||
struct kvm_vcpu *vcpu = from_timer(vcpu, t, arch.wdt_timer);
|
||||
struct kvm_vcpu *vcpu = timer_container_of(vcpu, t, arch.wdt_timer);
|
||||
u32 tsr, new_tsr;
|
||||
int final;
|
||||
|
||||
|
@ -359,7 +359,8 @@ static irqreturn_t kw_i2c_irq(int irq, void *dev_id)
|
||||
|
||||
static void kw_i2c_timeout(struct timer_list *t)
|
||||
{
|
||||
struct pmac_i2c_host_kw *host = from_timer(host, t, timeout_timer);
|
||||
struct pmac_i2c_host_kw *host = timer_container_of(host, t,
|
||||
timeout_timer);
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&host->lock, flags);
|
||||
|
@ -58,7 +58,7 @@ static inline void heartbeat_toggle_bit(struct heartbeat_data *hd,
|
||||
|
||||
static void heartbeat_timer(struct timer_list *t)
|
||||
{
|
||||
struct heartbeat_data *hd = from_timer(hd, t, timer);
|
||||
struct heartbeat_data *hd = timer_container_of(hd, t, timer);
|
||||
static unsigned bit = 0, up = 1;
|
||||
|
||||
heartbeat_toggle_bit(hd, bit, hd->flags & HEARTBEAT_INVERTED);
|
||||
|
@ -88,7 +88,7 @@ int __init pci_is_66mhz_capable(struct pci_channel *hose,
|
||||
|
||||
static void pcibios_enable_err(struct timer_list *t)
|
||||
{
|
||||
struct pci_channel *hose = from_timer(hose, t, err_timer);
|
||||
struct pci_channel *hose = timer_container_of(hose, t, err_timer);
|
||||
|
||||
timer_delete(&hose->err_timer);
|
||||
printk(KERN_DEBUG "PCI: re-enabling error IRQ.\n");
|
||||
@ -97,7 +97,7 @@ static void pcibios_enable_err(struct timer_list *t)
|
||||
|
||||
static void pcibios_enable_serr(struct timer_list *t)
|
||||
{
|
||||
struct pci_channel *hose = from_timer(hose, t, serr_timer);
|
||||
struct pci_channel *hose = timer_container_of(hose, t, serr_timer);
|
||||
|
||||
timer_delete(&hose->serr_timer);
|
||||
printk(KERN_DEBUG "PCI: re-enabling system error IRQ.\n");
|
||||
|
@ -25,7 +25,7 @@ static DEVICE_ATTR_RO(switch);
|
||||
|
||||
static void switch_timer(struct timer_list *t)
|
||||
{
|
||||
struct push_switch *psw = from_timer(psw, t, debounce);
|
||||
struct push_switch *psw = timer_container_of(psw, t, debounce);
|
||||
|
||||
schedule_work(&psw->work);
|
||||
}
|
||||
|
@ -804,7 +804,7 @@ EXPORT_SYMBOL(vio_port_up);
|
||||
|
||||
static void vio_port_timer(struct timer_list *t)
|
||||
{
|
||||
struct vio_driver_state *vio = from_timer(vio, t, timer);
|
||||
struct vio_driver_state *vio = timer_container_of(vio, t, timer);
|
||||
|
||||
vio_port_up(vio);
|
||||
}
|
||||
|
@ -1534,7 +1534,7 @@ static const struct net_device_ops vector_netdev_ops = {
|
||||
|
||||
static void vector_timer_expire(struct timer_list *t)
|
||||
{
|
||||
struct vector_private *vp = from_timer(vp, t, tl);
|
||||
struct vector_private *vp = timer_container_of(vp, t, tl);
|
||||
|
||||
vp->estats.tx_kicks++;
|
||||
napi_schedule(&vp->napi);
|
||||
|
@ -1571,7 +1571,8 @@ out:
|
||||
|
||||
static void cancel_evtchn_poll(struct timer_list *t)
|
||||
{
|
||||
struct kvm_vcpu *vcpu = from_timer(vcpu, t, arch.xen.poll_timer);
|
||||
struct kvm_vcpu *vcpu = timer_container_of(vcpu, t,
|
||||
arch.xen.poll_timer);
|
||||
|
||||
kvm_make_request(KVM_REQ_UNBLOCK, vcpu);
|
||||
kvm_vcpu_kick(vcpu);
|
||||
|
@ -338,7 +338,7 @@ static int iss_net_poll(struct iss_net_private *lp)
|
||||
|
||||
static void iss_net_timer(struct timer_list *t)
|
||||
{
|
||||
struct iss_net_private *lp = from_timer(lp, t, timer);
|
||||
struct iss_net_private *lp = timer_container_of(lp, t, timer);
|
||||
|
||||
iss_net_poll(lp);
|
||||
mod_timer(&lp->timer, jiffies + lp->timer_val);
|
||||
|
@ -381,7 +381,7 @@ static void blk_queue_usage_counter_release(struct percpu_ref *ref)
|
||||
|
||||
static void blk_rq_timed_out_timer(struct timer_list *t)
|
||||
{
|
||||
struct request_queue *q = from_timer(q, t, timeout);
|
||||
struct request_queue *q = timer_container_of(q, t, timeout);
|
||||
|
||||
kblockd_schedule_work(&q->timeout_work);
|
||||
}
|
||||
|
@ -658,7 +658,8 @@ static const struct rq_qos_ops blkcg_iolatency_ops = {
|
||||
|
||||
static void blkiolatency_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct blk_iolatency *blkiolat = from_timer(blkiolat, t, timer);
|
||||
struct blk_iolatency *blkiolat = timer_container_of(blkiolat, t,
|
||||
timer);
|
||||
struct blkcg_gq *blkg;
|
||||
struct cgroup_subsys_state *pos_css;
|
||||
u64 now = blk_time_get_ns();
|
||||
|
@ -76,7 +76,7 @@ void blk_stat_add(struct request *rq, u64 now)
|
||||
|
||||
static void blk_stat_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct blk_stat_callback *cb = from_timer(cb, t, timer);
|
||||
struct blk_stat_callback *cb = timer_container_of(cb, t, timer);
|
||||
unsigned int bucket;
|
||||
int cpu;
|
||||
|
||||
|
@ -1125,7 +1125,8 @@ static int throtl_select_dispatch(struct throtl_service_queue *parent_sq)
|
||||
*/
|
||||
static void throtl_pending_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct throtl_service_queue *sq = from_timer(sq, t, pending_timer);
|
||||
struct throtl_service_queue *sq = timer_container_of(sq, t,
|
||||
pending_timer);
|
||||
struct throtl_grp *tg = sq_to_tg(sq);
|
||||
struct throtl_data *td = sq_to_td(sq);
|
||||
struct throtl_service_queue *parent_sq;
|
||||
|
@ -276,7 +276,7 @@ static void kyber_resize_domain(struct kyber_queue_data *kqd,
|
||||
|
||||
static void kyber_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct kyber_queue_data *kqd = from_timer(kqd, t, timer);
|
||||
struct kyber_queue_data *kqd = timer_container_of(kqd, t, timer);
|
||||
unsigned int sched_domain;
|
||||
int cpu;
|
||||
bool bad = false;
|
||||
|
@ -129,7 +129,7 @@ static void qaic_timesync_dl_xfer_cb(struct mhi_device *mhi_dev, struct mhi_resu
|
||||
|
||||
static void qaic_timesync_timer(struct timer_list *t)
|
||||
{
|
||||
struct mqts_dev *mqtsdev = from_timer(mqtsdev, t, timer);
|
||||
struct mqts_dev *mqtsdev = timer_container_of(mqtsdev, t, timer);
|
||||
struct qts_host_time_sync_msg_data *sync_msg;
|
||||
u64 device_qtimer_us;
|
||||
u64 device_qtimer;
|
||||
|
@ -1138,7 +1138,7 @@ static void ghes_add_timer(struct ghes *ghes)
|
||||
|
||||
static void ghes_poll_func(struct timer_list *t)
|
||||
{
|
||||
struct ghes *ghes = from_timer(ghes, t, timer);
|
||||
struct ghes *ghes = timer_container_of(ghes, t, timer);
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&ghes_notify_lock_irq, flags);
|
||||
|
@ -1034,7 +1034,7 @@ static void ahci_sw_activity(struct ata_link *link)
|
||||
|
||||
static void ahci_sw_activity_blink(struct timer_list *t)
|
||||
{
|
||||
struct ahci_em_priv *emp = from_timer(emp, t, timer);
|
||||
struct ahci_em_priv *emp = timer_container_of(emp, t, timer);
|
||||
struct ata_link *link = emp->link;
|
||||
struct ata_port *ap = link->ap;
|
||||
|
||||
|
@ -860,7 +860,7 @@ static unsigned int ata_eh_nr_in_flight(struct ata_port *ap)
|
||||
|
||||
void ata_eh_fastdrain_timerfn(struct timer_list *t)
|
||||
{
|
||||
struct ata_port *ap = from_timer(ap, t, fastdrain_timer);
|
||||
struct ata_port *ap = timer_container_of(ap, t, fastdrain_timer);
|
||||
unsigned long flags;
|
||||
unsigned int cnt;
|
||||
|
||||
|
@ -1531,7 +1531,7 @@ idt77252_tx(struct idt77252_dev *card)
|
||||
static void
|
||||
tst_timer(struct timer_list *t)
|
||||
{
|
||||
struct idt77252_dev *card = from_timer(card, t, tst_timer);
|
||||
struct idt77252_dev *card = timer_container_of(card, t, tst_timer);
|
||||
unsigned long base, idle, jump;
|
||||
unsigned long flags;
|
||||
u32 pc;
|
||||
@ -2070,7 +2070,7 @@ idt77252_rate_logindex(struct idt77252_dev *card, int pcr)
|
||||
static void
|
||||
idt77252_est_timer(struct timer_list *t)
|
||||
{
|
||||
struct rate_estimator *est = from_timer(est, t, timer);
|
||||
struct rate_estimator *est = timer_container_of(est, t, timer);
|
||||
struct vc_map *vc = est->vc;
|
||||
struct idt77252_dev *card = vc->card;
|
||||
unsigned long flags;
|
||||
|
@ -1758,7 +1758,7 @@ static void iter_dequeue(struct lanai_dev *lanai, vci_t vci)
|
||||
|
||||
static void lanai_timed_poll(struct timer_list *t)
|
||||
{
|
||||
struct lanai_dev *lanai = from_timer(lanai, t, timer);
|
||||
struct lanai_dev *lanai = timer_container_of(lanai, t, timer);
|
||||
#ifndef DEBUG_RW
|
||||
unsigned long flags;
|
||||
#ifdef USE_POWERDOWN
|
||||
|
@ -40,7 +40,7 @@
|
||||
*/
|
||||
static void linedisp_scroll(struct timer_list *t)
|
||||
{
|
||||
struct linedisp *linedisp = from_timer(linedisp, t, timer);
|
||||
struct linedisp *linedisp = timer_container_of(linedisp, t, timer);
|
||||
unsigned int i, ch = linedisp->scroll_pos;
|
||||
unsigned int num_chars = linedisp->num_chars;
|
||||
|
||||
|
@ -513,7 +513,7 @@ struct dpm_watchdog {
|
||||
*/
|
||||
static void dpm_watchdog_handler(struct timer_list *t)
|
||||
{
|
||||
struct dpm_watchdog *wd = from_timer(wd, t, timer);
|
||||
struct dpm_watchdog *wd = timer_container_of(wd, t, timer);
|
||||
struct timer_list *timer = &wd->timer;
|
||||
unsigned int time_left;
|
||||
|
||||
|
@ -759,7 +759,7 @@ EXPORT_SYMBOL_GPL(pm_relax);
|
||||
*/
|
||||
static void pm_wakeup_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct wakeup_source *ws = from_timer(ws, t, timer);
|
||||
struct wakeup_source *ws = timer_container_of(ws, t, timer);
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&ws->lock, flags);
|
||||
|
@ -745,7 +745,7 @@ rexmit_timer(struct timer_list *timer)
|
||||
int utgts; /* number of aoetgt descriptors (not slots) */
|
||||
int since;
|
||||
|
||||
d = from_timer(d, timer, timer);
|
||||
d = timer_container_of(d, timer, timer);
|
||||
|
||||
spin_lock_irqsave(&d->lock, flags);
|
||||
|
||||
|
@ -149,7 +149,7 @@ dummy_timer(struct timer_list *t)
|
||||
{
|
||||
struct aoedev *d;
|
||||
|
||||
d = from_timer(d, t, timer);
|
||||
d = timer_container_of(d, t, timer);
|
||||
if (d->flags & DEVFL_TKILL)
|
||||
return;
|
||||
d->timer.expires = jiffies + HZ;
|
||||
|
@ -3591,7 +3591,8 @@ int drbd_md_test_flag(struct drbd_backing_dev *bdev, int flag)
|
||||
|
||||
static void md_sync_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct drbd_device *device = from_timer(device, t, md_sync_timer);
|
||||
struct drbd_device *device = timer_container_of(device, t,
|
||||
md_sync_timer);
|
||||
drbd_device_post_work(device, MD_SYNC);
|
||||
}
|
||||
|
||||
|
@ -1699,7 +1699,8 @@ static bool net_timeout_reached(struct drbd_request *net_req,
|
||||
|
||||
void request_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct drbd_device *device = from_timer(device, t, request_timer);
|
||||
struct drbd_device *device = timer_container_of(device, t,
|
||||
request_timer);
|
||||
struct drbd_connection *connection = first_peer_device(device)->connection;
|
||||
struct drbd_request *req_read, *req_write, *req_peer; /* oldest request */
|
||||
struct net_conf *nc;
|
||||
|
@ -442,7 +442,8 @@ int w_resync_timer(struct drbd_work *w, int cancel)
|
||||
|
||||
void resync_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct drbd_device *device = from_timer(device, t, resync_timer);
|
||||
struct drbd_device *device = timer_container_of(device, t,
|
||||
resync_timer);
|
||||
|
||||
drbd_queue_work_if_unqueued(
|
||||
&first_peer_device(device)->connection->sender_work,
|
||||
@ -1698,7 +1699,8 @@ void drbd_rs_controller_reset(struct drbd_peer_device *peer_device)
|
||||
|
||||
void start_resync_timer_fn(struct timer_list *t)
|
||||
{
|
||||
struct drbd_device *device = from_timer(device, t, start_resync_timer);
|
||||
struct drbd_device *device = timer_container_of(device, t,
|
||||
start_resync_timer);
|
||||
drbd_device_post_work(device, RS_START);
|
||||
}
|
||||
|
||||
|
@ -555,7 +555,7 @@ static void act(struct floppy_state *fs)
|
||||
|
||||
static void scan_timeout(struct timer_list *t)
|
||||
{
|
||||
struct floppy_state *fs = from_timer(fs, t, timeout);
|
||||
struct floppy_state *fs = timer_container_of(fs, t, timeout);
|
||||
struct swim3 __iomem *sw = fs->swim3;
|
||||
unsigned long flags;
|
||||
|
||||
@ -579,7 +579,7 @@ static void scan_timeout(struct timer_list *t)
|
||||
|
||||
static void seek_timeout(struct timer_list *t)
|
||||
{
|
||||
struct floppy_state *fs = from_timer(fs, t, timeout);
|
||||
struct floppy_state *fs = timer_container_of(fs, t, timeout);
|
||||
struct swim3 __iomem *sw = fs->swim3;
|
||||
unsigned long flags;
|
||||
|
||||
@ -598,7 +598,7 @@ static void seek_timeout(struct timer_list *t)
|
||||
|
||||
static void settle_timeout(struct timer_list *t)
|
||||
{
|
||||
struct floppy_state *fs = from_timer(fs, t, timeout);
|
||||
struct floppy_state *fs = timer_container_of(fs, t, timeout);
|
||||
struct swim3 __iomem *sw = fs->swim3;
|
||||
unsigned long flags;
|
||||
|
||||
@ -627,7 +627,7 @@ static void settle_timeout(struct timer_list *t)
|
||||
|
||||
static void xfer_timeout(struct timer_list *t)
|
||||
{
|
||||
struct floppy_state *fs = from_timer(fs, t, timeout);
|
||||
struct floppy_state *fs = timer_container_of(fs, t, timeout);
|
||||
struct swim3 __iomem *sw = fs->swim3;
|
||||
struct dbdma_regs __iomem *dr = fs->dma;
|
||||
unsigned long flags;
|
||||
|
@ -158,7 +158,7 @@ static void bluecard_detach(struct pcmcia_device *p_dev);
|
||||
|
||||
static void bluecard_activity_led_timeout(struct timer_list *t)
|
||||
{
|
||||
struct bluecard_info *info = from_timer(info, t, timer);
|
||||
struct bluecard_info *info = timer_container_of(info, t, timer);
|
||||
unsigned int iobase = info->p_dev->resource[0]->start;
|
||||
|
||||
if (test_bit(CARD_ACTIVITY, &(info->hw_state))) {
|
||||
|
@ -467,7 +467,7 @@ static void ps_work_func(struct work_struct *work)
|
||||
|
||||
static void ps_timeout_func(struct timer_list *t)
|
||||
{
|
||||
struct ps_data *data = from_timer(data, t, ps_timer);
|
||||
struct ps_data *data = timer_container_of(data, t, ps_timer);
|
||||
struct hci_dev *hdev = data->hdev;
|
||||
struct btnxpuart_dev *nxpdev = hci_get_drvdata(hdev);
|
||||
|
||||
|
@ -688,7 +688,7 @@ static int bcsp_recv(struct hci_uart *hu, const void *data, int count)
|
||||
/* Arrange to retransmit all messages in the relq. */
|
||||
static void bcsp_timed_event(struct timer_list *t)
|
||||
{
|
||||
struct bcsp_struct *bcsp = from_timer(bcsp, t, tbcsp);
|
||||
struct bcsp_struct *bcsp = timer_container_of(bcsp, t, tbcsp);
|
||||
struct hci_uart *hu = bcsp->hu;
|
||||
struct sk_buff *skb;
|
||||
unsigned long flags;
|
||||
|
@ -149,7 +149,7 @@ static void h5_timed_event(struct timer_list *t)
|
||||
{
|
||||
const unsigned char sync_req[] = { 0x01, 0x7e };
|
||||
unsigned char conf_req[3] = { 0x03, 0xfc };
|
||||
struct h5 *h5 = from_timer(h5, t, timer);
|
||||
struct h5 *h5 = timer_container_of(h5, t, timer);
|
||||
struct hci_uart *hu = h5->hu;
|
||||
struct sk_buff *skb;
|
||||
unsigned long flags;
|
||||
|
@ -474,7 +474,7 @@ static void qca_wq_serial_tx_clock_vote_off(struct work_struct *work)
|
||||
|
||||
static void hci_ibs_tx_idle_timeout(struct timer_list *t)
|
||||
{
|
||||
struct qca_data *qca = from_timer(qca, t, tx_idle_timer);
|
||||
struct qca_data *qca = timer_container_of(qca, t, tx_idle_timer);
|
||||
struct hci_uart *hu = qca->hu;
|
||||
unsigned long flags;
|
||||
|
||||
@ -507,7 +507,7 @@ static void hci_ibs_tx_idle_timeout(struct timer_list *t)
|
||||
|
||||
static void hci_ibs_wake_retrans_timeout(struct timer_list *t)
|
||||
{
|
||||
struct qca_data *qca = from_timer(qca, t, wake_retrans_timer);
|
||||
struct qca_data *qca = timer_container_of(qca, t, wake_retrans_timer);
|
||||
struct hci_uart *hu = qca->hu;
|
||||
unsigned long flags, retrans_delay;
|
||||
bool retransmit = false;
|
||||
|
@ -1171,7 +1171,8 @@ err_try_reset:
|
||||
|
||||
static void health_check(struct timer_list *t)
|
||||
{
|
||||
struct mhi_pci_device *mhi_pdev = from_timer(mhi_pdev, t, health_check_timer);
|
||||
struct mhi_pci_device *mhi_pdev = timer_container_of(mhi_pdev, t,
|
||||
health_check_timer);
|
||||
struct mhi_controller *mhi_cntrl = &mhi_pdev->mhi_cntrl;
|
||||
|
||||
if (!test_bit(MHI_PCI_DEV_STARTED, &mhi_pdev->status) ||
|
||||
|
@ -88,7 +88,7 @@ struct xgene_rng_dev {
|
||||
|
||||
static void xgene_rng_expired_timer(struct timer_list *t)
|
||||
{
|
||||
struct xgene_rng_dev *ctx = from_timer(ctx, t, failure_timer);
|
||||
struct xgene_rng_dev *ctx = timer_container_of(ctx, t, failure_timer);
|
||||
|
||||
/* Clear failure counter as timer expired */
|
||||
disable_irq(ctx->irq);
|
||||
|
@ -347,7 +347,7 @@ static const struct file_operations bt_bmc_fops = {
|
||||
|
||||
static void poll_timer(struct timer_list *t)
|
||||
{
|
||||
struct bt_bmc *bt_bmc = from_timer(bt_bmc, t, poll_timer);
|
||||
struct bt_bmc *bt_bmc = timer_container_of(bt_bmc, t, poll_timer);
|
||||
|
||||
bt_bmc->poll_timer.expires += msecs_to_jiffies(500);
|
||||
wake_up(&bt_bmc->queue);
|
||||
|
@ -1076,7 +1076,8 @@ static void set_need_watch(void *send_info, unsigned int watch_mask)
|
||||
|
||||
static void smi_timeout(struct timer_list *t)
|
||||
{
|
||||
struct smi_info *smi_info = from_timer(smi_info, t, si_timer);
|
||||
struct smi_info *smi_info = timer_container_of(smi_info, t,
|
||||
si_timer);
|
||||
enum si_sm_result smi_result;
|
||||
unsigned long flags;
|
||||
unsigned long jiffies_now;
|
||||
|
@ -539,7 +539,8 @@ static void start_resend(struct ssif_info *ssif_info);
|
||||
|
||||
static void retry_timeout(struct timer_list *t)
|
||||
{
|
||||
struct ssif_info *ssif_info = from_timer(ssif_info, t, retry_timer);
|
||||
struct ssif_info *ssif_info = timer_container_of(ssif_info, t,
|
||||
retry_timer);
|
||||
unsigned long oflags, *flags;
|
||||
bool waiting, resend;
|
||||
|
||||
@ -563,7 +564,8 @@ static void retry_timeout(struct timer_list *t)
|
||||
|
||||
static void watch_timeout(struct timer_list *t)
|
||||
{
|
||||
struct ssif_info *ssif_info = from_timer(ssif_info, t, watch_timer);
|
||||
struct ssif_info *ssif_info = timer_container_of(ssif_info, t,
|
||||
watch_timer);
|
||||
unsigned long oflags, *flags;
|
||||
|
||||
if (ssif_info->stopping)
|
||||
|
@ -297,7 +297,8 @@ static void complete_response(struct ssif_bmc_ctx *ssif_bmc)
|
||||
|
||||
static void response_timeout(struct timer_list *t)
|
||||
{
|
||||
struct ssif_bmc_ctx *ssif_bmc = from_timer(ssif_bmc, t, response_timer);
|
||||
struct ssif_bmc_ctx *ssif_bmc = timer_container_of(ssif_bmc, t,
|
||||
response_timer);
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&ssif_bmc->lock, flags);
|
||||
|
@ -91,7 +91,7 @@ out:
|
||||
|
||||
static void user_reader_timeout(struct timer_list *t)
|
||||
{
|
||||
struct file_priv *priv = from_timer(priv, t, user_read_timer);
|
||||
struct file_priv *priv = timer_container_of(priv, t, user_read_timer);
|
||||
|
||||
pr_warn("TPM user space timeout is deprecated (pid=%d)\n",
|
||||
task_tgid_nr(current));
|
||||
|
@ -197,7 +197,8 @@ static unsigned short fake_waveform(struct comedi_device *dev,
|
||||
*/
|
||||
static void waveform_ai_timer(struct timer_list *t)
|
||||
{
|
||||
struct waveform_private *devpriv = from_timer(devpriv, t, ai_timer);
|
||||
struct waveform_private *devpriv = timer_container_of(devpriv, t,
|
||||
ai_timer);
|
||||
struct comedi_device *dev = devpriv->dev;
|
||||
struct comedi_subdevice *s = dev->read_subdev;
|
||||
struct comedi_async *async = s->async;
|
||||
@ -444,7 +445,8 @@ static int waveform_ai_insn_read(struct comedi_device *dev,
|
||||
*/
|
||||
static void waveform_ao_timer(struct timer_list *t)
|
||||
{
|
||||
struct waveform_private *devpriv = from_timer(devpriv, t, ao_timer);
|
||||
struct waveform_private *devpriv = timer_container_of(devpriv, t,
|
||||
ao_timer);
|
||||
struct comedi_device *dev = devpriv->dev;
|
||||
struct comedi_subdevice *s = dev->write_subdev;
|
||||
struct comedi_async *async = s->async;
|
||||
|
@ -517,7 +517,8 @@ static void das16_interrupt(struct comedi_device *dev)
|
||||
|
||||
static void das16_timer_interrupt(struct timer_list *t)
|
||||
{
|
||||
struct das16_private_struct *devpriv = from_timer(devpriv, t, timer);
|
||||
struct das16_private_struct *devpriv = timer_container_of(devpriv, t,
|
||||
timer);
|
||||
struct comedi_device *dev = devpriv->dev;
|
||||
unsigned long flags;
|
||||
|
||||
|
@ -562,7 +562,8 @@ jr3_pci_poll_subdevice(struct comedi_subdevice *s)
|
||||
|
||||
static void jr3_pci_poll_dev(struct timer_list *t)
|
||||
{
|
||||
struct jr3_pci_dev_private *devpriv = from_timer(devpriv, t, timer);
|
||||
struct jr3_pci_dev_private *devpriv = timer_container_of(devpriv, t,
|
||||
timer);
|
||||
struct comedi_device *dev = devpriv->dev;
|
||||
struct jr3_pci_subdev_private *spriv;
|
||||
struct comedi_subdevice *s;
|
||||
|
@ -667,7 +667,8 @@ static inline void queue_gpstate_timer(struct global_pstate_info *gpstates)
|
||||
*/
|
||||
static void gpstate_timer_handler(struct timer_list *t)
|
||||
{
|
||||
struct global_pstate_info *gpstates = from_timer(gpstates, t, timer);
|
||||
struct global_pstate_info *gpstates = timer_container_of(gpstates, t,
|
||||
timer);
|
||||
struct cpufreq_policy *policy = gpstates->policy;
|
||||
int gpstate_idx, lpstate_idx;
|
||||
unsigned long val;
|
||||
|
@ -2072,7 +2072,7 @@ static void artpec6_crypto_process_queue(struct artpec6_crypto *ac,
|
||||
|
||||
static void artpec6_crypto_timeout(struct timer_list *t)
|
||||
{
|
||||
struct artpec6_crypto *ac = from_timer(ac, t, timer);
|
||||
struct artpec6_crypto *ac = timer_container_of(ac, t, timer);
|
||||
|
||||
dev_info_ratelimited(artpec6_crypto_dev, "timeout\n");
|
||||
|
||||
|
@ -375,7 +375,7 @@ struct wait_timer {
|
||||
|
||||
static void wait_timer(struct timer_list *timer)
|
||||
{
|
||||
struct wait_timer *wt = from_timer(wt, timer, timer);
|
||||
struct wait_timer *wt = timer_container_of(wt, timer, timer);
|
||||
|
||||
dma_fence_signal(wt->f);
|
||||
}
|
||||
|
@ -337,7 +337,8 @@ static void imxdma_disable_hw(struct imxdma_channel *imxdmac)
|
||||
|
||||
static void imxdma_watchdog(struct timer_list *t)
|
||||
{
|
||||
struct imxdma_channel *imxdmac = from_timer(imxdmac, t, watchdog);
|
||||
struct imxdma_channel *imxdmac = timer_container_of(imxdmac, t,
|
||||
watchdog);
|
||||
struct imxdma_engine *imxdma = imxdmac->imxdma;
|
||||
int channel = imxdmac->channel;
|
||||
|
||||
|
@ -901,7 +901,8 @@ static void ioat_reboot_chan(struct ioatdma_chan *ioat_chan)
|
||||
|
||||
void ioat_timer_event(struct timer_list *t)
|
||||
{
|
||||
struct ioatdma_chan *ioat_chan = from_timer(ioat_chan, t, timer);
|
||||
struct ioatdma_chan *ioat_chan = timer_container_of(ioat_chan, t,
|
||||
timer);
|
||||
dma_addr_t phys_complete;
|
||||
u64 status;
|
||||
|
||||
|
@ -114,7 +114,7 @@ EXPORT_SYMBOL(fw_cancel_transaction);
|
||||
|
||||
static void split_transaction_timeout_callback(struct timer_list *timer)
|
||||
{
|
||||
struct fw_transaction *t = from_timer(t, timer, split_timeout_timer);
|
||||
struct fw_transaction *t = timer_container_of(t, timer, split_timeout_timer);
|
||||
struct fw_card *card = t->card;
|
||||
|
||||
scoped_guard(spinlock_irqsave, &card->lock) {
|
||||
|
@ -322,8 +322,8 @@ bool amdgpu_fence_process(struct amdgpu_ring *ring)
|
||||
*/
|
||||
static void amdgpu_fence_fallback(struct timer_list *t)
|
||||
{
|
||||
struct amdgpu_ring *ring = from_timer(ring, t,
|
||||
fence_drv.fallback_timer);
|
||||
struct amdgpu_ring *ring = timer_container_of(ring, t,
|
||||
fence_drv.fallback_timer);
|
||||
|
||||
if (amdgpu_fence_process(ring))
|
||||
DRM_WARN("Fence fallback timer expired on ring %s\n", ring->name);
|
||||
|
@ -135,7 +135,8 @@ static void amdgpu_ring_mux_schedule_resubmit(struct amdgpu_ring_mux *mux)
|
||||
|
||||
static void amdgpu_mux_resubmit_fallback(struct timer_list *t)
|
||||
{
|
||||
struct amdgpu_ring_mux *mux = from_timer(mux, t, resubmit_timer);
|
||||
struct amdgpu_ring_mux *mux = timer_container_of(mux, t,
|
||||
resubmit_timer);
|
||||
|
||||
if (!spin_trylock(&mux->lock)) {
|
||||
amdgpu_ring_mux_schedule_resubmit(mux);
|
||||
|
@ -751,7 +751,8 @@ tda998x_reset(struct tda998x_priv *priv)
|
||||
*/
|
||||
static void tda998x_edid_delay_done(struct timer_list *t)
|
||||
{
|
||||
struct tda998x_priv *priv = from_timer(priv, t, edid_delay_timer);
|
||||
struct tda998x_priv *priv = timer_container_of(priv, t,
|
||||
edid_delay_timer);
|
||||
|
||||
priv->edid_delay_active = false;
|
||||
wake_up(&priv->edid_delay_waitq);
|
||||
|
@ -487,7 +487,8 @@ out:
|
||||
|
||||
static void vblank_disable_fn(struct timer_list *t)
|
||||
{
|
||||
struct drm_vblank_crtc *vblank = from_timer(vblank, t, disable_timer);
|
||||
struct drm_vblank_crtc *vblank = timer_container_of(vblank, t,
|
||||
disable_timer);
|
||||
struct drm_device *dev = vblank->dev;
|
||||
unsigned int pipe = vblank->pipe;
|
||||
unsigned long irqflags;
|
||||
|
@ -159,7 +159,7 @@ static const struct exynos_drm_crtc_ops vidi_crtc_ops = {
|
||||
|
||||
static void vidi_fake_vblank_timer(struct timer_list *t)
|
||||
{
|
||||
struct vidi_context *ctx = from_timer(ctx, t, timer);
|
||||
struct vidi_context *ctx = timer_container_of(ctx, t, timer);
|
||||
|
||||
if (drm_crtc_handle_vblank(&ctx->crtc->base))
|
||||
mod_timer(&ctx->timer,
|
||||
|
@ -234,7 +234,7 @@ struct gud_usb_bulk_context {
|
||||
|
||||
static void gud_usb_bulk_timeout(struct timer_list *t)
|
||||
{
|
||||
struct gud_usb_bulk_context *ctx = from_timer(ctx, t, timer);
|
||||
struct gud_usb_bulk_context *ctx = timer_container_of(ctx, t, timer);
|
||||
|
||||
usb_sg_cancel(&ctx->sgr);
|
||||
}
|
||||
|
@ -74,7 +74,7 @@ static void set(struct intel_uncore *uncore, i915_reg_t reg, u32 val)
|
||||
|
||||
static void rps_timer(struct timer_list *t)
|
||||
{
|
||||
struct intel_rps *rps = from_timer(rps, t, timer);
|
||||
struct intel_rps *rps = timer_container_of(rps, t, timer);
|
||||
struct intel_gt *gt = rps_to_gt(rps);
|
||||
struct intel_engine_cs *engine;
|
||||
ktime_t dt, last, timestamp;
|
||||
|
@ -108,7 +108,7 @@ static void advance(struct i915_request *request)
|
||||
|
||||
static void hw_delay_complete(struct timer_list *t)
|
||||
{
|
||||
struct mock_engine *engine = from_timer(engine, t, hw_delay);
|
||||
struct mock_engine *engine = timer_container_of(engine, t, hw_delay);
|
||||
struct i915_request *request;
|
||||
unsigned long flags;
|
||||
|
||||
|
@ -537,7 +537,7 @@ struct spinner_timer {
|
||||
|
||||
static void spinner_kill(struct timer_list *timer)
|
||||
{
|
||||
struct spinner_timer *st = from_timer(st, timer, timer);
|
||||
struct spinner_timer *st = timer_container_of(st, timer, timer);
|
||||
|
||||
igt_spinner_end(&st->spin);
|
||||
pr_info("%s\n", __func__);
|
||||
|
@ -427,7 +427,8 @@ static void dma_i915_sw_fence_wake(struct dma_fence *dma,
|
||||
|
||||
static void timer_i915_sw_fence_wake(struct timer_list *t)
|
||||
{
|
||||
struct i915_sw_dma_fence_cb_timer *cb = from_timer(cb, t, timer);
|
||||
struct i915_sw_dma_fence_cb_timer *cb = timer_container_of(cb, t,
|
||||
timer);
|
||||
struct i915_sw_fence *fence;
|
||||
|
||||
fence = xchg(&cb->base.fence, NULL);
|
||||
|
@ -135,7 +135,7 @@ int intel_wakeref_wait_for_idle(struct intel_wakeref *wf)
|
||||
|
||||
static void wakeref_auto_timeout(struct timer_list *t)
|
||||
{
|
||||
struct intel_wakeref_auto *wf = from_timer(wf, t, timer);
|
||||
struct intel_wakeref_auto *wf = timer_container_of(wf, t, timer);
|
||||
intel_wakeref_t wakeref;
|
||||
unsigned long flags;
|
||||
|
||||
|
@ -55,7 +55,7 @@ void onstack_fence_fini(struct i915_sw_fence *fence)
|
||||
|
||||
static void timed_fence_wake(struct timer_list *t)
|
||||
{
|
||||
struct timed_fence *tf = from_timer(tf, t, timer);
|
||||
struct timed_fence *tf = timer_container_of(tf, t, timer);
|
||||
|
||||
i915_sw_fence_commit(&tf->fence);
|
||||
}
|
||||
|
@ -2569,7 +2569,7 @@ static const struct drm_bridge_funcs mtk_dp_bridge_funcs = {
|
||||
|
||||
static void mtk_dp_debounce_timer(struct timer_list *t)
|
||||
{
|
||||
struct mtk_dp *mtk_dp = from_timer(mtk_dp, t, debounce_timer);
|
||||
struct mtk_dp *mtk_dp = timer_container_of(mtk_dp, t, debounce_timer);
|
||||
|
||||
mtk_dp->need_debounce = true;
|
||||
}
|
||||
|
@ -79,7 +79,8 @@ static struct msm_ringbuffer *get_next_ring(struct msm_gpu *gpu)
|
||||
|
||||
static void a5xx_preempt_timer(struct timer_list *t)
|
||||
{
|
||||
struct a5xx_gpu *a5xx_gpu = from_timer(a5xx_gpu, t, preempt_timer);
|
||||
struct a5xx_gpu *a5xx_gpu = timer_container_of(a5xx_gpu, t,
|
||||
preempt_timer);
|
||||
struct msm_gpu *gpu = &a5xx_gpu->base.base;
|
||||
struct drm_device *dev = gpu->dev;
|
||||
|
||||
|
@ -87,7 +87,8 @@ static struct msm_ringbuffer *get_next_ring(struct msm_gpu *gpu)
|
||||
|
||||
static void a6xx_preempt_timer(struct timer_list *t)
|
||||
{
|
||||
struct a6xx_gpu *a6xx_gpu = from_timer(a6xx_gpu, t, preempt_timer);
|
||||
struct a6xx_gpu *a6xx_gpu = timer_container_of(a6xx_gpu, t,
|
||||
preempt_timer);
|
||||
struct msm_gpu *gpu = &a6xx_gpu->base.base;
|
||||
struct drm_device *dev = gpu->dev;
|
||||
|
||||
|
@ -2693,8 +2693,8 @@ static int dpu_encoder_setup_display(struct dpu_encoder_virt *dpu_enc,
|
||||
|
||||
static void dpu_encoder_frame_done_timeout(struct timer_list *t)
|
||||
{
|
||||
struct dpu_encoder_virt *dpu_enc = from_timer(dpu_enc, t,
|
||||
frame_done_timer);
|
||||
struct dpu_encoder_virt *dpu_enc = timer_container_of(dpu_enc, t,
|
||||
frame_done_timer);
|
||||
struct drm_encoder *drm_enc = &dpu_enc->base;
|
||||
u32 event;
|
||||
|
||||
|
@ -521,7 +521,7 @@ static bool made_progress(struct msm_gpu *gpu, struct msm_ringbuffer *ring)
|
||||
|
||||
static void hangcheck_handler(struct timer_list *t)
|
||||
{
|
||||
struct msm_gpu *gpu = from_timer(gpu, t, hangcheck_timer);
|
||||
struct msm_gpu *gpu = timer_container_of(gpu, t, hangcheck_timer);
|
||||
struct drm_device *dev = gpu->dev;
|
||||
struct msm_ringbuffer *ring = gpu->funcs->active_ring(gpu);
|
||||
uint32_t fence = ring->memptrs->fence;
|
||||
|
@ -175,7 +175,7 @@ struct signal_timer {
|
||||
|
||||
static void signal_for_ttm_bo_reserve(struct timer_list *t)
|
||||
{
|
||||
struct signal_timer *s_timer = from_timer(s_timer, t, timer);
|
||||
struct signal_timer *s_timer = timer_container_of(s_timer, t, timer);
|
||||
struct task_struct *task = s_timer->ctx->task;
|
||||
|
||||
do_send_sig_info(SIGTERM, SEND_SIG_PRIV, task, PIDTYPE_PID);
|
||||
|
@ -679,7 +679,7 @@ void vc4_bo_dec_usecnt(struct vc4_bo *bo)
|
||||
|
||||
static void vc4_bo_cache_time_timer(struct timer_list *t)
|
||||
{
|
||||
struct vc4_dev *vc4 = from_timer(vc4, t, bo_cache.time_timer);
|
||||
struct vc4_dev *vc4 = timer_container_of(vc4, t, bo_cache.time_timer);
|
||||
|
||||
schedule_work(&vc4->bo_cache.time_work);
|
||||
}
|
||||
|
@ -326,7 +326,7 @@ vc4_reset_work(struct work_struct *work)
|
||||
static void
|
||||
vc4_hangcheck_elapsed(struct timer_list *t)
|
||||
{
|
||||
struct vc4_dev *vc4 = from_timer(vc4, t, hangcheck.timer);
|
||||
struct vc4_dev *vc4 = timer_container_of(vc4, t, hangcheck.timer);
|
||||
struct drm_device *dev = &vc4->base;
|
||||
uint32_t ct0ca, ct1ca;
|
||||
unsigned long irqflags;
|
||||
|
@ -61,7 +61,7 @@ static const struct dma_fence_ops vgem_fence_ops = {
|
||||
|
||||
static void vgem_fence_timeout(struct timer_list *t)
|
||||
{
|
||||
struct vgem_fence *fence = from_timer(fence, t, timer);
|
||||
struct vgem_fence *fence = timer_container_of(fence, t, timer);
|
||||
|
||||
dma_fence_signal(&fence->base);
|
||||
}
|
||||
|
@ -295,7 +295,8 @@ static void gb_operation_work(struct work_struct *work)
|
||||
|
||||
static void gb_operation_timeout(struct timer_list *t)
|
||||
{
|
||||
struct gb_operation *operation = from_timer(operation, t, timer);
|
||||
struct gb_operation *operation = timer_container_of(operation, t,
|
||||
timer);
|
||||
|
||||
if (gb_operation_result_set(operation, -ETIMEDOUT)) {
|
||||
/*
|
||||
|
@ -614,7 +614,7 @@ static int apple_fetch_battery(struct hid_device *hdev)
|
||||
|
||||
static void apple_battery_timer_tick(struct timer_list *t)
|
||||
{
|
||||
struct apple_sc *asc = from_timer(asc, t, battery_timer);
|
||||
struct apple_sc *asc = timer_container_of(asc, t, battery_timer);
|
||||
struct hid_device *hdev = asc->hdev;
|
||||
|
||||
if (apple_fetch_battery(hdev) == 0) {
|
||||
|
@ -167,7 +167,7 @@ static void battery_flat(struct appleir *appleir)
|
||||
|
||||
static void key_up_tick(struct timer_list *t)
|
||||
{
|
||||
struct appleir *appleir = from_timer(appleir, t, key_up_timer);
|
||||
struct appleir *appleir = timer_container_of(appleir, t, key_up_timer);
|
||||
struct hid_device *hid = appleir->hid;
|
||||
unsigned long flags;
|
||||
|
||||
|
@ -166,7 +166,7 @@ static int appletb_tb_key_to_slot(unsigned int code)
|
||||
|
||||
static void appletb_inactivity_timer(struct timer_list *t)
|
||||
{
|
||||
struct appletb_kbd *kbd = from_timer(kbd, t, inactivity_timer);
|
||||
struct appletb_kbd *kbd = timer_container_of(kbd, t, inactivity_timer);
|
||||
|
||||
if (kbd->backlight_dev && appletb_tb_autodim) {
|
||||
if (!kbd->has_dimmed) {
|
||||
|
@ -155,7 +155,8 @@ static int letsketch_setup_input_tablet_pad(struct letsketch_data *data)
|
||||
|
||||
static void letsketch_inrange_timeout(struct timer_list *t)
|
||||
{
|
||||
struct letsketch_data *data = from_timer(data, t, inrange_timer);
|
||||
struct letsketch_data *data = timer_container_of(data, t,
|
||||
inrange_timer);
|
||||
struct input_dev *input = data->input_tablet;
|
||||
|
||||
input_report_key(input, BTN_TOOL_PEN, 0);
|
||||
|
@ -822,7 +822,7 @@ static int magicmouse_fetch_battery(struct hid_device *hdev)
|
||||
|
||||
static void magicmouse_battery_timer_tick(struct timer_list *t)
|
||||
{
|
||||
struct magicmouse_sc *msc = from_timer(msc, t, battery_timer);
|
||||
struct magicmouse_sc *msc = timer_container_of(msc, t, battery_timer);
|
||||
struct hid_device *hdev = msc->hdev;
|
||||
|
||||
if (magicmouse_fetch_battery(hdev) == 0) {
|
||||
|
@ -1745,7 +1745,7 @@ static void mt_release_contacts(struct hid_device *hid)
|
||||
|
||||
static void mt_expired_timeout(struct timer_list *t)
|
||||
{
|
||||
struct mt_device *td = from_timer(td, t, release_timer);
|
||||
struct mt_device *td = timer_container_of(td, t, release_timer);
|
||||
struct hid_device *hdev = td->hdev;
|
||||
|
||||
/*
|
||||
|
@ -227,7 +227,7 @@ drop_note:
|
||||
|
||||
static void pcmidi_sustained_note_release(struct timer_list *t)
|
||||
{
|
||||
struct pcmidi_sustain *pms = from_timer(pms, t, timer);
|
||||
struct pcmidi_sustain *pms = timer_container_of(pms, t, timer);
|
||||
|
||||
pcmidi_send_note(pms->pm, pms->status, pms->note, pms->velocity);
|
||||
pms->in_use = 0;
|
||||
|
@ -545,7 +545,7 @@ static void ghl_magic_poke_cb(struct urb *urb)
|
||||
static void ghl_magic_poke(struct timer_list *t)
|
||||
{
|
||||
int ret;
|
||||
struct sony_sc *sc = from_timer(sc, t, ghl_poke_timer);
|
||||
struct sony_sc *sc = timer_container_of(sc, t, ghl_poke_timer);
|
||||
|
||||
ret = usb_submit_urb(sc->ghl_urb, GFP_ATOMIC);
|
||||
if (ret < 0)
|
||||
|
@ -32,8 +32,8 @@
|
||||
*/
|
||||
static void uclogic_inrange_timeout(struct timer_list *t)
|
||||
{
|
||||
struct uclogic_drvdata *drvdata = from_timer(drvdata, t,
|
||||
inrange_timer);
|
||||
struct uclogic_drvdata *drvdata = timer_container_of(drvdata, t,
|
||||
inrange_timer);
|
||||
struct input_dev *input = drvdata->pen_input;
|
||||
|
||||
if (input == NULL)
|
||||
|
@ -1240,7 +1240,7 @@ static void wiimote_schedule(struct wiimote_data *wdata)
|
||||
|
||||
static void wiimote_init_timeout(struct timer_list *t)
|
||||
{
|
||||
struct wiimote_data *wdata = from_timer(wdata, t, timer);
|
||||
struct wiimote_data *wdata = timer_container_of(wdata, t, timer);
|
||||
|
||||
wiimote_schedule(wdata);
|
||||
}
|
||||
|
@ -106,7 +106,7 @@ static int hid_start_in(struct hid_device *hid)
|
||||
/* I/O retry timer routine */
|
||||
static void hid_retry_timeout(struct timer_list *t)
|
||||
{
|
||||
struct usbhid_device *usbhid = from_timer(usbhid, t, io_retry);
|
||||
struct usbhid_device *usbhid = timer_container_of(usbhid, t, io_retry);
|
||||
struct hid_device *hid = usbhid->hid;
|
||||
|
||||
dev_dbg(&usbhid->intf->dev, "retrying intr urb\n");
|
||||
|
@ -63,7 +63,7 @@ static void wacom_force_proxout(struct wacom_wac *wacom_wac)
|
||||
|
||||
void wacom_idleprox_timeout(struct timer_list *list)
|
||||
{
|
||||
struct wacom *wacom = from_timer(wacom, list, idleprox_timer);
|
||||
struct wacom *wacom = timer_container_of(wacom, list, idleprox_timer);
|
||||
struct wacom_wac *wacom_wac = &wacom->wacom_wac;
|
||||
|
||||
if (!wacom_wac->hid_data.sense_state) {
|
||||
|
@ -453,7 +453,7 @@ static void ssip_error(struct hsi_client *cl)
|
||||
|
||||
static void ssip_keep_alive(struct timer_list *t)
|
||||
{
|
||||
struct ssi_protocol *ssi = from_timer(ssi, t, keep_alive);
|
||||
struct ssi_protocol *ssi = timer_container_of(ssi, t, keep_alive);
|
||||
struct hsi_client *cl = ssi->cl;
|
||||
|
||||
dev_dbg(&cl->device, "Keep alive kick in: m(%d) r(%d) s(%d)\n",
|
||||
@ -480,7 +480,7 @@ static void ssip_keep_alive(struct timer_list *t)
|
||||
|
||||
static void ssip_rx_wd(struct timer_list *t)
|
||||
{
|
||||
struct ssi_protocol *ssi = from_timer(ssi, t, rx_wd);
|
||||
struct ssi_protocol *ssi = timer_container_of(ssi, t, rx_wd);
|
||||
struct hsi_client *cl = ssi->cl;
|
||||
|
||||
dev_err(&cl->device, "Watchdog triggered\n");
|
||||
@ -489,7 +489,7 @@ static void ssip_rx_wd(struct timer_list *t)
|
||||
|
||||
static void ssip_tx_wd(struct timer_list *t)
|
||||
{
|
||||
struct ssi_protocol *ssi = from_timer(ssi, t, tx_wd);
|
||||
struct ssi_protocol *ssi = timer_container_of(ssi, t, tx_wd);
|
||||
struct hsi_client *cl = ssi->cl;
|
||||
|
||||
dev_err(&cl->device, "Watchdog triggered\n");
|
||||
|
@ -331,7 +331,7 @@ static void npcm7xx_fan_polling(struct timer_list *t)
|
||||
struct npcm7xx_pwm_fan_data *data;
|
||||
int i;
|
||||
|
||||
data = from_timer(data, t, fan_timer);
|
||||
data = timer_container_of(data, t, fan_timer);
|
||||
|
||||
/*
|
||||
* Polling two module per one round,
|
||||
|
@ -78,7 +78,7 @@ static irqreturn_t pulse_handler(int irq, void *dev_id)
|
||||
|
||||
static void sample_timer(struct timer_list *t)
|
||||
{
|
||||
struct pwm_fan_ctx *ctx = from_timer(ctx, t, rpm_timer);
|
||||
struct pwm_fan_ctx *ctx = timer_container_of(ctx, t, rpm_timer);
|
||||
unsigned int delta = ktime_ms_delta(ktime_get(), ctx->sample_start);
|
||||
int i;
|
||||
|
||||
|
@ -831,7 +831,7 @@ next_atomic_cmd:
|
||||
*/
|
||||
static void img_i2c_check_timer(struct timer_list *t)
|
||||
{
|
||||
struct img_i2c *i2c = from_timer(i2c, t, check_timer);
|
||||
struct img_i2c *i2c = timer_container_of(i2c, t, check_timer);
|
||||
unsigned long flags;
|
||||
unsigned int line_status;
|
||||
|
||||
|
@ -167,7 +167,7 @@ static void ssp_wdt_work_func(struct work_struct *work)
|
||||
|
||||
static void ssp_wdt_timer_func(struct timer_list *t)
|
||||
{
|
||||
struct ssp_data *data = from_timer(data, t, wdt_timer);
|
||||
struct ssp_data *data = timer_container_of(data, t, wdt_timer);
|
||||
|
||||
switch (data->fw_dl_state) {
|
||||
case SSP_FW_DL_STATE_FAIL:
|
||||
|
@ -4327,7 +4327,7 @@ static DECLARE_WORK(skb_work, process_work);
|
||||
|
||||
static void ep_timeout(struct timer_list *t)
|
||||
{
|
||||
struct c4iw_ep *ep = from_timer(ep, t, timer);
|
||||
struct c4iw_ep *ep = timer_container_of(ep, t, timer);
|
||||
int kickit = 0;
|
||||
|
||||
spin_lock(&timeout_lock);
|
||||
|
@ -169,7 +169,7 @@ unlock:
|
||||
/* Timer function for re-enabling ASPM in the absence of interrupt activity */
|
||||
static void aspm_ctx_timer_function(struct timer_list *t)
|
||||
{
|
||||
struct hfi1_ctxtdata *rcd = from_timer(rcd, t, aspm_timer);
|
||||
struct hfi1_ctxtdata *rcd = timer_container_of(rcd, t, aspm_timer);
|
||||
unsigned long flags;
|
||||
|
||||
spin_lock_irqsave(&rcd->aspm_lock, flags);
|
||||
|
@ -5548,7 +5548,7 @@ static void handle_cce_err(struct hfi1_devdata *dd, u32 unused, u64 reg)
|
||||
#define RCVERR_CHECK_TIME 10
|
||||
static void update_rcverr_timer(struct timer_list *t)
|
||||
{
|
||||
struct hfi1_devdata *dd = from_timer(dd, t, rcverr_timer);
|
||||
struct hfi1_devdata *dd = timer_container_of(dd, t, rcverr_timer);
|
||||
struct hfi1_pportdata *ppd = dd->pport;
|
||||
u32 cur_ovfl_cnt = read_dev_cntr(dd, C_RCV_OVF, CNTR_INVALID_VL);
|
||||
|
||||
@ -12587,7 +12587,7 @@ static void do_update_synth_timer(struct work_struct *work)
|
||||
|
||||
static void update_synth_timer(struct timer_list *t)
|
||||
{
|
||||
struct hfi1_devdata *dd = from_timer(dd, t, synth_stats_timer);
|
||||
struct hfi1_devdata *dd = timer_container_of(dd, t, synth_stats_timer);
|
||||
|
||||
queue_work(dd->update_cntr_wq, &dd->update_cntr_work);
|
||||
mod_timer(&dd->synth_stats_timer, jiffies + HZ * SYNTH_CNT_TIME);
|
||||
|
@ -1315,7 +1315,8 @@ void shutdown_led_override(struct hfi1_pportdata *ppd)
|
||||
|
||||
static void run_led_override(struct timer_list *t)
|
||||
{
|
||||
struct hfi1_pportdata *ppd = from_timer(ppd, t, led_override_timer);
|
||||
struct hfi1_pportdata *ppd = timer_container_of(ppd, t,
|
||||
led_override_timer);
|
||||
struct hfi1_devdata *dd = ppd->dd;
|
||||
unsigned long timeout;
|
||||
int phase_idx;
|
||||
|
@ -369,7 +369,7 @@ static void send_trap(struct hfi1_ibport *ibp, struct trap_node *trap)
|
||||
|
||||
void hfi1_handle_trap_timer(struct timer_list *t)
|
||||
{
|
||||
struct hfi1_ibport *ibp = from_timer(ibp, t, rvp.trap_timer);
|
||||
struct hfi1_ibport *ibp = timer_container_of(ibp, t, rvp.trap_timer);
|
||||
struct trap_node *trap = NULL;
|
||||
unsigned long flags;
|
||||
int i;
|
||||
|
@ -467,7 +467,8 @@ static void sdma_err_progress_check_schedule(struct sdma_engine *sde)
|
||||
static void sdma_err_progress_check(struct timer_list *t)
|
||||
{
|
||||
unsigned index;
|
||||
struct sdma_engine *sde = from_timer(sde, t, err_progress_check_timer);
|
||||
struct sdma_engine *sde = timer_container_of(sde, t,
|
||||
err_progress_check_timer);
|
||||
|
||||
dd_dev_err(sde->dd, "SDE progress check event\n");
|
||||
for (index = 0; index < sde->dd->num_sdma; index++) {
|
||||
|
@ -3981,7 +3981,7 @@ void hfi1_del_tid_reap_timer(struct rvt_qp *qp)
|
||||
|
||||
static void hfi1_tid_timeout(struct timer_list *t)
|
||||
{
|
||||
struct hfi1_qp_priv *qpriv = from_timer(qpriv, t, s_tid_timer);
|
||||
struct hfi1_qp_priv *qpriv = timer_container_of(qpriv, t, s_tid_timer);
|
||||
struct rvt_qp *qp = qpriv->owner;
|
||||
struct rvt_dev_info *rdi = ib_to_rvt(qp->ibqp.device);
|
||||
unsigned long flags;
|
||||
@ -4797,7 +4797,8 @@ void hfi1_del_tid_retry_timer(struct rvt_qp *qp)
|
||||
|
||||
static void hfi1_tid_retry_timeout(struct timer_list *t)
|
||||
{
|
||||
struct hfi1_qp_priv *priv = from_timer(priv, t, s_tid_retry_timer);
|
||||
struct hfi1_qp_priv *priv = timer_container_of(priv, t,
|
||||
s_tid_retry_timer);
|
||||
struct rvt_qp *qp = priv->owner;
|
||||
struct rvt_swqe *wqe;
|
||||
unsigned long flags;
|
||||
|
@ -554,7 +554,7 @@ void hfi1_16B_rcv(struct hfi1_packet *packet)
|
||||
*/
|
||||
static void mem_timer(struct timer_list *t)
|
||||
{
|
||||
struct hfi1_ibdev *dev = from_timer(dev, t, mem_timer);
|
||||
struct hfi1_ibdev *dev = timer_container_of(dev, t, mem_timer);
|
||||
struct list_head *list = &dev->memwait;
|
||||
struct rvt_qp *qp = NULL;
|
||||
struct iowait *wait;
|
||||
|
@ -1263,7 +1263,8 @@ static void irdma_cm_timer_tick(struct timer_list *t)
|
||||
struct irdma_timer_entry *send_entry, *close_entry;
|
||||
struct list_head *list_core_temp;
|
||||
struct list_head *list_node;
|
||||
struct irdma_cm_core *cm_core = from_timer(cm_core, t, tcp_timer);
|
||||
struct irdma_cm_core *cm_core = timer_container_of(cm_core, t,
|
||||
tcp_timer);
|
||||
struct irdma_sc_vsi *vsi;
|
||||
u32 settimer = 0;
|
||||
unsigned long timetosend;
|
||||
|
@ -930,7 +930,7 @@ void irdma_terminate_done(struct irdma_sc_qp *qp, int timeout_occurred)
|
||||
|
||||
static void irdma_terminate_timeout(struct timer_list *t)
|
||||
{
|
||||
struct irdma_qp *iwqp = from_timer(iwqp, t, terminate_timer);
|
||||
struct irdma_qp *iwqp = timer_container_of(iwqp, t, terminate_timer);
|
||||
struct irdma_sc_qp *qp = &iwqp->sc_qp;
|
||||
|
||||
irdma_terminate_done(qp, 1);
|
||||
@ -1537,7 +1537,7 @@ int irdma_puda_get_tcpip_info(struct irdma_puda_cmpl_info *info,
|
||||
static void irdma_hw_stats_timeout(struct timer_list *t)
|
||||
{
|
||||
struct irdma_vsi_pestat *pf_devstat =
|
||||
from_timer(pf_devstat, t, stats_timer);
|
||||
timer_container_of(pf_devstat, t, stats_timer);
|
||||
struct irdma_sc_vsi *sc_vsi = pf_devstat->vsi;
|
||||
|
||||
if (sc_vsi->dev->hw_attrs.uk_attrs.hw_rev >= IRDMA_GEN_2)
|
||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user