Home
last modified time | relevance | path

Searched refs:octeon_dev (Results 1 – 11 of 11) sorted by relevance

/linux/drivers/net/ethernet/cavium/liquidio/
H A Dresponse_manager.c64 int lio_process_ordered_list(struct octeon_device *octeon_dev, in lio_process_ordered_list() argument
74 octeon_free_sc_done_list(octeon_dev); in lio_process_ordered_list()
76 ordered_sc_list = &octeon_dev->response_list[OCTEON_ORDERED_SC_LIST]; in lio_process_ordered_list()
123 dev_err(&octeon_dev->pci_dev->dev, "%s: ", __func__); in lio_process_ordered_list()
124 dev_err(&octeon_dev->pci_dev->dev, in lio_process_ordered_list()
128 dev_err(&octeon_dev->pci_dev->dev, in lio_process_ordered_list()
140 atomic_dec(&octeon_dev->response_list in lio_process_ordered_list()
145 atomic_inc(&octeon_dev->response_list in lio_process_ordered_list()
149 &octeon_dev->response_list in lio_process_ordered_list()
163 (&octeon_dev->pci_dev->dev, in lio_process_ordered_list()
[all …]
H A Dlio_main.c3332 static int setup_nic_devices(struct octeon_device *octeon_dev) in setup_nic_devices() argument
3354 octeon_register_dispatch_fn(octeon_dev, OPCODE_NIC, in setup_nic_devices()
3356 lio_nic_info, octeon_dev); in setup_nic_devices()
3361 octeon_register_reqtype_free_fn(octeon_dev, REQTYPE_NORESP_NET, in setup_nic_devices()
3364 octeon_register_reqtype_free_fn(octeon_dev, REQTYPE_NORESP_NET_SG, in setup_nic_devices()
3367 octeon_register_reqtype_free_fn(octeon_dev, REQTYPE_RESP_NET_SG, in setup_nic_devices()
3370 for (i = 0; i < octeon_dev->ifcount; i++) { in setup_nic_devices()
3374 octeon_alloc_soft_command(octeon_dev, data_size, in setup_nic_devices()
3384 if (OCTEON_CN23XX_PF(octeon_dev)) { in setup_nic_devices()
3385 num_iqueues = octeon_dev->sriov_info.num_pf_rings; in setup_nic_devices()
[all …]
H A Dresponse_manager.h130 int octeon_setup_response_list(struct octeon_device *octeon_dev);
132 void octeon_delete_response_list(struct octeon_device *octeon_dev);
140 int lio_process_ordered_list(struct octeon_device *octeon_dev,
H A Dlio_vf_main.c1931 static int setup_nic_devices(struct octeon_device *octeon_dev) in setup_nic_devices() argument
1945 ifidx_or_pfnum = octeon_dev->pf_num; in setup_nic_devices()
1948 octeon_register_dispatch_fn(octeon_dev, OPCODE_NIC, OPCODE_NIC_INFO, in setup_nic_devices()
1949 lio_nic_info, octeon_dev); in setup_nic_devices()
1954 octeon_register_reqtype_free_fn(octeon_dev, REQTYPE_NORESP_NET, in setup_nic_devices()
1957 octeon_register_reqtype_free_fn(octeon_dev, REQTYPE_NORESP_NET_SG, in setup_nic_devices()
1960 octeon_register_reqtype_free_fn(octeon_dev, REQTYPE_RESP_NET_SG, in setup_nic_devices()
1963 for (i = 0; i < octeon_dev->ifcount; i++) { in setup_nic_devices()
1967 octeon_alloc_soft_command(octeon_dev, data_size, in setup_nic_devices()
1979 if_cfg.s.num_iqueues = octeon_dev->sriov_info.rings_per_vf; in setup_nic_devices()
[all …]
H A Docteon_droq.c50 void *octeon_get_dispatch_arg(struct octeon_device *octeon_dev, in octeon_get_dispatch_arg() argument
60 spin_lock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch_arg()
62 if (octeon_dev->dispatch.count == 0) { in octeon_get_dispatch_arg()
63 spin_unlock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch_arg()
67 if (octeon_dev->dispatch.dlist[idx].opcode == combined_opcode) { in octeon_get_dispatch_arg()
68 fn_arg = octeon_dev->dispatch.dlist[idx].arg; in octeon_get_dispatch_arg()
71 &octeon_dev->dispatch.dlist[idx].list) { in octeon_get_dispatch_arg()
81 spin_unlock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch_arg()
330 struct octeon_device *octeon_dev, in octeon_create_recv_info() argument
351 recv_pkt->octeon_id = (u16)octeon_dev->octeon_id; in octeon_create_recv_info()
[all …]
H A Dlio_core.c812 int liquidio_setup_io_queues(struct octeon_device *octeon_dev, int ifidx, in liquidio_setup_io_queues() argument
826 netdev = octeon_dev->props[ifidx].netdev; in liquidio_setup_io_queues()
843 dev_dbg(&octeon_dev->pci_dev->dev, in liquidio_setup_io_queues()
847 octeon_dev, q_no, in liquidio_setup_io_queues()
848 CFG_GET_NUM_RX_DESCS_NIC_IF(octeon_get_conf(octeon_dev), in liquidio_setup_io_queues()
850 CFG_GET_NUM_RX_BUF_SIZE_NIC_IF(octeon_get_conf(octeon_dev), in liquidio_setup_io_queues()
854 dev_err(&octeon_dev->pci_dev->dev, in liquidio_setup_io_queues()
860 droq = octeon_dev->droq[q_no]; in liquidio_setup_io_queues()
862 dev_dbg(&octeon_dev->pci_dev->dev, "netif_napi_add netdev:%llx oct:%llx\n", in liquidio_setup_io_queues()
863 (u64)netdev, (u64)octeon_dev); in liquidio_setup_io_queues()
[all …]
H A Docteon_device.c1076 octeon_get_dispatch(struct octeon_device *octeon_dev, u16 opcode, in octeon_get_dispatch() argument
1086 spin_lock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch()
1088 if (octeon_dev->dispatch.count == 0) { in octeon_get_dispatch()
1089 spin_unlock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch()
1093 if (!(octeon_dev->dispatch.dlist[idx].opcode)) { in octeon_get_dispatch()
1094 spin_unlock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch()
1098 if (octeon_dev->dispatch.dlist[idx].opcode == combined_opcode) { in octeon_get_dispatch()
1099 fn = octeon_dev->dispatch.dlist[idx].dispatch_fn; in octeon_get_dispatch()
1102 &octeon_dev->dispatch.dlist[idx].list) { in octeon_get_dispatch()
1112 spin_unlock_bh(&octeon_dev->dispatch.lock); in octeon_get_dispatch()
[all …]
H A Docteon_iq.h348 int octeon_init_instr_queue(struct octeon_device *octeon_dev,
362 int octeon_delete_instr_queue(struct octeon_device *octeon_dev, u32 iq_no);
H A Docteon_device.h669 int octeon_init_dispatch_list(struct octeon_device *octeon_dev);
675 void octeon_delete_dispatch_list(struct octeon_device *octeon_dev);
698 octeon_get_dispatch(struct octeon_device *octeon_dev, u16 opcode,
H A Docteon_network.h219 int liquidio_setup_io_queues(struct octeon_device *octeon_dev, int ifidx,
/linux/drivers/edac/
H A Docteon_edac-lmc.c223 ATTRIBUTE_GROUPS(octeon_dev);