Lines Matching refs:db
87 struct sparx5_db_hw *db = &dcb->db[idx]; in sparx5_fdma_rx_add_dcb() local
89 db->status = FDMA_DCB_STATUS_INTR; in sparx5_fdma_rx_add_dcb()
105 struct sparx5_db_hw *db = &dcb->db[idx]; in sparx5_fdma_tx_add_dcb() local
107 db->status = FDMA_DCB_STATUS_DONE; in sparx5_fdma_tx_add_dcb()
216 db_hw = &rx->dcb_entries[rx->dcb_index].db[rx->db_index]; in sparx5_fdma_rx_get_frame()
313 struct sparx5_db *db; in sparx5_fdma_xmit() local
316 db_hw = &next_dcb_hw->db[0]; in sparx5_fdma_xmit()
319 db = list_first_entry(&tx->db_list, struct sparx5_db, list); in sparx5_fdma_xmit()
320 list_move_tail(&db->list, &tx->db_list); in sparx5_fdma_xmit()
326 memset(db->cpu_addr, 0, FDMA_XTR_BUFFER_SIZE); in sparx5_fdma_xmit()
327 memcpy(db->cpu_addr, ifh, IFH_LEN * 4); in sparx5_fdma_xmit()
328 memcpy(db->cpu_addr + IFH_LEN * 4, skb->data, skb->len); in sparx5_fdma_xmit()
367 struct sparx5_db_hw *db_hw = &dcb->db[jdx]; in sparx5_fdma_rx_alloc()
409 struct sparx5_db_hw *db_hw = &dcb->db[jdx]; in sparx5_fdma_tx_alloc()
410 struct sparx5_db *db; in sparx5_fdma_tx_alloc() local
422 db = devm_kzalloc(sparx5->dev, sizeof(*db), GFP_KERNEL); in sparx5_fdma_tx_alloc()
423 db->cpu_addr = cpu_addr; in sparx5_fdma_tx_alloc()
424 list_add_tail(&db->list, &tx->db_list); in sparx5_fdma_tx_alloc()
460 u32 db = 0, err = 0; in sparx5_fdma_handler() local
462 db = spx5_rd(sparx5, FDMA_INTR_DB); in sparx5_fdma_handler()
465 if (db) { in sparx5_fdma_handler()
467 spx5_wr(db, sparx5, FDMA_INTR_DB); in sparx5_fdma_handler()