Lines Matching refs:db
78 struct arm_doorbell *db; in arm_doorbell_lp_intr() local
87 db = &dbells[i]; in arm_doorbell_lp_intr()
90 if (db->func != NULL) in arm_doorbell_lp_intr()
91 db->func(db->arg); in arm_doorbell_lp_intr()
100 struct arm_doorbell *db; in arm_doorbell_hp_intr() local
109 db = &dbells[i]; in arm_doorbell_hp_intr()
112 if (db->func != NULL) in arm_doorbell_hp_intr()
113 db->func(db->arg); in arm_doorbell_hp_intr()
185 struct arm_doorbell *db; in arm_doorbell_ofw_get() local
252 db = &dbells[chan * db_id]; in arm_doorbell_ofw_get()
253 db->dev = dev; in arm_doorbell_ofw_get()
254 db->db_dev = db_dev; in arm_doorbell_ofw_get()
255 db->chan = chan; in arm_doorbell_ofw_get()
256 db->db = db_id; in arm_doorbell_ofw_get()
260 return (db); in arm_doorbell_ofw_get()
264 arm_doorbell_set(struct arm_doorbell *db) in arm_doorbell_set() argument
269 sc = device_get_softc(db->db_dev); in arm_doorbell_set()
271 switch (db->chan) { in arm_doorbell_set()
287 bus_write_4(sc->res[0], offset + MHU_INTR_SET, (1 << db->db)); in arm_doorbell_set()
291 arm_doorbell_get(struct arm_doorbell *db) in arm_doorbell_get() argument
297 sc = device_get_softc(db->db_dev); in arm_doorbell_get()
299 switch (db->chan) { in arm_doorbell_get()
314 if (reg & (1 << db->db)) { in arm_doorbell_get()
316 (1 << db->db)); in arm_doorbell_get()
324 arm_doorbell_set_handler(struct arm_doorbell *db, void (*func)(void *), in arm_doorbell_set_handler() argument
328 db->func = func; in arm_doorbell_set_handler()
329 db->arg = arg; in arm_doorbell_set_handler()