Home
last modified time | relevance | path

Searched full:oct (Results 1 – 25 of 387) sorted by relevance

12345678910>>...16

/freebsd/sys/dev/liquidio/base/
H A Dcn23xx_pf_device.c45 lio_cn23xx_pf_soft_reset(struct octeon_device *oct) in lio_cn23xx_pf_soft_reset() argument
48 lio_write_csr64(oct, LIO_CN23XX_SLI_WIN_WR_MASK_REG, 0xFF); in lio_cn23xx_pf_soft_reset()
50 lio_dev_dbg(oct, "BIST enabled for CN23XX soft reset\n"); in lio_cn23xx_pf_soft_reset()
52 lio_write_csr64(oct, LIO_CN23XX_SLI_SCRATCH1, 0x1234ULL); in lio_cn23xx_pf_soft_reset()
55 lio_pci_readq(oct, LIO_CN23XX_RST_SOFT_RST); in lio_cn23xx_pf_soft_reset()
56 lio_pci_writeq(oct, 1, LIO_CN23XX_RST_SOFT_RST); in lio_cn23xx_pf_soft_reset()
61 if (lio_read_csr64(oct, LIO_CN23XX_SLI_SCRATCH1)) { in lio_cn23xx_pf_soft_reset()
62 lio_dev_err(oct, "Soft reset failed\n"); in lio_cn23xx_pf_soft_reset()
66 lio_dev_dbg(oct, "Reset completed\n"); in lio_cn23xx_pf_soft_reset()
69 lio_write_csr64(oct, LIO_CN23XX_SLI_WIN_WR_MASK_REG, 0xFF); in lio_cn23xx_pf_soft_reset()
[all …]
H A Dlio_device.c205 __lio_retrieve_config_info(struct octeon_device *oct, uint16_t card_type) in __lio_retrieve_config_info() argument
208 uint32_t oct_id = oct->octeon_id; in __lio_retrieve_config_info()
212 if (oct->chip_id == LIO_CN23XX_PF_VID) { in __lio_retrieve_config_info()
224 lio_get_config_info(struct octeon_device *oct, uint16_t card_type) in lio_get_config_info() argument
228 conf = __lio_retrieve_config_info(oct, card_type); in lio_get_config_info()
257 lio_free_device_mem(struct octeon_device *oct) in lio_free_device_mem() argument
261 for (i = 0; i < LIO_MAX_OUTPUT_QUEUES(oct); i++) { in lio_free_device_mem()
262 if ((oct->io_qmask.oq & BIT_ULL(i)) && (oct->droq[i])) in lio_free_device_mem()
263 free(oct->droq[i], M_DEVBUF); in lio_free_device_mem()
266 for (i = 0; i < LIO_MAX_INSTR_QUEUES(oct); i++) { in lio_free_device_mem()
[all …]
H A Dlio_console.c48 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, in __cvmx_bootmem_desc_get() argument
168 return (lio_read_device_mem32(oct, base)); in __cvmx_bootmem_desc_get()
170 return (lio_read_device_mem64(oct, base)); in __cvmx_bootmem_desc_get()
181 * @param oct Pointer to current octeon device
188 lio_bootmem_named_get_name(struct octeon_device *oct, uint64_t addr, char *str, in lio_bootmem_named_get_name() argument
193 lio_pci_read_core_mem(oct, addr, (uint8_t *) str, len); in lio_bootmem_named_get_name()
[all …]
H A Dlio_mem_ops.c46 lio_toggle_bar1_swapmode(struct octeon_device *oct, uint32_t idx) in lio_toggle_bar1_swapmode() argument
50 mask = oct->fn_list.bar1_idx_read(oct, idx); in lio_toggle_bar1_swapmode()
52 oct->fn_list.bar1_idx_write(oct, idx, mask); in lio_toggle_bar1_swapmode()
56 #define lio_toggle_bar1_swapmode(oct, idx) argument
60 lio_write_bar1_mem8(struct octeon_device *oct, uint32_t reg, uint64_t val) in lio_write_bar1_mem8() argument
63 bus_space_write_1(oct->mem_bus_space[1].tag, in lio_write_bar1_mem8()
64 oct->mem_bus_space[1].handle, reg, val); in lio_write_bar1_mem8()
69 lio_read_bar1_mem32(struct octeon_device *oct, uint32_t reg) in lio_read_bar1_mem32() argument
72 return (bus_space_read_4(oct->mem_bus_space[1].tag, in lio_read_bar1_mem32()
73 oct->mem_bus_space[1].handle, reg)); in lio_read_bar1_mem32()
[all …]
H A Dlio_request_manager.c51 static void __lio_check_db_timeout(struct octeon_device *oct,
56 lio_init_instr_queue(struct octeon_device *oct, union octeon_txpciq txpciq, in lio_init_instr_queue() argument
68 if (LIO_CN23XX_PF(oct)) in lio_init_instr_queue()
69 conf = &(LIO_GET_IQ_CFG(LIO_CHIP_CONF(oct, cn23xx_pf))); in lio_init_instr_queue()
71 lio_dev_err(oct, "Unsupported Chip %x\n", oct->chip_id); in lio_init_instr_queue()
76 iq = oct->instr_queue[iq_no]; in lio_init_instr_queue()
77 iq->oct_dev = oct; in lio_init_instr_queue()
81 error = bus_dma_tag_create(bus_get_dma_tag(oct->device), /* parent */ in lio_init_instr_queue()
94 lio_dev_err(oct, "Cannot allocate memory for instr queue %d\n", in lio_init_instr_queue()
101 lio_dev_err(oct, "Cannot allocate memory for instr queue %d\n", in lio_init_instr_queue()
[all …]
H A Dlio_device.h201 typedef int (*octeon_console_print_fn)(struct octeon_device *oct,
542 #define LIO_CN23XX_PF(oct) ((oct)->chip_id == LIO_CN23XX_PF_VID) argument
543 #define LIO_CHIP_CONF(oct, TYPE) \ argument
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) in OCTEON_MAJOR_REV() argument
[all …]
H A Dlio_droq.c50 void *lio_get_dispatch_arg(struct octeon_device *oct,
110 struct octeon_device *oct = droq->oct_dev; in lio_droq_check_hw_for_pkts() local
114 pkt_count = lio_read_csr32(oct, droq->pkts_sent_reg); in lio_droq_check_hw_for_pkts()
158 lio_droq_destroy_ring_buffers(struct octeon_device *oct, in lio_droq_destroy_ring_buffers() argument
174 lio_droq_setup_ring_buffers(struct octeon_device *oct, in lio_droq_setup_ring_buffers() argument
185 lio_dev_err(oct, "%s buffer alloc failed\n", in lio_droq_setup_ring_buffers()
195 lio_map_ring(oct->device, droq->recv_buf_list[i].buffer, in lio_droq_setup_ring_buffers()
207 lio_delete_droq(struct octeon_device *oct, uint32_t q_no) in lio_delete_droq() argument
209 struct lio_droq *droq = oct->droq[q_no]; in lio_delete_droq()
211 lio_dev_dbg(oct, "%s[%d]\n", __func__, q_no); in lio_delete_droq()
[all …]
H A Dlio_ctrl.c44 lio_send_data_pkt(struct octeon_device *oct, struct lio_data_pkt *ndata) in lio_send_data_pkt() argument
48 return (lio_send_command(oct, ndata->q_no, ring_doorbell, &ndata->cmd, in lio_send_data_pkt()
53 lio_ctrl_callback(struct octeon_device *oct, uint32_t status, void *sc_ptr) in lio_ctrl_callback() argument
70 lio_free_soft_command(oct, sc); in lio_ctrl_callback()
74 lio_alloc_ctrl_pkt_sc(struct octeon_device *oct, struct lio_ctrl_pkt *nctrl) in lio_alloc_ctrl_pkt_sc() argument
85 sc = lio_alloc_soft_command(oct, datasize, rdatasize, in lio_alloc_ctrl_pkt_sc()
105 lio_prepare_soft_command(oct, sc, LIO_OPCODE_NIC, LIO_OPCODE_NIC_CMD, 0, in lio_alloc_ctrl_pkt_sc()
116 lio_send_ctrl_pkt(struct octeon_device *oct, struct lio_ctrl_pkt *nctrl) in lio_send_ctrl_pkt() argument
121 mtx_lock(&oct->cmd_resp_wqlock); in lio_send_ctrl_pkt()
126 if ((oct->cmd_resp_state == LIO_DRV_OFFLINE) && in lio_send_ctrl_pkt()
[all …]
H A Dlio_response_manager.c45 lio_setup_response_list(struct octeon_device *oct) in lio_setup_response_list() argument
51 STAILQ_INIT(&oct->response_list[i].head); in lio_setup_response_list()
52 mtx_init(&oct->response_list[i].lock, "response_list_lock", in lio_setup_response_list()
54 atomic_store_rel_int(&oct->response_list[i].pending_req_count, in lio_setup_response_list()
57 mtx_init(&oct->cmd_resp_wqlock, "cmd_resp_wqlock", NULL, MTX_DEF); in lio_setup_response_list()
59 ctq = &oct->dma_comp_tq; in lio_setup_response_list()
65 ctq->ctxptr = oct; in lio_setup_response_list()
67 oct->cmd_resp_state = LIO_DRV_ONLINE; in lio_setup_response_list()
69 oct->octeon_id); in lio_setup_response_list()
76 lio_delete_response_list(struct octeon_device *oct) in lio_delete_response_list() argument
[all …]
H A Dlio_ctrl.h132 lio_iq_is_full(struct octeon_device *oct, uint32_t q_no) in lio_iq_is_full() argument
135 return (atomic_load_acq_int(&oct->instr_queue[q_no]->instr_pending) >= in lio_iq_is_full()
136 (oct->instr_queue[q_no]->max_count - 2)); in lio_iq_is_full()
140 lio_prepare_pci_cmd_o3(struct octeon_device *oct, union lio_instr_64B *cmd, in lio_prepare_pci_cmd_o3() argument
158 ih3->pkind = oct->instr_queue[setup->s.iq_no]->txpciq.s.pkind; in lio_prepare_pci_cmd_o3()
173 pki_ih3->uqpg = oct->instr_queue[setup->s.iq_no]->txpciq.s.use_qpg; in lio_prepare_pci_cmd_o3()
175 port = (int)oct->instr_queue[setup->s.iq_no]->txpciq.s.port; in lio_prepare_pci_cmd_o3()
183 pki_ih3->qpg = oct->instr_queue[setup->s.iq_no]->txpciq.s.qpg; in lio_prepare_pci_cmd_o3()
205 * @param oct - Pointer to current octeon device
213 lio_prepare_pci_cmd(struct octeon_device *oct, union lio_instr_64B *cmd, in lio_prepare_pci_cmd() argument
[all …]
H A Dlio_mem_ops.h44 * @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,
/freebsd/sys/dev/liquidio/
H A Dlio_core.c50 struct octeon_device *oct = lio->oct_dev; in lio_set_feature() local
65 lio_dev_err(oct, "Feature change failed in core (ret: 0x%x)\n", in lio_set_feature()
77 struct octeon_device *oct; in lio_ctrl_cmd_completion() local
85 oct = lio->oct_dev; in lio_ctrl_cmd_completion()
100 lio_dev_info(oct, "MAC Address %pM is configured for VF %d\n", in lio_ctrl_cmd_completion()
103 lio_dev_info(oct, "MAC Address changed to %02x:%02x:%02x:%02x:%02x:%02x\n", in lio_ctrl_cmd_completion()
110 lio_dev_info(oct, "LED Flashing visual identification\n"); in lio_ctrl_cmd_completion()
114 lio_dev_info(oct, "LED Flashing visual identification\n"); in lio_ctrl_cmd_completion()
118 lio_dev_info(oct, "HW LRO Enabled\n"); in lio_ctrl_cmd_completion()
122 lio_dev_info(oct, "HW LRO Disabled\n"); in lio_ctrl_cmd_completion()
[all …]
H A Dlio_main.c98 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);
[all …]
H A Dlio_sysctl.c80 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; in lio_send_queue_count_update() local
127 lio_dev_err(oct, "Failed to send Queue reset command (ret: 0x%x)\n", in lio_send_queue_count_update()
661 struct octeon_device *oct = lio->oct_dev; in lio_get_set_pauseparam() local
667 if (oct->chip_id != LIO_CN23XX_PF_VID) in lio_get_set_pauseparam()
670 if (oct->rx_pause) in lio_get_set_pauseparam()
673 if (oct->tx_pause) in lio_get_set_pauseparam()
718 lio_dev_err(oct, "Failed to set pause parameter\n"); in lio_get_set_pauseparam()
722 oct->rx_pause = new_pause & LIO_RX_PAUSE; in lio_get_set_pauseparam()
[all …]
H A Dlio_main.h63 * @param oct Pointer to Octeon device
67 lio_unmap_pci_barx(struct octeon_device *oct, int baridx) in lio_unmap_pci_barx() argument
70 lio_dev_dbg(oct, "Freeing PCI mapped regions for Bar%d\n", baridx); in lio_unmap_pci_barx()
72 if (oct->mem_bus_space[baridx].pci_mem != NULL) { in lio_unmap_pci_barx()
73 bus_release_resource(oct->device, SYS_RES_MEMORY, in lio_unmap_pci_barx()
75 oct->mem_bus_space[baridx].pci_mem); in lio_unmap_pci_barx()
76 oct->mem_bus_space[baridx].pci_mem = NULL; in lio_unmap_pci_barx()
82 * @param oct Pointer to Octeon device
86 lio_map_pci_barx(struct octeon_device *oct, int baridx) in lio_map_pci_barx() argument
90 oct->mem_bus_space[baridx].pci_mem = in lio_map_pci_barx()
[all …]
H A Dlio_rxtx.c52 struct octeon_device *oct = iq->oct_dev; in lio_xmit() local
68 stats = &oct->instr_queue[iq_no]->stats; in lio_xmit()
77 lio_dev_info(oct, "Transmit failed link_status : %d\n", in lio_xmit()
83 if (lio_iq_is_full(oct, iq_no)) { in lio_xmit()
85 lio_dev_dbg(oct, "Transmit failed iq:%d full\n", iq_no); in lio_xmit()
112 lio_dev_dbg(oct, "bus_dmamap_load_mbuf_sg failed with error %d. iq:%d", in lio_xmit()
143 lio_prepare_pci_cmd(oct, &ndata.cmd, &cmdsetup, tag); in lio_xmit()
159 lio_dev_err(oct, in lio_xmit()
166 lio_prepare_pci_cmd(oct, &ndata.cmd, &cmdsetup, tag); in lio_xmit()
202 status = lio_send_data_pkt(oct, &ndata); in lio_xmit()
[all …]
H A Dlio_rss.c50 lio_set_rss_callback(struct octeon_device *oct, uint32_t status, void *arg) in lio_set_rss_callback() argument
55 lio_dev_err(oct, "Failed to SET RSS params\n"); in lio_set_rss_callback()
57 lio_dev_info(oct, "SET RSS params\n"); in lio_set_rss_callback()
59 lio_free_soft_command(oct, sc); in lio_set_rss_callback()
65 struct octeon_device *oct = lio->oct_dev; in lio_set_rss_info() local
73 queue_id = queue_id % oct->num_oqs; in lio_set_rss_info()
100 struct octeon_device *oct = lio->oct_dev; in lio_send_rss_param() local
106 sc = lio_alloc_soft_command(oct, in lio_send_rss_param()
110 lio_dev_err(oct, "%s: Soft command allocation failed\n", in lio_send_rss_param()
117 lio_prepare_soft_command(oct, sc, LIO_OPCODE_NIC, LIO_OPCODE_NIC_CMD, 0, in lio_send_rss_param()
[all …]
H A Dlio_bsd.h97 #define lio_dev_info(oct, format, args...) \ argument
98 device_printf(oct->device, "Info: " format, ##args)
99 #define lio_dev_warn(oct, format, args...) \ argument
100 device_printf(oct->device, "Warn: " format, ##args)
101 #define lio_dev_err(oct, format, args...) \ argument
102 device_printf(oct->device, "Error: " format, ##args)
105 #define lio_dev_dbg(oct, format, args...) \ argument
106 device_printf(oct->device, "Debug: " format, ##args)
108 #define lio_dev_dbg(oct, format, args...) {do { } while (0); } argument
H A Dlio_ioctl.c69 struct octeon_device *oct = lio->oct_dev; in lio_change_dev_flags() local
82 ret = lio_send_ctrl_pkt(oct, &nctrl); in lio_change_dev_flags()
84 lio_dev_err(oct, "Failed to change flags ret %d\n", ret); in lio_change_dev_flags()
310 lio_mtu_ctl_callback(struct octeon_device *oct, uint32_t status, void *buf) in lio_mtu_ctl_callback() argument
318 lio_dev_err(oct, "MTU updation ctl instruction failed. Status: %llx\n", in lio_mtu_ctl_callback()
343 struct octeon_device *oct = lio->oct_dev; in lio_change_mtu() local
357 lio_dev_err(oct, "Invalid MTU: %d\n", new_mtu); in lio_change_mtu()
358 lio_dev_err(oct, "Valid range %d and %d\n", in lio_change_mtu()
363 sc = lio_alloc_soft_command(oct, OCTEON_CMD_SIZE, 16, in lio_change_mtu()
381 lio_prepare_soft_command(oct, sc, LIO_OPCODE_NIC, in lio_change_mtu()
[all …]
/freebsd/crypto/openssl/crypto/asn1/
H A Devp_asn1.c54 static ossl_inline void asn1_type_init_oct(ASN1_OCTET_STRING *oct, in asn1_type_init_oct() argument
57 oct->data = data; in asn1_type_init_oct()
58 oct->type = V_ASN1_OCTET_STRING; in asn1_type_init_oct()
59 oct->length = len; in asn1_type_init_oct()
60 oct->flags = 0; in asn1_type_init_oct()
63 static int asn1_type_get_int_oct(ASN1_OCTET_STRING *oct, int32_t anum, in asn1_type_get_int_oct() argument
66 int ret = ASN1_STRING_length(oct), n; in asn1_type_get_int_oct()
77 memcpy(data, ASN1_STRING_get0_data(oct), n); in asn1_type_get_int_oct()
84 ASN1_OCTET_STRING *oct; member
89 ASN1_SIMPLE(asn1_int_oct, oct, ASN1_OCTET_STRING)
[all …]
H A Dasn_pack.c16 ASN1_STRING *ASN1_item_pack(void *obj, const ASN1_ITEM *it, ASN1_STRING **oct) in ASN1_item_pack() argument
20 if (oct == NULL || *oct == NULL) { in ASN1_item_pack()
26 octmp = *oct; in ASN1_item_pack()
41 if (oct != NULL && *oct == NULL) in ASN1_item_pack()
42 *oct = octmp; in ASN1_item_pack()
46 if (oct == NULL || *oct == NULL) in ASN1_item_pack()
53 void *ASN1_item_unpack(const ASN1_STRING *oct, const ASN1_ITEM *it) in ASN1_item_unpack() argument
58 p = oct->data; in ASN1_item_unpack()
59 if ((ret = ASN1_item_d2i(NULL, &p, oct->length, it)) == NULL) in ASN1_item_unpack()
/freebsd/usr.bin/calendar/tests/
H A Dcalendar.calibrate282 10/01 oct 1
283 10/02 oct 2
284 10/03 oct 3
285 10/04 oct 4
286 10/05 oct 5
287 10/06 oct 6
288 10/07 oct 7
289 10/08 oct 8
290 10/09 oct 9
291 10/10 oct 10
[all …]
/freebsd/crypto/openssl/crypto/x509/
H A Dv3_skid.c28 const ASN1_OCTET_STRING *oct) in i2s_ASN1_OCTET_STRING() argument
30 return OPENSSL_buf2hexstr(oct->data, oct->length); in i2s_ASN1_OCTET_STRING()
36 ASN1_OCTET_STRING *oct; in s2i_ASN1_OCTET_STRING() local
39 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { in s2i_ASN1_OCTET_STRING()
44 if ((oct->data = OPENSSL_hexstr2buf(str, &length)) == NULL) { in s2i_ASN1_OCTET_STRING()
45 ASN1_OCTET_STRING_free(oct); in s2i_ASN1_OCTET_STRING()
49 oct->length = length; in s2i_ASN1_OCTET_STRING()
51 return oct; in s2i_ASN1_OCTET_STRING()
57 ASN1_OCTET_STRING *oct; in ossl_x509_pubkey_hash() local
74 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { in ossl_x509_pubkey_hash()
[all …]
/freebsd/contrib/tzdata/
H A Dsouthamerica54 Rule Arg 1931 only - Oct 15 0:00 1:00 -
59 Rule Arg 1941 only - Oct 15 0:00 1:00 -
61 Rule Arg 1943 only - Oct 15 0:00 1:00 -
63 Rule Arg 1946 only - Oct 1 0:00 1:00 -
64 Rule Arg 1963 only - Oct 1 0:00 0 -
67 Rule Arg 1964 1966 - Oct 15 0:00 1:00 -
69 Rule Arg 1967 1968 - Oct Sun>=1 0:00 1:00 -
81 Rule Arg 1989 1992 - Oct Sun>=15 0:00 1:00 -
92 Rule Arg 1999 only - Oct Sun>=1 0:00 1:00 -
197 Rule Arg 2008 only - Oct Sun>=15 0:00 1:00 -
[all …]
/freebsd/crypto/openssl/crypto/pkcs12/
H A Dp12_decr.c131 const ASN1_OCTET_STRING *oct, int zbuf, in PKCS12_item_decrypt_d2i_ex() argument
140 if (!PKCS12_pbe_crypt_ex(algor, pass, passlen, oct->data, oct->length, in PKCS12_item_decrypt_d2i_ex()
160 const ASN1_OCTET_STRING *oct, int zbuf) in PKCS12_item_decrypt_d2i() argument
162 return PKCS12_item_decrypt_d2i_ex(algor, it, pass, passlen, oct, zbuf, in PKCS12_item_decrypt_d2i()
178 ASN1_OCTET_STRING *oct = NULL; in PKCS12_item_i2d_encrypt_ex() local
182 if ((oct = ASN1_OCTET_STRING_new()) == NULL) { in PKCS12_item_i2d_encrypt_ex()
191 if (!PKCS12_pbe_crypt_ex(algor, pass, passlen, in, inlen, &oct->data, in PKCS12_item_i2d_encrypt_ex()
192 &oct->length, 1, ctx, propq)) { in PKCS12_item_i2d_encrypt_ex()
200 return oct; in PKCS12_item_i2d_encrypt_ex()
202 ASN1_OCTET_STRING_free(oct); in PKCS12_item_i2d_encrypt_ex()

12345678910>>...16