Lines Matching refs:cnic_dev
102 static void cnic_shutdown_rings(struct cnic_dev *);
103 static void cnic_init_rings(struct cnic_dev *);
109 struct cnic_dev *dev; in cnic_uio_open()
142 static inline void cnic_hold(struct cnic_dev *dev) in cnic_hold()
147 static inline void cnic_put(struct cnic_dev *dev) in cnic_put()
162 static struct cnic_dev *cnic_from_netdev(struct net_device *netdev) in cnic_from_netdev()
164 struct cnic_dev *cdev; in cnic_from_netdev()
188 static void cnic_ctx_wr(struct cnic_dev *dev, u32 cid_addr, u32 off, u32 val) in cnic_ctx_wr()
203 static void cnic_ctx_tbl_wr(struct cnic_dev *dev, u32 off, dma_addr_t addr) in cnic_ctx_tbl_wr()
217 static void cnic_ring_ctl(struct cnic_dev *dev, u32 cid, u32 cl_id, int start) in cnic_ring_ctl()
235 static void cnic_reg_wr_ind(struct cnic_dev *dev, u32 off, u32 val) in cnic_reg_wr_ind()
249 static u32 cnic_reg_rd_ind(struct cnic_dev *dev, u32 off) in cnic_reg_rd_ind()
263 static void cnic_ulp_ctl(struct cnic_dev *dev, int ulp_type, bool reg, int state) in cnic_ulp_ctl()
290 static void cnic_spq_completion(struct cnic_dev *dev, int cmd, u32 count) in cnic_spq_completion()
372 static int cnic_iscsi_nl_msg_recv(struct cnic_dev *dev, u32 msg_type, in cnic_iscsi_nl_msg_recv()
475 struct cnic_dev *dev; in cnic_register_driver()
516 struct cnic_dev *dev; in cnic_unregister_driver()
563 static int cnic_start_hw(struct cnic_dev *);
564 static void cnic_stop_hw(struct cnic_dev *);
566 static int cnic_register_device(struct cnic_dev *dev, int ulp_type, in cnic_register_device()
609 static int cnic_unregister_device(struct cnic_dev *dev, int ulp_type) in cnic_unregister_device()
732 static void cnic_free_dma(struct cnic_dev *dev, struct cnic_dma *dma) in cnic_free_dma()
756 static void cnic_setup_page_tbl(struct cnic_dev *dev, struct cnic_dma *dma) in cnic_setup_page_tbl()
770 static void cnic_setup_page_tbl_le(struct cnic_dev *dev, struct cnic_dma *dma) in cnic_setup_page_tbl_le()
784 static int cnic_alloc_dma(struct cnic_dev *dev, struct cnic_dma *dma, in cnic_alloc_dma()
825 static void cnic_free_context(struct cnic_dev *dev) in cnic_free_context()
877 static void cnic_free_resc(struct cnic_dev *dev) in cnic_free_resc()
908 static int cnic_alloc_context(struct cnic_dev *dev) in cnic_alloc_context()
984 static int cnic_alloc_kcq(struct cnic_dev *dev, struct kcq_info *info, in cnic_alloc_kcq()
1049 static int cnic_alloc_uio_rings(struct cnic_dev *dev, int pages) in cnic_alloc_uio_rings()
1091 static int cnic_init_uio(struct cnic_dev *dev) in cnic_init_uio()
1157 static int cnic_alloc_bnx2_resc(struct cnic_dev *dev) in cnic_alloc_bnx2_resc()
1190 static int cnic_alloc_bnx2x_context(struct cnic_dev *dev) in cnic_alloc_bnx2x_context()
1238 static int cnic_alloc_bnx2x_resc(struct cnic_dev *dev) in cnic_alloc_bnx2x_resc()
1342 static int cnic_submit_bnx2_kwqes(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_submit_bnx2_kwqes()
1389 static int cnic_submit_kwqe_16(struct cnic_dev *dev, u32 cmd, u32 cid, in cnic_submit_kwqe_16()
1424 static void cnic_reply_bnx2x_kcqes(struct cnic_dev *dev, int ulp_type, in cnic_reply_bnx2x_kcqes()
1439 static void cnic_bnx2x_set_tcp_options(struct cnic_dev *dev, int time_stamps, in cnic_bnx2x_set_tcp_options()
1460 static int cnic_bnx2x_iscsi_init1(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_init1()
1546 static int cnic_bnx2x_iscsi_init2(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_init2()
1588 static void cnic_free_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_free_bnx2x_conn_resc()
1607 static int cnic_alloc_bnx2x_conn_resc(struct cnic_dev *dev, u32 l5_cid) in cnic_alloc_bnx2x_conn_resc()
1655 static void *cnic_get_bnx2x_ctx(struct cnic_dev *dev, u32 cid, int init, in cnic_get_bnx2x_ctx()
1685 static int cnic_setup_bnx2x_ctx(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_setup_bnx2x_ctx()
1872 static int cnic_bnx2x_iscsi_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_iscsi_ofld1()
1940 static int cnic_bnx2x_iscsi_update(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_update()
1964 static int cnic_bnx2x_destroy_ramrod(struct cnic_dev *dev, u32 l5_cid) in cnic_bnx2x_destroy_ramrod()
1990 static int cnic_bnx2x_iscsi_destroy(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_iscsi_destroy()
2038 static void cnic_init_storm_conn_bufs(struct cnic_dev *dev, in cnic_init_storm_conn_bufs()
2082 static void cnic_init_bnx2x_mac(struct cnic_dev *dev) in cnic_init_bnx2x_mac()
2118 static int cnic_bnx2x_connect(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_connect()
2201 static int cnic_bnx2x_close(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_close()
2213 static int cnic_bnx2x_reset(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_reset()
2224 static int cnic_bnx2x_offload_pg(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_offload_pg()
2239 static int cnic_bnx2x_update_pg(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_update_pg()
2254 static int cnic_bnx2x_fcoe_stat(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_stat()
2279 static int cnic_bnx2x_fcoe_init1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_init1()
2336 static int cnic_bnx2x_fcoe_ofld1(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_bnx2x_fcoe_ofld1()
2431 static int cnic_bnx2x_fcoe_enable(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_enable()
2459 static int cnic_bnx2x_fcoe_disable(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_disable()
2491 static int cnic_bnx2x_fcoe_destroy(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_destroy()
2538 static void cnic_bnx2x_delete_wait(struct cnic_dev *dev, u32 start_cid) in cnic_bnx2x_delete_wait()
2562 static int cnic_bnx2x_fcoe_fw_destroy(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_fcoe_fw_destroy()
2580 static void cnic_bnx2x_kwqe_err(struct cnic_dev *dev, struct kwqe *kwqe) in cnic_bnx2x_kwqe_err()
2653 static int cnic_submit_bnx2x_iscsi_kwqes(struct cnic_dev *dev, in cnic_submit_bnx2x_iscsi_kwqes()
2726 static int cnic_submit_bnx2x_fcoe_kwqes(struct cnic_dev *dev, in cnic_submit_bnx2x_fcoe_kwqes()
2791 static int cnic_submit_bnx2x_kwqes(struct cnic_dev *dev, struct kwqe *wqes[], in cnic_submit_bnx2x_kwqes()
2826 static void service_kcqes(struct cnic_dev *dev, int num_cqes) in service_kcqes()
2885 static int cnic_get_kcqes(struct cnic_dev *dev, struct kcq_info *info) in cnic_get_kcqes()
2970 static u32 cnic_service_bnx2_queues(struct cnic_dev *dev) in cnic_service_bnx2_queues()
3001 struct cnic_dev *dev = data; in cnic_service_bnx2()
3015 struct cnic_dev *dev = cp->dev; in cnic_service_bnx2_msix()
3023 static void cnic_doirq(struct cnic_dev *dev) in cnic_doirq()
3039 struct cnic_dev *dev = dev_instance; in cnic_irq()
3050 static inline void cnic_ack_bnx2x_int(struct cnic_dev *dev, u8 id, u8 storm, in cnic_ack_bnx2x_int()
3068 static void cnic_ack_igu_sb(struct cnic_dev *dev, u8 igu_sb_id, u8 segment, in cnic_ack_igu_sb()
3084 static void cnic_ack_bnx2x_msix(struct cnic_dev *dev) in cnic_ack_bnx2x_msix()
3092 static void cnic_ack_bnx2x_e2_msix(struct cnic_dev *dev) in cnic_ack_bnx2x_e2_msix()
3100 static void cnic_arm_bnx2x_msix(struct cnic_dev *dev, u32 idx) in cnic_arm_bnx2x_msix()
3108 static void cnic_arm_bnx2x_e2_msix(struct cnic_dev *dev, u32 idx) in cnic_arm_bnx2x_e2_msix()
3116 static u32 cnic_service_bnx2x_kcq(struct cnic_dev *dev, struct kcq_info *info) in cnic_service_bnx2x_kcq()
3140 struct cnic_dev *dev = cp->dev; in cnic_service_bnx2x_bh()
3175 struct cnic_dev *dev = data; in cnic_service_bnx2x()
3209 static void cnic_ulp_stop(struct cnic_dev *dev) in cnic_ulp_stop()
3218 static void cnic_ulp_start(struct cnic_dev *dev) in cnic_ulp_start()
3243 static int cnic_copy_ulp_stats(struct cnic_dev *dev, int ulp_type) in cnic_copy_ulp_stats()
3262 struct cnic_dev *dev = data; in cnic_ctl()
3327 static void cnic_ulp_init(struct cnic_dev *dev) in cnic_ulp_init()
3351 static void cnic_ulp_exit(struct cnic_dev *dev) in cnic_ulp_exit()
3377 struct cnic_dev *dev = csk->dev; in cnic_cm_offload_pg()
3419 struct cnic_dev *dev = csk->dev; in cnic_cm_update_pg()
3447 struct cnic_dev *dev = csk->dev; in cnic_cm_upload_pg()
3465 struct cnic_dev *dev = csk->dev; in cnic_cm_conn_req()
3549 struct cnic_dev *dev = csk->dev; in cnic_cm_close_req()
3566 struct cnic_dev *dev = csk->dev; in cnic_cm_abort_req()
3581 static int cnic_cm_create(struct cnic_dev *dev, int ulp_type, u32 cid, in cnic_cm_create()
3628 struct cnic_dev *dev = csk->dev; in cnic_cm_cleanup()
3713 static struct cnic_dev *cnic_cm_select_dev(struct sockaddr_in *dst_addr, in cnic_cm_select_dev()
3716 struct cnic_dev *dev = NULL; in cnic_cm_select_dev()
3750 struct cnic_dev *dev = csk->dev; in cnic_resolve_addr()
3758 struct cnic_dev *dev = csk->dev; in cnic_get_route()
3942 static void cnic_cm_process_offld_pg(struct cnic_dev *dev, struct l4_kcq *kcqe) in cnic_cm_process_offld_pg()
3973 static void cnic_process_fcoe_term_conn(struct cnic_dev *dev, struct kcqe *kcqe) in cnic_process_fcoe_term_conn()
3985 static void cnic_cm_process_kcqe(struct cnic_dev *dev, struct kcqe *kcqe) in cnic_cm_process_kcqe()
4074 struct cnic_dev *dev = data; in cnic_cm_indicate_kcqe()
4085 static void cnic_cm_free_mem(struct cnic_dev *dev) in cnic_cm_free_mem()
4094 static int cnic_cm_alloc_mem(struct cnic_dev *dev) in cnic_cm_alloc_mem()
4146 struct cnic_dev *dev = csk->dev; in cnic_close_bnx2_conn()
4160 static void cnic_cm_stop_bnx2_hw(struct cnic_dev *dev) in cnic_cm_stop_bnx2_hw()
4164 static int cnic_cm_init_bnx2_hw(struct cnic_dev *dev) in cnic_cm_init_bnx2_hw()
4175 struct cnic_dev *dev = csk->dev; in cnic_close_bnx2x_conn()
4214 static void cnic_cm_stop_bnx2x_hw(struct cnic_dev *dev) in cnic_cm_stop_bnx2x_hw()
4234 static int cnic_cm_init_bnx2x_hw(struct cnic_dev *dev) in cnic_cm_init_bnx2x_hw()
4269 struct cnic_dev *dev; in cnic_delete_task()
4319 static int cnic_cm_open(struct cnic_dev *dev) in cnic_cm_open()
4351 static int cnic_cm_shutdown(struct cnic_dev *dev) in cnic_cm_shutdown()
4370 static void cnic_init_context(struct cnic_dev *dev, u32 cid) in cnic_init_context()
4381 static int cnic_setup_5709_context(struct cnic_dev *dev, int valid) in cnic_setup_5709_context()
4418 static void cnic_free_irq(struct cnic_dev *dev) in cnic_free_irq()
4430 static int cnic_request_irq(struct cnic_dev *dev) in cnic_request_irq()
4443 static int cnic_init_bnx2_irq(struct cnic_dev *dev) in cnic_init_bnx2_irq()
4502 static void cnic_enable_bnx2_int(struct cnic_dev *dev) in cnic_enable_bnx2_int()
4514 static void cnic_disable_bnx2_int_sync(struct cnic_dev *dev) in cnic_disable_bnx2_int_sync()
4528 static void cnic_init_bnx2_tx_ring(struct cnic_dev *dev) in cnic_init_bnx2_tx_ring()
4595 static void cnic_init_bnx2_rx_ring(struct cnic_dev *dev) in cnic_init_bnx2_rx_ring()
4661 static void cnic_shutdown_bnx2_rx_ring(struct cnic_dev *dev) in cnic_shutdown_bnx2_rx_ring()
4673 static void cnic_set_bnx2_mac(struct cnic_dev *dev) in cnic_set_bnx2_mac()
4707 static int cnic_start_bnx2_hw(struct cnic_dev *dev) in cnic_start_bnx2_hw()
4843 static void cnic_setup_bnx2x_context(struct cnic_dev *dev) in cnic_setup_bnx2x_context()
4864 static int cnic_init_bnx2x_irq(struct cnic_dev *dev) in cnic_init_bnx2x_irq()
4877 static inline void cnic_storm_memset_hc_disable(struct cnic_dev *dev, in cnic_storm_memset_hc_disable()
4896 static void cnic_enable_bnx2x_int(struct cnic_dev *dev) in cnic_enable_bnx2x_int()
4910 static void cnic_disable_bnx2x_int_sync(struct cnic_dev *dev) in cnic_disable_bnx2x_int_sync()
4914 static void cnic_init_bnx2x_tx_ring(struct cnic_dev *dev, in cnic_init_bnx2x_tx_ring()
4980 static void cnic_init_bnx2x_rx_ring(struct cnic_dev *dev, in cnic_init_bnx2x_rx_ring()
5048 static void cnic_init_bnx2x_kcq(struct cnic_dev *dev) in cnic_init_bnx2x_kcq()
5087 static int cnic_start_bnx2x_hw(struct cnic_dev *dev) in cnic_start_bnx2x_hw()
5162 static void cnic_init_rings(struct cnic_dev *dev) in cnic_init_rings()
5234 static void cnic_shutdown_rings(struct cnic_dev *dev) in cnic_shutdown_rings()
5279 static int cnic_register_netdev(struct cnic_dev *dev) in cnic_register_netdev()
5305 static void cnic_unregister_netdev(struct cnic_dev *dev) in cnic_unregister_netdev()
5316 static int cnic_start_hw(struct cnic_dev *dev) in cnic_start_hw()
5360 static void cnic_stop_bnx2_hw(struct cnic_dev *dev) in cnic_stop_bnx2_hw()
5377 static void cnic_stop_bnx2x_hw(struct cnic_dev *dev) in cnic_stop_bnx2x_hw()
5409 static void cnic_stop_hw(struct cnic_dev *dev) in cnic_stop_hw()
5434 static void cnic_free_dev(struct cnic_dev *dev) in cnic_free_dev()
5450 static int cnic_get_fc_npiv_tbl(struct cnic_dev *dev, in cnic_get_fc_npiv_tbl()
5467 static struct cnic_dev *cnic_alloc_dev(struct net_device *dev, in cnic_alloc_dev()
5470 struct cnic_dev *cdev; in cnic_alloc_dev()
5474 alloc_size = sizeof(struct cnic_dev) + sizeof(struct cnic_local); in cnic_alloc_dev()
5481 cdev->cnic_priv = (char *)cdev + sizeof(struct cnic_dev); in cnic_alloc_dev()
5500 static struct cnic_dev *init_bnx2_cnic(struct net_device *dev) in init_bnx2_cnic()
5503 struct cnic_dev *cdev; in init_bnx2_cnic()
5560 static struct cnic_dev *init_bnx2x_cnic(struct net_device *dev) in init_bnx2x_cnic()
5563 struct cnic_dev *cdev; in init_bnx2x_cnic()
5628 static struct cnic_dev *is_cnic_dev(struct net_device *dev) in is_cnic_dev()
5631 struct cnic_dev *cdev = NULL; in is_cnic_dev()
5683 struct cnic_dev *dev; in cnic_netdev_event()