| /linux/tools/testing/selftests/pidfd/ |
| H A D | pidfd_open_test.c | 28 long sli; in safe_int() local 31 sli = strtol(numstr, &err, 0); in safe_int() 32 if (errno == ERANGE && (sli == LONG_MAX || sli == LONG_MIN)) in safe_int() 35 if (errno != 0 && sli == 0) in safe_int() 41 if (sli > INT_MAX || sli < INT_MIN) in safe_int() 44 *converted = (int)sli; in safe_int()
|
| /linux/drivers/scsi/elx/efct/ |
| H A D | efct_hw.c | 58 if (sli_cmd_common_set_dump_location(&hw->sli, buf, 1, 0, NULL, 0)) in efct_hw_read_max_dump_size() 196 if (!sli_cmd_read_topology(&hw->sli, buf, in efct_hw_cb_link() 278 if (sli_setup(&hw->sli, hw->os, pdev, ((struct efct *)os)->reg)) { in efct_hw_setup() 285 sli_callback(&hw->sli, SLI4_CB_LINK, efct_hw_cb_link, hw); in efct_hw_setup() 291 hw->num_qentries[i] = hw->sli.qinfo.max_qentries[i]; in efct_hw_setup() 304 hw->config.n_io = hw->sli.ext[SLI4_RSRC_XRI].size; in efct_hw_setup() 309 max_sgl = sli_get_max_sgl(&hw->sli) - SLI4_SGE_MAX_RESERVED; in efct_hw_setup() 379 sli_fc_els_did(&hw->sli, cqe, &ext); in efct_hw_wq_process_io() 380 len = sli_fc_response_length(&hw->sli, cqe); in efct_hw_wq_process_io() 386 len = sli_fc_response_length(&hw->sli, cqe); in efct_hw_wq_process_io() [all …]
|
| H A D | efct_hw_queues.c | 142 if (sli_queue_alloc(&hw->sli, SLI4_QTYPE_EQ, eq->queue, entry_count, in efct_hw_new_eq() 149 sli_eq_modify_delay(&hw->sli, eq->queue, 1, 0, 8); in efct_hw_new_eq() 175 if (sli_queue_alloc(&hw->sli, SLI4_QTYPE_CQ, cq->queue, in efct_hw_new_cq() 197 struct sli4 *sli4 = &hw->sli; in efct_hw_new_cq_set() 259 if (sli_queue_alloc(&hw->sli, SLI4_QTYPE_MQ, mq->queue, mq->entry_size, in efct_hw_new_mq() 294 if (sli_queue_alloc(&hw->sli, SLI4_QTYPE_WQ, wq->queue, in efct_hw_new_wq() 354 if (sli_fc_rq_set_alloc(&hw->sli, num_rq_pairs, qs, in efct_hw_new_rq_set() 533 rq_status = sli_fc_rqe_rqid_and_index(&hw->sli, cqe, in efct_hw_rqpair_process_rq() 590 sli_fc_rqe_length(&hw->sli, cqe, &h_len, &p_len); in efct_hw_rqpair_process_rq() 593 seq->fcfi = sli_fc_rqe_fcfi(&hw->sli, cqe); in efct_hw_rqpair_process_rq() [all …]
|
| H A D | efct_driver.c | 93 struct sli4 *sli; in efct_efclib_config() local 111 sli = &efct->hw.sli; in efct_efclib_config() 112 efc->max_xfer_size = sli->sge_supported_length * in efct_efclib_config() 113 sli_get_max_sgl(&efct->hw.sli); in efct_efclib_config() 114 efc->sli = sli; in efct_efclib_config() 344 if (!strncmp(efct->hw.sli.fw_name[0], fw_image->revision, in efct_request_firmware_update() 352 efct->hw.sli.fw_name[0], fw_image->revision); in efct_request_firmware_update()
|
| H A D | efct_xport.c | 363 link_module_type = sli_get_lmt(&efct->hw.sli); in efct_get_link_supported_speeds() 408 shost->sg_tablesize = sli_get_max_sgl(&efct->hw.sli); in efct_scsi_new_device() 426 efct->hw.sli.fw_name[0], EFCT_DRIVER_VERSION); in efct_scsi_new_device() 564 if (sli_reset_required(&efct->hw.sli)) { in efct_xport_control() 922 shost->sg_tablesize = sli_get_max_sgl(&efct->hw.sli); in efct_scsi_new_vport() 939 "Emulex %s FV%s DV%s", efct->model, efct->hw.sli.fw_name[0], in efct_scsi_new_vport()
|
| H A D | efct_hw.h | 368 struct sli4 sli; member
|
| /linux/drivers/scsi/elx/libefc/ |
| H A D | efc_cmds.c | 28 sli_resource_free(efc->sli, SLI4_RSRC_VPI, nport->indicator); in efc_nport_free_resources() 71 rc = sli_cmd_unreg_vpi(efc->sli, data, nport->indicator, in efc_nport_free_unreg_vpi() 131 rc = sli_cmd_init_vpi(efc->sli, data, in efc_nport_alloc_init_vpi() 189 rc = sli_cmd_read_sparm64(efc->sli, data, in efc_nport_alloc_read_sparm64() 221 if (sli_resource_alloc(efc->sli, SLI4_RSRC_VPI, in efc_cmd_nport_alloc() 239 sli_resource_free(efc->sli, SLI4_RSRC_VPI, nport->indicator); in efc_cmd_nport_alloc() 276 rc = sli_cmd_reg_vpi(efc->sli, buf, nport->fc_id, in efc_cmd_nport_attach() 347 sli_resource_free(efc->sli, SLI4_RSRC_VFI, domain->indicator); in efc_domain_free_resources() 389 rc = sli_cmd_read_sparm64(efc->sli, data, &domain->dma, 0); in efc_domain_alloc_read_sparm64() 435 rc = sli_cmd_init_vfi(efc->sli, data, domain->indicator, in efc_domain_alloc_init_vfi() [all …]
|
| H A D | efclib.h | 518 struct sli4 *sli; member
|
| /linux/tools/testing/selftests/net/af_unix/ |
| H A D | scm_pidfd.c | 40 long sli; in safe_int() local 43 sli = strtol(numstr, &err, 0); in safe_int() 44 if (errno == ERANGE && (sli == LONG_MAX || sli == LONG_MIN)) in safe_int() 47 if (errno != 0 && sli == 0) in safe_int() 53 if (sli > INT_MAX || sli < INT_MIN) in safe_int() 56 *converted = (int)sli; in safe_int()
|
| /linux/drivers/scsi/lpfc/ |
| H A D | lpfc_sli.c | 880 return (IOCB_t *) (((char *) pring->sli.sli3.cmdringaddr) + in lpfc_cmd_iocb() 881 pring->sli.sli3.cmdidx * phba->iocb_cmd_size); in lpfc_cmd_iocb() 897 return (IOCB_t *) (((char *) pring->sli.sli3.rspringaddr) + in lpfc_resp_iocb() 898 pring->sli.sli3.rspidx * phba->iocb_rsp_size); in lpfc_resp_iocb() 1672 struct lpfc_sli *psli = &phba->sli; in lpfc_sli_ring_map() 2057 uint32_t max_cmd_idx = pring->sli.sli3.numCiocb; in lpfc_sli_next_iocb_slot() 2061 if ((pring->sli.sli3.next_cmdidx == pring->sli.sli3.cmdidx) && in lpfc_sli_next_iocb_slot() 2062 (++pring->sli.sli3.next_cmdidx >= max_cmd_idx)) in lpfc_sli_next_iocb_slot() 2063 pring->sli.sli3.next_cmdidx = 0; in lpfc_sli_next_iocb_slot() 2065 if (unlikely(pring->sli.sli3.local_getidx == in lpfc_sli_next_iocb_slot() [all …]
|
| H A D | lpfc_init.c | 425 struct lpfc_sli *psli = &phba->sli; in lpfc_config_port_post() 539 if (psli->sli3_ring[LPFC_EXTRA_RING].sli.sli3.cmdringaddr) in lpfc_config_port_post() 541 if (psli->sli3_ring[LPFC_FCP_RING].sli.sli3.cmdringaddr) in lpfc_config_port_post() 970 struct lpfc_sli *psli = &phba->sli; in lpfc_hba_free_post_buf() 1012 struct lpfc_sli *psli = &phba->sli; in lpfc_hba_clean_txcmplq() 1517 struct lpfc_sli *psli = &phba->sli; in lpfc_hb_timeout_handler() 1633 struct lpfc_sli *psli = &phba->sli; in lpfc_offline_eratt() 1691 struct lpfc_sli *psli = &phba->sli; in lpfc_handle_deferred_eratt() 1782 struct lpfc_sli *psli = &phba->sli; in lpfc_handle_eratt_s3() 1938 phba->sli.sli_flag &= ~LPFC_SLI_ACTIVE; in lpfc_sli4_port_sta_fn_reset() [all …]
|
| H A D | lpfc_sli.h | 315 } sli; member
|
| H A D | lpfc_mem.c | 310 struct lpfc_sli *psli = &phba->sli; in lpfc_mem_free_all()
|
| H A D | lpfc_debugfs.c | 729 struct lpfc_sli *psli = &phba->sli; in lpfc_debugfs_dumpHostSlim_data() 771 pring->sli.sli3.numCiocb, in lpfc_debugfs_dumpHostSlim_data() 772 pring->sli.sli3.next_cmdidx, in lpfc_debugfs_dumpHostSlim_data() 773 pring->sli.sli3.local_getidx, in lpfc_debugfs_dumpHostSlim_data() 775 pring->sli.sli3.numRiocb); in lpfc_debugfs_dumpHostSlim_data()
|
| H A D | lpfc_bsg.c | 1669 psli = &phba->sli; in lpfc_bsg_diag_mode_enter() 3042 struct lpfc_sli *psli = &phba->sli; in lpfc_bsg_diag_loopback_run() 4857 if (phba->sli.sli_flag & LPFC_BLOCK_MGMT_IO) { in lpfc_bsg_issue_mbox() 5089 (!(phba->sli.sli_flag & LPFC_SLI_ACTIVE))) { in lpfc_bsg_issue_mbox()
|
| /linux/drivers/scsi/elx/libefc_sli/ |
| H A D | sli4.c | 1372 sli_abort_wqe(struct sli4 *sli, void *buf, enum sli4_abort_type type, in sli_abort_wqe() argument 1377 memset(buf, 0, sli->wqe_size); in sli_abort_wqe() 1383 efc_log_warn(sli, "%#x aborting XRI %#x warning non-zero mask", in sli_abort_wqe() 1395 efc_log_info(sli, "unsupported type %#x\n", type); in sli_abort_wqe() 1418 sli_els_request64_wqe(struct sli4 *sli, void *buf, struct efc_dma *sgl, in sli_els_request64_wqe() argument 1426 memset(buf, 0, sli->wqe_size); in sli_els_request64_wqe() 1429 if (sli->params.sgl_pre_registered) { in sli_els_request64_wqe() 1563 sli_fcp_icmnd64_wqe(struct sli4 *sli, void *buf, struct efc_dma *sgl, u16 xri, in sli_fcp_icmnd64_wqe() argument 1571 memset(buf, 0, sli->wqe_size); in sli_fcp_icmnd64_wqe() 1574 efc_log_err(sli, "bad parameter sgl=%p virt=%p\n", in sli_fcp_icmnd64_wqe() [all …]
|
| H A D | sli4.h | 3806 sli_reg_read_status(struct sli4 *sli) in sli_reg_read_status() argument 3808 return readl(sli->reg[0] + SLI4_PORT_STATUS_REGOFF); in sli_reg_read_status() 3818 sli_reg_read_err1(struct sli4 *sli) in sli_reg_read_err1() argument 3820 return readl(sli->reg[0] + SLI4_PORT_ERROR1); in sli_reg_read_err1() 3824 sli_reg_read_err2(struct sli4 *sli) in sli_reg_read_err2() argument 3826 return readl(sli->reg[0] + SLI4_PORT_ERROR2); in sli_reg_read_err2() 4096 sli_fcp_treceive64_wqe(struct sli4 *sli, void *buf, struct efc_dma *sgl, 4100 sli_fcp_cont_treceive64_wqe(struct sli4 *sli, void *buf, struct efc_dma *sgl,
|
| /linux/Documentation/scsi/ |
| H A D | ChangeLog.lpfc | 133 of the init, sli, mbox and ct groups of functions 145 sli layer now frees the response iocbs after processing it. 255 the sli layer which checks the mbox_cmpl == 0 to free mail box 400 statistic is owned by the ring and SLI stats are in sli 660 from hbadisc.c, sli.c, and fcp.c since these modules had no 1086 * Removed the forward declarations of the sli functions and
|