Home
last modified time | relevance | path

Searched refs:un (Results 1 – 22 of 22) sorted by relevance

/drivers/scsi/lpfc/
Dlpfc_mbox.c68 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_dump_static_vport()
69 mb->un.varDmp.entry_index = offset; in lpfc_dump_static_vport()
70 mb->un.varDmp.region_id = DMP_REGION_VPORT; in lpfc_dump_static_vport()
75 mb->un.varDmp.cv = 1; in lpfc_dump_static_vport()
76 mb->un.varDmp.word_cnt = DMP_RSP_SIZE/sizeof(uint32_t); in lpfc_dump_static_vport()
96 mb->un.varWords[3] = putPaddrLow(mp->phys); in lpfc_dump_static_vport()
97 mb->un.varWords[4] = putPaddrHigh(mp->phys); in lpfc_dump_static_vport()
98 mb->un.varDmp.sli4_length = sizeof(struct static_vport_info); in lpfc_dump_static_vport()
145 mb->un.varDmp.cv = 1; in lpfc_dump_mem()
146 mb->un.varDmp.type = DMP_NV_PARAMS; in lpfc_dump_mem()
[all …]
Dlpfc_ct.c119 ((icmd->un.ulpWord[4] & IOERR_PARAM_MASK) == in lpfc_ct_unsol_event()
143 size = icmd->un.cont64[0].tus.f.bdeSize; in lpfc_ct_unsol_event()
164 paddr = getPaddr(icmd->un.cont64[i].addrHigh, in lpfc_ct_unsol_event()
165 icmd->un.cont64[i].addrLow); in lpfc_ct_unsol_event()
168 size = icmd->un.cont64[i].tus.f.bdeSize; in lpfc_ct_unsol_event()
332 icmd->un.genreq64.bdl.ulpIoTag32 = 0; in lpfc_gen_req()
333 icmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_gen_req()
334 icmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_gen_req()
335 icmd->un.genreq64.bdl.bdeFlags = BUFF_TYPE_BLP_64; in lpfc_gen_req()
336 icmd->un.genreq64.bdl.bdeSize = (num_entry * sizeof(struct ulp_bde64)); in lpfc_gen_req()
[all …]
Dlpfc_bsg.c126 (size_t)(&((struct lpfc_sli_ct_request *)NULL)->un)
337 switch (rsp->un.ulpWord[4] & IOERR_PARAM_MASK) { in lpfc_bsg_send_mgmt_cmd_cmp()
352 rsp_size = rsp->un.genreq64.bdl.bdeSize; in lpfc_bsg_send_mgmt_cmd_cmp()
463 cmd->un.genreq64.bdl.ulpIoTag32 = 0; in lpfc_bsg_send_mgmt_cmd()
464 cmd->un.genreq64.bdl.addrHigh = putPaddrHigh(bmp->phys); in lpfc_bsg_send_mgmt_cmd()
465 cmd->un.genreq64.bdl.addrLow = putPaddrLow(bmp->phys); in lpfc_bsg_send_mgmt_cmd()
466 cmd->un.genreq64.bdl.bdeFlags = BUFF_TYPE_BLP_64; in lpfc_bsg_send_mgmt_cmd()
467 cmd->un.genreq64.bdl.bdeSize = in lpfc_bsg_send_mgmt_cmd()
470 cmd->un.genreq64.w5.hcsw.Fctl = (SI | LA); in lpfc_bsg_send_mgmt_cmd()
471 cmd->un.genreq64.w5.hcsw.Dfctl = 0; in lpfc_bsg_send_mgmt_cmd()
[all …]
Dlpfc_els.c235 icmd->un.elsreq64.bdl.addrHigh = putPaddrHigh(pbuflist->phys); in lpfc_prep_els_iocb()
236 icmd->un.elsreq64.bdl.addrLow = putPaddrLow(pbuflist->phys); in lpfc_prep_els_iocb()
237 icmd->un.elsreq64.bdl.bdeFlags = BUFF_TYPE_BLP_64; in lpfc_prep_els_iocb()
238 icmd->un.elsreq64.bdl.bdeSize = (2 * sizeof(struct ulp_bde64)); in lpfc_prep_els_iocb()
240 icmd->un.elsreq64.remoteID = did; /* DID */ in lpfc_prep_els_iocb()
247 icmd->un.xseq64.bdl.addrHigh = putPaddrHigh(pbuflist->phys); in lpfc_prep_els_iocb()
248 icmd->un.xseq64.bdl.addrLow = putPaddrLow(pbuflist->phys); in lpfc_prep_els_iocb()
249 icmd->un.xseq64.bdl.bdeFlags = BUFF_TYPE_BLP_64; in lpfc_prep_els_iocb()
250 icmd->un.xseq64.bdl.bdeSize = sizeof(struct ulp_bde64); in lpfc_prep_els_iocb()
251 icmd->un.xseq64.xmit_els_remoteID = did; /* DID */ in lpfc_prep_els_iocb()
[all …]
Dlpfc_sli.c1145 piocb->iocb.un.ulpWord[4] = ulpWord4; in lpfc_sli_cancel_iocbs()
2209 rpi = pmb->u.mb.un.varWords[0]; in lpfc_sli_def_mbox_cmpl()
2210 vpi = pmb->u.mb.un.varRegLogin.vpi; in lpfc_sli_def_mbox_cmpl()
2330 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
2331 pmbox->un.varWords[1]); in lpfc_sli_handle_mb_event()
2338 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
2339 pmbox->un.varWords[1]); in lpfc_sli_handle_mb_event()
2380 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
2401 pmbox->un.varWords[0], in lpfc_sli_handle_mb_event()
2402 pmbox->un.varWords[1], in lpfc_sli_handle_mb_event()
[all …]
Dlpfc_nportdisc.c189 irsp->un.ulpWord[4] = IOERR_SLI_ABORTED; in lpfc_check_elscmpl_iocb()
295 stat.un.b.lsRjtRsnCode = LSRJT_UNABLE_TPC; in lpfc_rcv_plogi()
296 stat.un.b.lsRjtRsnCodeExp = LSEXP_INVALID_PNAME; in lpfc_rcv_plogi()
297 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, in lpfc_rcv_plogi()
304 stat.un.b.lsRjtRsnCode = LSRJT_UNABLE_TPC; in lpfc_rcv_plogi()
305 stat.un.b.lsRjtRsnCodeExp = LSEXP_INVALID_NNAME; in lpfc_rcv_plogi()
306 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, in lpfc_rcv_plogi()
314 stat.un.b.lsRjtRsnCode = LSRJT_UNABLE_TPC; in lpfc_rcv_plogi()
315 stat.un.b.lsRjtRsnCodeExp = LSEXP_SPARM_OPTIONS; in lpfc_rcv_plogi()
316 lpfc_els_rsp_reject(vport, stat.un.lsRjtError, cmdiocb, ndlp, in lpfc_rcv_plogi()
[all …]
Dlpfc_scsi.c471 iocb->un.fcpi64.bdl.ulpIoTag32 = 0; in lpfc_new_scsi_buf_s3()
475 iocb->un.fcpi64.bdl.bdeFlags = BUFF_TYPE_BDE_IMMED; in lpfc_new_scsi_buf_s3()
476 iocb->un.fcpi64.bdl.bdeSize = sizeof(struct fcp_cmnd); in lpfc_new_scsi_buf_s3()
477 iocb->un.fcpi64.bdl.addrLow = offsetof(IOCB_t, in lpfc_new_scsi_buf_s3()
479 iocb->un.fcpi64.bdl.addrHigh = 0; in lpfc_new_scsi_buf_s3()
492 iocb->un.fcpi64.bdl.bdeFlags = BUFF_TYPE_BLP_64; in lpfc_new_scsi_buf_s3()
493 iocb->un.fcpi64.bdl.bdeSize = in lpfc_new_scsi_buf_s3()
495 iocb->un.fcpi64.bdl.addrLow = in lpfc_new_scsi_buf_s3()
497 iocb->un.fcpi64.bdl.addrHigh = in lpfc_new_scsi_buf_s3()
905 iocb->un.fcpi64.bdl.ulpIoTag32 = 0; in lpfc_new_scsi_buf_s4()
[all …]
Dlpfc_hw.h171 } un; member
177 #define GID_REQUEST_SZ (offsetof(struct lpfc_sli_ct_request, un) + \
179 #define GFF_REQUEST_SZ (offsetof(struct lpfc_sli_ct_request, un) + \
181 #define RFT_REQUEST_SZ (offsetof(struct lpfc_sli_ct_request, un) + \
183 #define RFF_REQUEST_SZ (offsetof(struct lpfc_sli_ct_request, un) + \
185 #define RNN_REQUEST_SZ (offsetof(struct lpfc_sli_ct_request, un) + \
187 #define RSNN_REQUEST_SZ (offsetof(struct lpfc_sli_ct_request, un) + \
189 #define DA_ID_REQUEST_SZ (offsetof(struct lpfc_sli_ct_request, un) + \
191 #define RSPN_REQUEST_SZ (offsetof(struct lpfc_sli_ct_request, un) + \
658 } un; member
[all …]
Dlpfc_hbadisc.c455 evt_category = (unsigned long) fast_evt_data->un.fabric_evt.event_type; in lpfc_send_fastpath_evt()
456 evt_sub_category = (unsigned long) fast_evt_data->un. in lpfc_send_fastpath_evt()
461 evt_data = (char *) &fast_evt_data->un.read_check_error; in lpfc_send_fastpath_evt()
462 evt_data_size = sizeof(fast_evt_data->un. in lpfc_send_fastpath_evt()
466 evt_data = (char *) &fast_evt_data->un.fabric_evt; in lpfc_send_fastpath_evt()
467 evt_data_size = sizeof(fast_evt_data->un.fabric_evt); in lpfc_send_fastpath_evt()
476 evt_data = (char *) &fast_evt_data->un.scsi_evt; in lpfc_send_fastpath_evt()
477 evt_data_size = sizeof(fast_evt_data->un.scsi_evt); in lpfc_send_fastpath_evt()
480 evt_data = (char *) &fast_evt_data->un.check_cond_evt; in lpfc_send_fastpath_evt()
481 evt_data_size = sizeof(fast_evt_data->un. in lpfc_send_fastpath_evt()
[all …]
Dlpfc_init.c136 memset((char*)mb->un.varRDnvp.rsvd3, 0, in lpfc_config_port_prep()
137 sizeof (mb->un.varRDnvp.rsvd3)); in lpfc_config_port_prep()
138 memcpy((char*)mb->un.varRDnvp.rsvd3, licensed, in lpfc_config_port_prep()
152 memcpy(phba->wwnn, (char *)mb->un.varRDnvp.nodename, in lpfc_config_port_prep()
154 memcpy(phba->wwpn, (char *)mb->un.varRDnvp.portname, in lpfc_config_port_prep()
177 if (mb->un.varRdRev.rr == 0) { in lpfc_config_port_prep()
186 if (phba->sli_rev == 3 && !mb->un.varRdRev.v3rsp) { in lpfc_config_port_prep()
193 memcpy(&vp->sli3Feat, &mb->un.varRdRev.sli3Feat, sizeof(uint32_t)); in lpfc_config_port_prep()
194 vp->rev.sli1FwRev = mb->un.varRdRev.sli1FwRev; in lpfc_config_port_prep()
195 memcpy(vp->rev.sli1FwName, (char*) mb->un.varRdRev.sli1FwName, 16); in lpfc_config_port_prep()
[all …]
Dlpfc_attr.c1194 rd_config = &pmboxq->u.mqe.un.rd_config; in lpfc_get_hba_info()
1218 *mrpi = pmb->un.varRdConfig.max_rpi; in lpfc_get_hba_info()
1220 *arpi = pmb->un.varRdConfig.avail_rpi; in lpfc_get_hba_info()
1222 *mxri = pmb->un.varRdConfig.max_xri; in lpfc_get_hba_info()
1224 *axri = pmb->un.varRdConfig.avail_xri; in lpfc_get_hba_info()
1226 *mvpi = pmb->un.varRdConfig.max_vpi; in lpfc_get_hba_info()
1228 *avpi = pmb->un.varRdConfig.avail_vpi; in lpfc_get_hba_info()
5367 hs->tx_frames = pmb->un.varRdStatus.xmitFrameCnt; in lpfc_get_stats()
5373 ((uint64_t)pmb->un.varRdStatus.xmitByteCnt in lpfc_get_stats()
5375 hs->rx_frames = pmb->un.varRdStatus.rcvFrameCnt; in lpfc_get_stats()
[all …]
Dlpfc_disc.h68 } un; member
Dlpfc_bsg.h284 } un; member
Dlpfc_hw4.h3319 } un; member
/drivers/staging/dgnc/
Ddgnc_sysfs.c383 struct un_t *un; in tty_state_show() local
387 un = dev_get_drvdata(d); in tty_state_show()
388 if (!un || un->magic != DGNC_UNIT_MAGIC) in tty_state_show()
390 ch = un->un_ch; in tty_state_show()
400 un->un_open_count ? "Open" : "Closed"); in tty_state_show()
409 struct un_t *un; in tty_baud_show() local
413 un = dev_get_drvdata(d); in tty_baud_show()
414 if (!un || un->magic != DGNC_UNIT_MAGIC) in tty_baud_show()
416 ch = un->un_ch; in tty_baud_show()
434 struct un_t *un; in tty_msignals_show() local
[all …]
Ddgnc_tty.c965 struct un_t *un; in dgnc_tty_open() local
1016 un = &brd->channels[PORT_NUM(minor)]->ch_tun; in dgnc_tty_open()
1017 un->un_type = DGNC_SERIAL; in dgnc_tty_open()
1019 un = &brd->channels[PORT_NUM(minor)]->ch_pun; in dgnc_tty_open()
1020 un->un_type = DGNC_PRINT; in dgnc_tty_open()
1058 tty->driver_data = un; in dgnc_tty_open()
1063 if (!(un->un_flags & UN_ISOPEN)) { in dgnc_tty_open()
1065 un->un_tty = tty; in dgnc_tty_open()
1159 un->un_open_count++; in dgnc_tty_open()
1160 un->un_flags |= (UN_ISOPEN); in dgnc_tty_open()
[all …]
Ddgnc_cls.c652 struct un_t *un; in cls_param() local
657 un = (struct un_t *)tty->driver_data; in cls_param()
658 if (!un || un->magic != DGNC_UNIT_MAGIC) in cls_param()
661 ch = un->un_ch; in cls_param()
737 (un->un_type == DGNC_PRINT)) in cls_param()
1029 struct un_t *un; in cls_drain() local
1034 un = (struct un_t *)tty->driver_data; in cls_drain()
1035 if (!un || un->magic != DGNC_UNIT_MAGIC) in cls_drain()
1038 ch = un->un_ch; in cls_drain()
1043 un->un_flags |= UN_EMPTY; in cls_drain()
[all …]
Ddgnc_neo.c595 struct un_t *un; in neo_param() local
600 un = (struct un_t *)tty->driver_data; in neo_param()
601 if (!un || un->magic != DGNC_UNIT_MAGIC) in neo_param()
604 ch = un->un_ch; in neo_param()
679 (un->un_type == DGNC_PRINT)) in neo_param()
1299 struct un_t *un; in neo_drain() local
1305 un = (struct un_t *)tty->driver_data; in neo_drain()
1306 if (!un || un->magic != DGNC_UNIT_MAGIC) in neo_drain()
1309 ch = un->un_ch; in neo_drain()
1314 un->un_flags |= UN_EMPTY; in neo_drain()
[all …]
Ddgnc_sysfs.h37 void dgnc_create_tty_sysfs(struct un_t *un, struct device *c);
/drivers/scsi/csiostor/
Dcsio_wr.c87 csio_wr_reg32(hw, DBPRIO_F | QID_V(flq->un.fl.flid) | in csio_wr_ring_fldb()
119 struct csio_dma_buf *buf = &flq->un.fl.bufs[0]; in csio_wr_fill_fl()
121 int sreg = flq->un.fl.sreg; in csio_wr_fill_fl()
253 q->un.iq.genbit = 1; in csio_wr_alloc_q()
276 q->un.iq.flq_idx = flq_idx; in csio_wr_alloc_q()
278 flq = wrm->q_arr[q->un.iq.flq_idx]; in csio_wr_alloc_q()
279 flq->un.fl.bufs = kzalloc(flq->credits * in csio_wr_alloc_q()
282 if (!flq->un.fl.bufs) { in csio_wr_alloc_q()
289 flq->un.fl.packen = 0; in csio_wr_alloc_q()
290 flq->un.fl.offset = 0; in csio_wr_alloc_q()
[all …]
Dcsio_wr.h413 } un; member
463 #define csio_q_iqid(__hw, __idx) ((__hw)->wrm.q_arr[(__idx)]->un.iq.iqid)
465 ((__hw)->wrm.q_arr[(__idx)]->un.iq.physiqid)
467 ((__hw)->wrm.q_arr[(__idx)]->un.iq.flq_idx)
468 #define csio_q_eqid(__hw, __idx) ((__hw)->wrm.q_arr[(__idx)]->un.eq.eqid)
469 #define csio_q_flid(__hw, __idx) ((__hw)->wrm.q_arr[(__idx)]->un.fl.flid)
472 ((__hw)->wrm.q_arr[(__idx)]->un.eq.physeqid)
473 #define csio_iq_has_fl(__iq) ((__iq)->un.iq.flq_idx != -1)
476 csio_q_flid((__hw), (__hw)->wrm.q_arr[(__iq_qidx)]->un.iq.flq_idx)
479 #define csio_q_eq_wrap(__hw, __idx) ((__hw)->wrm.q_arr[(__idx)]->un.eq.wrap)
/drivers/clk/
Dclk-cdce925.c89 unsigned long un; in cdce925_pll_find_rate() local
107 un = rate / g; in cdce925_pll_find_rate()
109 while ((un > 4095) || (um > 511)) { in cdce925_pll_find_rate()
110 un >>= 1; in cdce925_pll_find_rate()
113 if (un == 0) in cdce925_pll_find_rate()
114 un = 1; in cdce925_pll_find_rate()
118 *n = un; in cdce925_pll_find_rate()