Home
last modified time | relevance | path

Searched refs:thi (Results 1 – 6 of 6) sorted by relevance

/drivers/block/drbd/
Ddrbd_main.c307 struct drbd_thread *thi = (struct drbd_thread *) arg; in drbd_thread_setup() local
308 struct drbd_resource *resource = thi->resource; in drbd_thread_setup()
313 thi->name[0], in drbd_thread_setup()
319 retval = thi->function(thi); in drbd_thread_setup()
321 spin_lock_irqsave(&thi->t_lock, flags); in drbd_thread_setup()
333 if (thi->t_state == RESTARTING) { in drbd_thread_setup()
334 drbd_info(resource, "Restarting %s thread\n", thi->name); in drbd_thread_setup()
335 thi->t_state = RUNNING; in drbd_thread_setup()
336 spin_unlock_irqrestore(&thi->t_lock, flags); in drbd_thread_setup()
340 thi->task = NULL; in drbd_thread_setup()
[all …]
Ddrbd_int.h246 static inline enum drbd_thread_state get_t_state(struct drbd_thread *thi) in get_t_state() argument
253 return thi->t_state; in get_t_state()
1066 extern int drbd_thread_start(struct drbd_thread *thi);
1067 extern void _drbd_thread_stop(struct drbd_thread *thi, int restart, int wait);
1069 extern void drbd_thread_current_set_cpu(struct drbd_thread *thi);
1487 extern int drbd_worker(struct drbd_thread *thi);
1541 extern int drbd_receiver(struct drbd_thread *thi);
1542 extern int drbd_ack_receiver(struct drbd_thread *thi);
1948 static inline void drbd_thread_stop(struct drbd_thread *thi) in drbd_thread_stop() argument
1950 _drbd_thread_stop(thi, false, true); in drbd_thread_stop()
[all …]
Ddrbd_worker.c2162 int drbd_worker(struct drbd_thread *thi) in drbd_worker() argument
2164 struct drbd_connection *connection = thi->connection; in drbd_worker()
2170 while (get_t_state(thi) == RUNNING) { in drbd_worker()
2171 drbd_thread_current_set_cpu(thi); in drbd_worker()
2185 if (get_t_state(thi) == RUNNING) { in drbd_worker()
2192 if (get_t_state(thi) != RUNNING) in drbd_worker()
Ddrbd_receiver.c5525 int drbd_receiver(struct drbd_thread *thi) in drbd_receiver() argument
5527 struct drbd_connection *connection = thi->connection; in drbd_receiver()
5946 int drbd_ack_receiver(struct drbd_thread *thi) in drbd_ack_receiver() argument
5948 struct drbd_connection *connection = thi->connection; in drbd_ack_receiver()
5961 while (get_t_state(thi) == RUNNING) { in drbd_ack_receiver()
5962 drbd_thread_current_set_cpu(thi); in drbd_ack_receiver()
/drivers/i2c/algos/
Di2c-algo-pca.c54 pca_outw(adap, I2C_PCA_IND, adap->bus_settings.thi); in pca_reset()
451 int tlow, thi; in pca_init() local
506 thi = 1000000 - clock * raise_fall_time; in pca_init()
507 thi /= (I2C_PCA_OSC_PER * clock) - tlow; in pca_init()
511 thi = tlow * min_thi / min_tlow; in pca_init()
517 pca_data->bus_settings.thi = thi; in pca_init()
/drivers/infiniband/hw/cxgb4/
Dcm.c3825 u64 thi = be64_to_cpu(tcb[((31 - word) / 2) - 1]); in t4_tcb_get_field64() local
3829 t = (thi << shift) | (tlo >> shift); in t4_tcb_get_field64()