/freebsd-current/sys/dev/liquidio/ |
H A D | lio_main.h | 63 * @param oct Pointer to Octeon device 67 lio_unmap_pci_barx(struct octeon_device *oct, int baridx) argument 70 lio_dev_dbg(oct, "Freeing PCI mapped regions for Bar%d\n", baridx); 72 if (oct->mem_bus_space[baridx].pci_mem != NULL) { 73 bus_release_resource(oct->device, SYS_RES_MEMORY, 75 oct->mem_bus_space[baridx].pci_mem); 76 oct->mem_bus_space[baridx].pci_mem = NULL; 82 * @param oct Pointer to Octeon device 86 lio_map_pci_barx(struct octeon_device *oct, int baridx) argument 90 oct 113 lio_sleep_cond(struct octeon_device *oct, volatile int *condition) argument [all...] |
H A D | lio_core.c | 50 struct octeon_device *oct = lio->oct_dev; local 65 lio_dev_err(oct, "Feature change failed in core (ret: 0x%x)\n", 77 struct octeon_device *oct; local 85 oct = lio->oct_dev; 100 lio_dev_info(oct, "MAC Address %pM is configured for VF %d\n", 103 lio_dev_info(oct, "MAC Address changed to %02x:%02x:%02x:%02x:%02x:%02x\n", 110 lio_dev_info(oct, "LED Flashing visual identification\n"); 114 lio_dev_info(oct, "LED Flashing visual identification\n"); 118 lio_dev_info(oct, "HW LRO Enabled\n"); 122 lio_dev_info(oct, "H 234 lio_setup_droq(struct octeon_device *oct, int q_no, int num_descs, int desc_size, void *app_ctx) argument 477 lio_schedule_droq_pkt_handlers(struct octeon_device *oct) argument 499 struct octeon_device *oct = ioq_vector->oct_dev; local 533 struct octeon_device *oct = (struct octeon_device *)dev; local 548 lio_setup_interrupt(struct octeon_device *oct, uint32_t num_ioqs) argument [all...] |
H A D | lio_main.c | 98 static int lio_chip_specific_setup(struct octeon_device *oct); 100 static int lio_load_firmware(struct octeon_device *oct); 101 static int lio_nic_starter(struct octeon_device *oct); 102 static int lio_init_nic_module(struct octeon_device *oct); 105 static void lio_if_cfg_callback(struct octeon_device *oct, uint32_t status, 109 static int lio_setup_glists(struct octeon_device *oct, struct lio *lio, 111 static void lio_destroy_nic_device(struct octeon_device *oct, int ifidx); 115 static int lio_stop_nic_module(struct octeon_device *oct); 116 static void lio_destroy_resources(struct octeon_device *oct); 123 lio_get_other_octeon_device(struct octeon_device *oct); 686 lio_pci_flr(struct octeon_device *oct) argument 730 lio_dbg_console_print(struct octeon_device *oct, uint32_t console_num, char *prefix, char *suffix) argument 749 struct octeon_device *oct = param; local 791 lio_chip_specific_setup(struct octeon_device *oct) argument 839 lio_get_other_octeon_device(struct octeon_device *oct) argument 871 lio_load_firmware(struct octeon_device *oct) argument 901 lio_nic_starter(struct octeon_device *oct) argument 928 lio_init_nic_module(struct octeon_device *oct) argument 994 lio_get_media_subtype(struct octeon_device *oct) argument 1012 lio_get_baudrate(struct octeon_device *oct) argument 1063 struct octeon_device *oct = lio->oct_dev; local 1128 struct octeon_device *oct = lio->oct_dev; local 1491 struct octeon_device *oct = (struct octeon_device *)ptr; local 1533 struct octeon_device *oct; local 1552 lio_if_cfg_callback(struct octeon_device *oct, uint32_t status, void *buf) argument 1591 struct octeon_device *oct = lio->oct_dev; local 1625 struct octeon_device *oct = lio->oct_dev; local 1646 lio_stop_nic_module(struct octeon_device *oct) argument 1679 lio_delete_glists(struct octeon_device *oct, struct lio *lio) argument 1717 lio_setup_glists(struct octeon_device *oct, struct lio *lio, int num_iqs) argument 1789 struct octeon_device *oct = lio->oct_dev; local 1810 struct octeon_device *oct = lio->oct_dev; local 1854 struct octeon_device *oct = lio->oct_dev; local 1900 lio_destroy_nic_device(struct octeon_device *oct, int ifidx) argument 1993 lio_rx_ctl_callback(struct octeon_device *oct, uint32_t status, void *buf) argument 2019 struct octeon_device *oct = (struct octeon_device *)lio->oct_dev; local 2070 struct octeon_device *oct = lio->oct_dev; local 2101 struct octeon_device *oct = lio->oct_dev; local 2129 lio_wait_for_oq_pkts(struct octeon_device *oct) argument 2156 lio_destroy_resources(struct octeon_device *oct) argument [all...] |
H A D | lio_rss.c | 50 lio_set_rss_callback(struct octeon_device *oct, uint32_t status, void *arg) argument 55 lio_dev_err(oct, "Failed to SET RSS params\n"); 57 lio_dev_info(oct, "SET RSS params\n"); 59 lio_free_soft_command(oct, sc); 65 struct octeon_device *oct = lio->oct_dev; local 73 queue_id = queue_id % oct->num_oqs; 100 struct octeon_device *oct = lio->oct_dev; local 106 sc = lio_alloc_soft_command(oct, 110 lio_dev_err(oct, "%s: Soft command allocation failed\n", 117 lio_prepare_soft_command(oct, s [all...] |
H A D | lio_bsd.h | 97 #define lio_dev_info(oct, format, args...) \ 98 device_printf(oct->device, "Info: " format, ##args) 99 #define lio_dev_warn(oct, format, args...) \ 100 device_printf(oct->device, "Warn: " format, ##args) 101 #define lio_dev_err(oct, format, args...) \ 102 device_printf(oct->device, "Error: " format, ##args) 105 #define lio_dev_dbg(oct, format, args...) \ 106 device_printf(oct->device, "Debug: " format, ##args) 108 #define lio_dev_dbg(oct, format, args...) {do { } while (0); }
|
H A D | lio_rxtx.c | 52 struct octeon_device *oct = iq->oct_dev; local 68 stats = &oct->instr_queue[iq_no]->stats; 77 lio_dev_info(oct, "Transmit failed link_status : %d\n", 83 if (lio_iq_is_full(oct, iq_no)) { 85 lio_dev_dbg(oct, "Transmit failed iq:%d full\n", iq_no); 112 lio_dev_dbg(oct, "bus_dmamap_load_mbuf_sg failed with error %d. iq:%d", 143 lio_prepare_pci_cmd(oct, &ndata.cmd, &cmdsetup, tag); 159 lio_dev_err(oct, 166 lio_prepare_pci_cmd(oct, &ndata.cmd, &cmdsetup, tag); 202 status = lio_send_data_pkt(oct, 265 struct octeon_device *oct = lio->oct_dev; local 305 struct octeon_device *oct = lio->oct_dev; local [all...] |
H A D | lio_sysctl.c | 80 static int lio_cn23xx_pf_read_csr_reg(char *s, struct octeon_device *oct); 91 static int lio_irq_reallocate_irqs(struct octeon_device *oct, 111 struct octeon_device *oct = lio->oct_dev; local 127 lio_dev_err(oct, "Failed to send Queue reset command (ret: 0x%x)\n", 661 struct octeon_device *oct = lio->oct_dev; local 667 if (oct->chip_id != LIO_CN23XX_PF_VID) 670 if (oct->rx_pause) 673 if (oct->tx_pause) 718 lio_dev_err(oct, "Failed to set pause parameter\n"); 722 oct 733 struct octeon_device *oct = lio->oct_dev; local 766 lio_cn23xx_pf_read_csr_reg(char *s, struct octeon_device *oct) argument 964 struct octeon_device *oct = lio->oct_dev; local 989 struct octeon_device *oct = lio->oct_dev; local 1042 struct octeon_device *oct = lio->oct_dev; local 1127 struct octeon_device *oct = lio->oct_dev; local 1136 lio_irq_reallocate_irqs(struct octeon_device *oct, uint32_t num_ioqs) argument 1201 struct octeon_device *oct = lio->oct_dev; local 1587 struct octeon_device *oct = lio->oct_dev; local 1625 struct octeon_device *oct = lio->oct_dev; local 1665 struct octeon_device *oct = lio->oct_dev; local 1710 struct octeon_device *oct = lio->oct_dev; local [all...] |
/freebsd-current/sys/dev/liquidio/base/ |
H A D | lio_mem_ops.c | 46 lio_toggle_bar1_swapmode(struct octeon_device *oct, uint32_t idx) argument 50 mask = oct->fn_list.bar1_idx_read(oct, idx); 52 oct->fn_list.bar1_idx_write(oct, idx, mask); 56 #define lio_toggle_bar1_swapmode(oct, idx) 60 lio_write_bar1_mem8(struct octeon_device *oct, uint32_t reg, uint64_t val) argument 63 bus_space_write_1(oct->mem_bus_space[1].tag, 64 oct->mem_bus_space[1].handle, reg, val); 69 lio_read_bar1_mem32(struct octeon_device *oct, uint32_ argument 77 lio_write_bar1_mem32(struct octeon_device *oct, uint32_t reg, uint32_t val) argument 86 lio_read_bar1_mem64(struct octeon_device *oct, uint32_t reg) argument 99 lio_write_bar1_mem64(struct octeon_device *oct, uint32_t reg, uint64_t val) argument 112 lio_pci_fastwrite(struct octeon_device *oct, uint32_t offset, uint8_t *hostbuf, uint32_t len) argument 137 lio_read_bar1_mem8(struct octeon_device *oct, uint32_t reg) argument 145 lio_pci_fastread(struct octeon_device *oct, uint32_t offset, uint8_t *hostbuf, uint32_t len) argument 172 lio_pci_rw_core_mem(struct octeon_device *oct, uint64_t addr, uint8_t *hostbuf, uint32_t len, uint32_t op) argument 233 lio_pci_read_core_mem(struct octeon_device *oct, uint64_t coreaddr, uint8_t *buf, uint32_t len) argument 241 lio_pci_write_core_mem(struct octeon_device *oct, uint64_t coreaddr, uint8_t *buf, uint32_t len) argument 249 lio_read_device_mem64(struct octeon_device *oct, uint64_t coreaddr) argument 259 lio_read_device_mem32(struct octeon_device *oct, uint64_t coreaddr) argument 269 lio_write_device_mem32(struct octeon_device *oct, uint64_t coreaddr, uint32_t val) argument [all...] |
H A D | cn23xx_pf_device.c | 45 lio_cn23xx_pf_soft_reset(struct octeon_device *oct) argument 48 lio_write_csr64(oct, LIO_CN23XX_SLI_WIN_WR_MASK_REG, 0xFF); 50 lio_dev_dbg(oct, "BIST enabled for CN23XX soft reset\n"); 52 lio_write_csr64(oct, LIO_CN23XX_SLI_SCRATCH1, 0x1234ULL); 55 lio_pci_readq(oct, LIO_CN23XX_RST_SOFT_RST); 56 lio_pci_writeq(oct, 1, LIO_CN23XX_RST_SOFT_RST); 61 if (lio_read_csr64(oct, LIO_CN23XX_SLI_SCRATCH1)) { 62 lio_dev_err(oct, "Soft reset failed\n"); 66 lio_dev_dbg(oct, "Reset completed\n"); 69 lio_write_csr64(oct, LIO_CN23XX_SLI_WIN_WR_MASK_RE 75 lio_cn23xx_pf_enable_error_reporting(struct octeon_device *oct) argument 104 lio_cn23xx_pf_coprocessor_clock(struct octeon_device *oct) argument 116 lio_cn23xx_pf_get_oq_ticks(struct octeon_device *oct, uint32_t time_intr_in_us) argument 140 lio_cn23xx_pf_setup_global_mac_regs(struct octeon_device *oct) argument 172 lio_cn23xx_pf_reset_io_queues(struct octeon_device *oct) argument 232 lio_cn23xx_pf_setup_global_input_regs(struct octeon_device *oct) argument 301 lio_cn23xx_pf_setup_global_output_regs(struct octeon_device *oct) argument 380 lio_cn23xx_pf_setup_device_regs(struct octeon_device *oct) argument 407 lio_cn23xx_pf_setup_iq_regs(struct octeon_device *oct, uint32_t iq_no) argument 450 lio_cn23xx_pf_setup_oq_regs(struct octeon_device *oct, uint32_t oq_no) argument 503 lio_cn23xx_pf_enable_io_queues(struct octeon_device *oct) argument 584 lio_cn23xx_pf_disable_io_queues(struct octeon_device *oct) argument 665 struct octeon_device *oct = ioq_vector->oct_dev; local 703 struct octeon_device *oct = (struct octeon_device *)dev; local 732 lio_cn23xx_pf_bar1_idx_setup(struct octeon_device *oct, uint64_t core_addr, uint32_t idx, int valid) argument 764 lio_cn23xx_pf_bar1_idx_write(struct octeon_device *oct, uint32_t idx, uint32_t mask) argument 773 lio_cn23xx_pf_bar1_idx_read(struct octeon_device *oct, uint32_t idx) argument 785 struct octeon_device *oct = iq->oct_dev; local 806 lio_cn23xx_pf_enable_interrupt(struct octeon_device *oct, uint8_t intr_flag) argument 824 lio_cn23xx_pf_disable_interrupt(struct octeon_device *oct, uint8_t intr_flag) argument 840 lio_cn23xx_pf_get_pcie_qlmport(struct octeon_device *oct) argument 850 lio_cn23xx_pf_get_pf_num(struct octeon_device *oct) argument 861 lio_cn23xx_pf_setup_reg_address(struct octeon_device *oct) argument 890 lio_cn23xx_pf_sriov_config(struct octeon_device *oct) argument 928 lio_cn23xx_pf_setup_device(struct octeon_device *oct) argument 1000 lio_cn23xx_pf_fw_loaded(struct octeon_device *oct) argument [all...] |
H A D | lio_mem_ops.h | 44 * @param oct - pointer to the octeon device. 52 uint64_t lio_read_device_mem64(struct octeon_device *oct, 57 * @param oct - pointer to the octeon device. 62 uint32_t lio_read_device_mem32(struct octeon_device *oct, 67 * @param oct - pointer to the octeon device. 71 void lio_write_device_mem32(struct octeon_device *oct, 75 void lio_pci_read_core_mem(struct octeon_device *oct, 80 void lio_pci_write_core_mem(struct octeon_device *oct,
|
H A D | lio_console.c | 48 static void lio_get_uboot_version(struct octeon_device *oct); 51 static uint64_t cvmx_bootmem_phy_named_block_find(struct octeon_device *oct, 54 static int lio_console_read(struct octeon_device *oct, 152 * @param oct Pointer to current octeon device 161 __cvmx_bootmem_desc_get(struct octeon_device *oct, uint64_t base, argument 168 return (lio_read_device_mem32(oct, base)); 170 return (lio_read_device_mem64(oct, base)); 181 * @param oct Pointer to current octeon device 188 lio_bootmem_named_get_name(struct octeon_device *oct, uint64_t addr, char *str, argument 193 lio_pci_read_core_mem(oct, add 211 __cvmx_bootmem_check_version(struct octeon_device *oct, uint32_t exact_match) argument 243 __cvmx_bootmem_find_named_block_flags(struct octeon_device *oct, const char *name, uint32_t flags) argument 274 cvmx_bootmem_phy_named_block_find(struct octeon_device *oct, const char *name, uint32_t flags) argument 356 lio_named_block_find(struct octeon_device *oct, const char *name, uint64_t * base_addr, uint64_t * size) argument 389 lio_console_send_cmd(struct octeon_device *oct, char *cmd_str, uint32_t wait_hundredths) argument 431 lio_wait_for_bootloader(struct octeon_device *oct, uint32_t wait_time_hundredths) argument 454 lio_console_handle_result(struct octeon_device *oct, size_t console_num) argument 466 lio_output_console_line(struct octeon_device *oct, struct lio_console *console, size_t console_num, char *console_buffer, int32_t bytes_read) argument 518 struct octeon_device *oct = local 577 lio_init_consoles(struct octeon_device *oct) argument 620 lio_add_console(struct octeon_device *oct, uint32_t console_num, char *dbg_enb) argument 681 lio_remove_consoles(struct octeon_device *oct) argument 724 lio_console_read(struct octeon_device *oct, uint32_t console_num, char *buffer, uint32_t buf_size) argument 773 lio_get_uboot_version(struct octeon_device *oct) argument 856 lio_download_firmware(struct octeon_device *oct, const uint8_t * data, size_t size) argument [all...] |
H A D | lio_device.c | 205 __lio_retrieve_config_info(struct octeon_device *oct, uint16_t card_type) argument 208 uint32_t oct_id = oct->octeon_id; 212 if (oct->chip_id == LIO_CN23XX_PF_VID) { 224 lio_get_config_info(struct octeon_device *oct, uint16_t card_type) argument 228 conf = __lio_retrieve_config_info(oct, card_type); 257 lio_free_device_mem(struct octeon_device *oct) argument 261 for (i = 0; i < LIO_MAX_OUTPUT_QUEUES(oct); i++) { 262 if ((oct->io_qmask.oq & BIT_ULL(i)) && (oct->droq[i])) 263 free(oct 281 struct octeon_device *oct; local 316 struct octeon_device *oct = NULL; local 358 lio_register_device(struct octeon_device *oct, int bus, int dev, int func, int is_pf) argument 406 lio_deregister_device(struct octeon_device *oct) argument 420 lio_allocate_ioq_vector(struct octeon_device *oct) argument 450 lio_free_ioq_vector(struct octeon_device *oct) argument 459 lio_setup_instr_queue0(struct octeon_device *oct) argument 491 lio_setup_output_queue0(struct octeon_device *oct) argument 516 lio_init_dispatch_list(struct octeon_device *oct) argument 533 lio_delete_dispatch_list(struct octeon_device *oct) argument 627 lio_register_dispatch_fn(struct octeon_device *oct, uint16_t opcode, uint16_t subcode, lio_dispatch_fn_t fn, void *fn_arg) argument 706 lio_unregister_dispatch_fn(struct octeon_device *oct, uint16_t opcode, uint16_t subcode) argument 769 struct octeon_device *oct = (struct octeon_device *)buf; local 847 lio_get_tx_qsize(struct octeon_device *oct, uint32_t q_no) argument 859 lio_get_rx_qsize(struct octeon_device *oct, uint32_t q_no) argument 871 lio_get_conf(struct octeon_device *oct) argument 904 lio_pci_readq(struct octeon_device *oct, uint64_t addr) argument 935 lio_pci_writeq(struct octeon_device *oct, uint64_t val, uint64_t addr) argument 954 lio_mem_access_ok(struct octeon_device *oct) argument 970 lio_wait_for_ddr_init(struct octeon_device *oct, unsigned long *timeout) argument 1011 struct octeon_device *oct = NULL; local [all...] |
H A D | cn23xx_pf_device.h | 63 int lio_cn23xx_pf_setup_device(struct octeon_device *oct); 65 uint32_t lio_cn23xx_pf_get_oq_ticks(struct octeon_device *oct, 68 int lio_cn23xx_pf_fw_loaded(struct octeon_device *oct);
|
H A D | lio_ctrl.c | 44 lio_send_data_pkt(struct octeon_device *oct, struct lio_data_pkt *ndata) argument 48 return (lio_send_command(oct, ndata->q_no, ring_doorbell, &ndata->cmd, 53 lio_ctrl_callback(struct octeon_device *oct, uint32_t status, void *sc_ptr) argument 70 lio_free_soft_command(oct, sc); 74 lio_alloc_ctrl_pkt_sc(struct octeon_device *oct, struct lio_ctrl_pkt *nctrl) argument 85 sc = lio_alloc_soft_command(oct, datasize, rdatasize, 105 lio_prepare_soft_command(oct, sc, LIO_OPCODE_NIC, LIO_OPCODE_NIC_CMD, 0, 116 lio_send_ctrl_pkt(struct octeon_device *oct, struct lio_ctrl_pkt *nctrl) argument 121 mtx_lock(&oct->cmd_resp_wqlock); 126 if ((oct [all...] |
H A D | lio_device.h | 201 typedef int (*octeon_console_print_fn)(struct octeon_device *oct, 542 #define LIO_CN23XX_PF(oct) ((oct)->chip_id == LIO_CN23XX_PF_VID) 543 #define LIO_CHIP_CONF(oct, TYPE) \ 544 (((struct lio_ ## TYPE *)((oct)->chip))->conf) 553 void lio_free_device_mem(struct octeon_device *oct); 564 * @param oct - pointer to the octeon device structure. 571 int lio_register_device(struct octeon_device *oct, int bus, int dev, 576 * @param oct - pointer to the octeon device structure. 579 int lio_deregister_device(struct octeon_device *oct); 638 OCTEON_MAJOR_REV(struct octeon_device *oct) argument 647 OCTEON_MINOR_REV(struct octeon_device *oct) argument 810 lio_read_pci_cfg(struct octeon_device *oct, uint32_t reg) argument 817 lio_write_pci_cfg(struct octeon_device *oct, uint32_t reg, uint32_t value) argument 824 lio_read_csr8(struct octeon_device *oct, uint32_t reg) argument 832 lio_write_csr8(struct octeon_device *oct, uint32_t reg, uint8_t val) argument 840 lio_read_csr16(struct octeon_device *oct, uint32_t reg) argument 848 lio_write_csr16(struct octeon_device *oct, uint32_t reg, uint16_t val) argument 856 lio_read_csr32(struct octeon_device *oct, uint32_t reg) argument 864 lio_write_csr32(struct octeon_device *oct, uint32_t reg, uint32_t val) argument 872 lio_read_csr64(struct octeon_device *oct, uint32_t reg) argument 885 lio_write_csr64(struct octeon_device *oct, uint32_t reg, uint64_t val) argument [all...] |
H A D | lio_response_manager.c | 45 lio_setup_response_list(struct octeon_device *oct) argument 51 STAILQ_INIT(&oct->response_list[i].head); 52 mtx_init(&oct->response_list[i].lock, "response_list_lock", 54 atomic_store_rel_int(&oct->response_list[i].pending_req_count, 57 mtx_init(&oct->cmd_resp_wqlock, "cmd_resp_wqlock", NULL, MTX_DEF); 59 ctq = &oct->dma_comp_tq; 63 lio_dev_err(oct, "failed to create wq thread\n"); 69 ctq->ctxptr = oct; 71 oct->cmd_resp_state = LIO_DRV_ONLINE; 73 oct 80 lio_delete_response_list(struct octeon_device *oct) argument 203 struct octeon_device *oct = (struct octeon_device *)ctq->ctxptr; local [all...] |
H A D | lio_request_manager.c | 51 static void __lio_check_db_timeout(struct octeon_device *oct, 56 lio_init_instr_queue(struct octeon_device *oct, union octeon_txpciq txpciq, argument 68 if (LIO_CN23XX_PF(oct)) 69 conf = &(LIO_GET_IQ_CFG(LIO_CHIP_CONF(oct, cn23xx_pf))); 71 lio_dev_err(oct, "Unsupported Chip %x\n", oct->chip_id); 76 iq = oct->instr_queue[iq_no]; 77 iq->oct_dev = oct; 81 error = bus_dma_tag_create(bus_get_dma_tag(oct->device), /* parent */ 94 lio_dev_err(oct, "Canno 191 lio_delete_instr_queue(struct octeon_device *oct, uint32_t iq_no) argument 271 lio_setup_iq(struct octeon_device *oct, int ifidx, int q_index, union octeon_txpciq txpciq, uint32_t num_descs) argument 299 lio_wait_for_instr_fetch(struct octeon_device *oct) argument 327 lio_ring_doorbell(struct octeon_device *oct, struct lio_instr_queue *iq) argument 403 lio_process_iq_request_list(struct octeon_device *oct, struct lio_instr_queue *iq, uint32_t budget) argument 483 lio_flush_iq(struct octeon_device *oct, struct lio_instr_queue *iq, uint32_t budget) argument 537 __lio_check_db_timeout(struct octeon_device *oct, uint64_t iq_no) argument 581 struct octeon_device *oct = db_tq->ctxptr; local 591 lio_send_command(struct octeon_device *oct, uint32_t iq_no, uint32_t force_db, void *cmd, void *buf, uint32_t datasize, uint32_t reqtype) argument 628 lio_prepare_soft_command(struct octeon_device *oct, struct lio_soft_command *sc, uint8_t opcode, uint8_t subcode, uint32_t irh_ossp, uint64_t ossp0, uint64_t ossp1) argument 689 lio_send_soft_command(struct octeon_device *oct, struct lio_soft_command *sc) argument 722 lio_setup_sc_buffer_pool(struct octeon_device *oct) argument 750 lio_free_sc_buffer_pool(struct octeon_device *oct) argument 774 lio_alloc_soft_command(struct octeon_device *oct, uint32_t datasize, uint32_t rdatasize, uint32_t ctxsize) argument 841 lio_free_soft_command(struct octeon_device *oct, struct lio_soft_command *sc) argument [all...] |
H A D | lio_ctrl.h | 132 lio_iq_is_full(struct octeon_device *oct, uint32_t q_no) argument 135 return (atomic_load_acq_int(&oct->instr_queue[q_no]->instr_pending) >= 136 (oct->instr_queue[q_no]->max_count - 2)); 140 lio_prepare_pci_cmd_o3(struct octeon_device *oct, union lio_instr_64B *cmd, argument 158 ih3->pkind = oct->instr_queue[setup->s.iq_no]->txpciq.s.pkind; 173 pki_ih3->uqpg = oct->instr_queue[setup->s.iq_no]->txpciq.s.use_qpg; 175 port = (int)oct->instr_queue[setup->s.iq_no]->txpciq.s.port; 183 pki_ih3->qpg = oct->instr_queue[setup->s.iq_no]->txpciq.s.qpg; 205 * @param oct - Pointer to current octeon device 213 lio_prepare_pci_cmd(struct octeon_device *oct, unio argument [all...] |
H A D | lio_droq.c | 50 void *lio_get_dispatch_arg(struct octeon_device *oct, 110 struct octeon_device *oct = droq->oct_dev; local 114 pkt_count = lio_read_csr32(oct, droq->pkts_sent_reg); 158 lio_droq_destroy_ring_buffers(struct octeon_device *oct, argument 174 lio_droq_setup_ring_buffers(struct octeon_device *oct, argument 185 lio_dev_err(oct, "%s buffer alloc failed\n", 195 lio_map_ring(oct->device, droq->recv_buf_list[i].buffer, 207 lio_delete_droq(struct octeon_device *oct, uint32_t q_no) argument 209 struct lio_droq *droq = oct->droq[q_no]; 211 lio_dev_dbg(oct, " 237 struct octeon_device *oct = droq->oct_dev; local 253 lio_init_droq(struct octeon_device *oct, uint32_t q_no, uint32_t num_descs, uint32_t desc_size, void *app_ctx) argument 524 lio_droq_dispatch_pkt(struct octeon_device *oct, struct lio_droq *droq, union octeon_rh *rh, struct lio_droq_info *info) argument 559 lio_droq_drop_packets(struct octeon_device *oct, struct lio_droq *droq, uint32_t cnt) argument 588 lio_droq_fast_process_packets(struct octeon_device *oct, struct lio_droq *droq, uint32_t pkts_to_process) argument 725 lio_droq_process_packets(struct octeon_device *oct, struct lio_droq *droq, uint32_t budget) argument 768 lio_register_droq_ops(struct octeon_device *oct, uint32_t q_no, struct lio_droq_ops *ops) argument 801 lio_unregister_droq_ops(struct octeon_device *oct, uint32_t q_no) argument 836 lio_create_droq(struct octeon_device *oct, uint32_t q_no, uint32_t num_descs, uint32_t desc_size, void *app_ctx) argument [all...] |
H A D | lio_iq.h | 282 int lio_setup_sc_buffer_pool(struct octeon_device *oct); 283 int lio_free_sc_buffer_pool(struct octeon_device *oct); 284 struct lio_soft_command *lio_alloc_soft_command(struct octeon_device *oct, 288 void lio_free_soft_command(struct octeon_device *oct, 317 int lio_wait_for_instr_fetch(struct octeon_device *oct); 319 int lio_process_iq_request_list(struct octeon_device *oct, 323 int lio_send_command(struct octeon_device *oct, uint32_t iq_no, 327 void lio_prepare_soft_command(struct octeon_device *oct, 333 int lio_send_soft_command(struct octeon_device *oct, 336 int lio_setup_iq(struct octeon_device *oct, in [all...] |
/freebsd-current/crypto/openssl/crypto/asn1/ |
H A D | asn_pack.c | 16 ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_STRING **oct) argument 20 if (oct == NULL || *oct == NULL) { 26 octmp = *oct; 41 if (oct != NULL && *oct == NULL) 42 *oct = octmp; 46 if (oct == NULL || *oct == NULL) 53 void *ASN1_item_unpack(const ASN1_STRING *oct, cons argument [all...] |
H A D | evp_asn1.c | 54 static ossl_inline void asn1_type_init_oct(ASN1_OCTET_STRING *oct, argument 57 oct->data = data; 58 oct->type = V_ASN1_OCTET_STRING; 59 oct->length = len; 60 oct->flags = 0; 63 static int asn1_type_get_int_oct(ASN1_OCTET_STRING *oct, int32_t anum, argument 66 int ret = ASN1_STRING_length(oct), n; 77 memcpy(data, ASN1_STRING_get0_data(oct), n); 84 ASN1_OCTET_STRING *oct; member in struct:__anon3723 89 ASN1_SIMPLE(asn1_int_oct, oct, ASN1_OCTET_STRIN [all...] |
H A D | a_type.c | 111 ASN1_OCTET_STRING *oct; local 114 oct = ASN1_item_pack(s, it, NULL); 115 if (oct == NULL) 123 ASN1_OCTET_STRING_free(oct); 129 ASN1_TYPE_set(rt, V_ASN1_SEQUENCE, oct);
|
/freebsd-current/crypto/openssl/crypto/x509/ |
H A D | v3_skid.c | 28 const ASN1_OCTET_STRING *oct) 30 return OPENSSL_buf2hexstr(oct->data, oct->length); 36 ASN1_OCTET_STRING *oct; local 39 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { 44 if ((oct->data = OPENSSL_hexstr2buf(str, &length)) == NULL) { 45 ASN1_OCTET_STRING_free(oct); 49 oct->length = length; 51 return oct; 57 ASN1_OCTET_STRING *oct; local 27 i2s_ASN1_OCTET_STRING(X509V3_EXT_METHOD *method, const ASN1_OCTET_STRING *oct) argument [all...] |
/freebsd-current/tests/sys/cddl/zfs/tests/pool_names/ |
H A D | pool_names_002_neg.ksh | 101 for oct in "\000" "\001" "\002" "\003" "\004" "\005" "\006" "\007" \ 109 POOLNAME=`eval "print x | tr 'x' '$oct'"` 112 log_fail "Unexpectedly created pool: \"$oct\"" 114 log_fail "Unexpectedly created pool: \"$oct\"" 119 log_fail "Unexpectedly destroyed pool: \"$oct\""
|