p_ll2_info 611 drivers/net/ethernet/qlogic/qed/qed.h struct qed_ll2_info *p_ll2_info; p_ll2_info 258 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!p_hwfn->p_ll2_info) p_ll2_info 261 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_conn = &p_hwfn->p_ll2_info[connection_handle]; p_ll2_info 1150 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_info *p_ll2_info) p_ll2_info 1156 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!p_ll2_info->input.rx_num_desc) p_ll2_info 1163 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->input.rx_num_desc, p_ll2_info 1165 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_ll2_info->rx_queue.rxq_chain, NULL); p_ll2_info 1171 drivers/net/ethernet/qlogic/qed/qed_ll2.c capacity = qed_chain_get_capacity(&p_ll2_info->rx_queue.rxq_chain); p_ll2_info 1179 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->rx_queue.descq_array = p_descq; p_ll2_info 1185 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->input.rx_num_desc, p_ll2_info 1187 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_ll2_info->rx_queue.rcq_chain, NULL); p_ll2_info 1195 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->input.conn_type, p_ll2_info->input.rx_num_desc); p_ll2_info 1202 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_info *p_ll2_info) p_ll2_info 1209 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!p_ll2_info->input.tx_num_desc) p_ll2_info 1216 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->input.tx_num_desc, p_ll2_info 1218 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_ll2_info->tx_queue.txq_chain, NULL); p_ll2_info 1222 drivers/net/ethernet/qlogic/qed/qed_ll2.c capacity = qed_chain_get_capacity(&p_ll2_info->tx_queue.txq_chain); p_ll2_info 1225 drivers/net/ethernet/qlogic/qed/qed_ll2.c (p_ll2_info->input.tx_max_bds_per_packet - 1) * p_ll2_info 1233 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->tx_queue.descq_mem = p_descq; p_ll2_info 1237 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->input.conn_type, p_ll2_info->input.tx_num_desc); p_ll2_info 1243 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->input.tx_num_desc); p_ll2_info 1249 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_info *p_ll2_info, u16 mtu) p_ll2_info 1256 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (p_ll2_info->input.conn_type != QED_LL2_TYPE_OOO) p_ll2_info 1260 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!p_ll2_info->input.rx_num_ooo_buffers) { p_ll2_info 1261 drivers/net/ethernet/qlogic/qed/qed_ll2.c u16 num_desc = p_ll2_info->input.rx_num_desc; p_ll2_info 1265 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->input.rx_num_ooo_buffers = num_desc * 2; p_ll2_info 1268 drivers/net/ethernet/qlogic/qed/qed_ll2.c for (buf_idx = 0; buf_idx < p_ll2_info->input.rx_num_ooo_buffers; p_ll2_info 1296 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->input.rx_num_ooo_buffers, p_buf->rx_buffer_size); p_ll2_info 1303 drivers/net/ethernet/qlogic/qed/qed_ll2.c qed_ll2_set_cbs(struct qed_ll2_info *p_ll2_info, const struct qed_ll2_cbs *cbs) p_ll2_info 1310 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->cbs.rx_comp_cb = cbs->rx_comp_cb; p_ll2_info 1311 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->cbs.rx_release_cb = cbs->rx_release_cb; p_ll2_info 1312 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->cbs.tx_comp_cb = cbs->tx_comp_cb; p_ll2_info 1313 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->cbs.tx_release_cb = cbs->tx_release_cb; p_ll2_info 1314 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->cbs.slowpath_cb = cbs->slowpath_cb; p_ll2_info 1315 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->cbs.cookie = cbs->cookie; p_ll2_info 1339 drivers/net/ethernet/qlogic/qed/qed_ll2.c struct qed_ll2_info *p_ll2_info = NULL; p_ll2_info 1343 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!data->p_connection_handle || !p_hwfn->p_ll2_info) p_ll2_info 1348 drivers/net/ethernet/qlogic/qed/qed_ll2.c mutex_lock(&p_hwfn->p_ll2_info[i].mutex); p_ll2_info 1349 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (p_hwfn->p_ll2_info[i].b_active) { p_ll2_info 1350 drivers/net/ethernet/qlogic/qed/qed_ll2.c mutex_unlock(&p_hwfn->p_ll2_info[i].mutex); p_ll2_info 1354 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_hwfn->p_ll2_info[i].b_active = true; p_ll2_info 1355 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info = &p_hwfn->p_ll2_info[i]; p_ll2_info 1356 drivers/net/ethernet/qlogic/qed/qed_ll2.c mutex_unlock(&p_hwfn->p_ll2_info[i].mutex); p_ll2_info 1359 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!p_ll2_info) p_ll2_info 1362 drivers/net/ethernet/qlogic/qed/qed_ll2.c memcpy(&p_ll2_info->input, &data->input, sizeof(p_ll2_info->input)); p_ll2_info 1366 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->tx_dest = CORE_TX_DEST_NW; p_ll2_info 1369 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->tx_dest = CORE_TX_DEST_LB; p_ll2_info 1372 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->tx_dest = CORE_TX_DEST_DROP; p_ll2_info 1380 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->main_func_queue = false; p_ll2_info 1382 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->main_func_queue = true; p_ll2_info 1385 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_tx_max = &p_ll2_info->input.tx_max_bds_per_packet; p_ll2_info 1392 drivers/net/ethernet/qlogic/qed/qed_ll2.c rc = qed_ll2_set_cbs(p_ll2_info, data->cbs); p_ll2_info 1398 drivers/net/ethernet/qlogic/qed/qed_ll2.c rc = qed_ll2_acquire_connection_rx(p_hwfn, p_ll2_info); p_ll2_info 1402 drivers/net/ethernet/qlogic/qed/qed_ll2.c rc = qed_ll2_acquire_connection_tx(p_hwfn, p_ll2_info); p_ll2_info 1406 drivers/net/ethernet/qlogic/qed/qed_ll2.c rc = qed_ll2_acquire_connection_ooo(p_hwfn, p_ll2_info, p_ll2_info 1422 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_hwfn->p_ll2_info[i], p_ll2_info 1423 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_ll2_info->rx_queue.rx_sb_index, p_ll2_info 1424 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_ll2_info->rx_queue.p_fw_cons); p_ll2_info 1425 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->rx_queue.b_cb_registered = true; p_ll2_info 1431 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_hwfn->p_ll2_info[i], p_ll2_info 1432 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_ll2_info->tx_queue.tx_sb_index, p_ll2_info 1433 drivers/net/ethernet/qlogic/qed/qed_ll2.c &p_ll2_info->tx_queue.p_fw_cons); p_ll2_info 1434 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_info->tx_queue.b_cb_registered = true; p_ll2_info 2054 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_hwfn->p_ll2_info = p_ll2_connections; p_ll2_info 2063 drivers/net/ethernet/qlogic/qed/qed_ll2.c mutex_init(&p_hwfn->p_ll2_info[i].mutex); p_ll2_info 2068 drivers/net/ethernet/qlogic/qed/qed_ll2.c if (!p_hwfn->p_ll2_info) p_ll2_info 2071 drivers/net/ethernet/qlogic/qed/qed_ll2.c kfree(p_hwfn->p_ll2_info); p_ll2_info 2072 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_hwfn->p_ll2_info = NULL; p_ll2_info 2167 drivers/net/ethernet/qlogic/qed/qed_ll2.c !p_hwfn->p_ll2_info) p_ll2_info 2170 drivers/net/ethernet/qlogic/qed/qed_ll2.c p_ll2_conn = &p_hwfn->p_ll2_info[connection_handle];