Home
last modified time | relevance | path

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

/drivers/block/drbd/
Ddrbd_main.c311 struct drbd_thread *thi = (struct drbd_thread *) arg; in drbd_thread_setup() local
312 struct drbd_resource *resource = thi->resource; in drbd_thread_setup()
317 thi->name[0], in drbd_thread_setup()
323 retval = thi->function(thi); in drbd_thread_setup()
325 spin_lock_irqsave(&thi->t_lock, flags); in drbd_thread_setup()
337 if (thi->t_state == RESTARTING) { in drbd_thread_setup()
338 drbd_info(resource, "Restarting %s thread\n", thi->name); in drbd_thread_setup()
339 thi->t_state = RUNNING; in drbd_thread_setup()
340 spin_unlock_irqrestore(&thi->t_lock, flags); in drbd_thread_setup()
344 thi->task = NULL; in drbd_thread_setup()
[all …]
Ddrbd_int.h174 static inline enum drbd_thread_state get_t_state(struct drbd_thread *thi) in get_t_state() argument
181 return thi->t_state; in get_t_state()
1000 extern int drbd_thread_start(struct drbd_thread *thi);
1001 extern void _drbd_thread_stop(struct drbd_thread *thi, int restart, int wait);
1003 extern void drbd_thread_current_set_cpu(struct drbd_thread *thi);
1430 extern int drbd_worker(struct drbd_thread *thi);
1487 extern int drbd_receiver(struct drbd_thread *thi);
1488 extern int drbd_ack_receiver(struct drbd_thread *thi);
1893 static inline void drbd_thread_stop(struct drbd_thread *thi) in drbd_thread_stop() argument
1895 _drbd_thread_stop(thi, false, true); in drbd_thread_stop()
[all …]
Ddrbd_worker.c2170 int drbd_worker(struct drbd_thread *thi) in drbd_worker() argument
2172 struct drbd_connection *connection = thi->connection; in drbd_worker()
2178 while (get_t_state(thi) == RUNNING) { in drbd_worker()
2179 drbd_thread_current_set_cpu(thi); in drbd_worker()
2193 if (get_t_state(thi) == RUNNING) { in drbd_worker()
2200 if (get_t_state(thi) != RUNNING) in drbd_worker()
Ddrbd_receiver.c5539 int drbd_receiver(struct drbd_thread *thi) in drbd_receiver() argument
5541 struct drbd_connection *connection = thi->connection; in drbd_receiver()
5961 int drbd_ack_receiver(struct drbd_thread *thi) in drbd_ack_receiver() argument
5963 struct drbd_connection *connection = thi->connection; in drbd_ack_receiver()
5976 while (get_t_state(thi) == RUNNING) { in drbd_ack_receiver()
5977 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()