Home
last modified time | relevance | path

Searched refs:pcmd (Results 1 – 25 of 28) sorted by relevance

12

/drivers/staging/rtl8712/
Drtl8712_cmd.c132 void (*pcmd_callback)(struct _adapter *dev, struct cmd_obj *pcmd); in read_macreg_hdl()
133 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in read_macreg_hdl() local
136 pcmd_callback = cmd_callback[pcmd->cmdcode].callback; in read_macreg_hdl()
138 r8712_free_cmd_obj(pcmd); in read_macreg_hdl()
140 pcmd_callback(padapter, pcmd); in read_macreg_hdl()
146 void (*pcmd_callback)(struct _adapter *dev, struct cmd_obj *pcmd); in write_macreg_hdl()
147 struct cmd_obj *pcmd = (struct cmd_obj *)pbuf; in write_macreg_hdl() local
150 pcmd_callback = cmd_callback[pcmd->cmdcode].callback; in write_macreg_hdl()
152 r8712_free_cmd_obj(pcmd); in write_macreg_hdl()
154 pcmd_callback(padapter, pcmd); in write_macreg_hdl()
[all …]
Drtl871x_cmd.c205 void r8712_free_cmd_obj(struct cmd_obj *pcmd) in r8712_free_cmd_obj() argument
207 if ((pcmd->cmdcode != _JoinBss_CMD_) && in r8712_free_cmd_obj()
208 (pcmd->cmdcode != _CreateBss_CMD_)) in r8712_free_cmd_obj()
209 kfree((unsigned char *)pcmd->parmbuf); in r8712_free_cmd_obj()
210 if (pcmd->rsp != NULL) { in r8712_free_cmd_obj()
211 if (pcmd->rspsz != 0) in r8712_free_cmd_obj()
212 kfree((unsigned char *)pcmd->rsp); in r8712_free_cmd_obj()
214 kfree((unsigned char *)pcmd); in r8712_free_cmd_obj()
437 struct cmd_obj *pcmd) in r8712_getbbrfreg_cmdrsp_callback() argument
439 kfree(pcmd->parmbuf); in r8712_getbbrfreg_cmdrsp_callback()
[all …]
Drtl871x_cmd.h84 #define init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code) \ argument
86 _init_listhead(&pcmd->list);\
87 pcmd->cmdcode = code;\
88 pcmd->parmbuf = (u8 *)(pparm);\
89 pcmd->cmdsz = sizeof(*pparm);\
90 pcmd->rsp = NULL;\
91 pcmd->rspsz = 0;\
97 void r8712_free_cmd_obj(struct cmd_obj *pcmd);
764 struct cmd_obj *pcmd);
766 struct cmd_obj *pcmd);
[all …]
Drtl871x_mlme.c1219 struct cmd_obj *pcmd; in r8712_set_auth() local
1223 pcmd = (struct cmd_obj *)_malloc(sizeof(struct cmd_obj)); in r8712_set_auth()
1224 if (pcmd == NULL) in r8712_set_auth()
1230 kfree((unsigned char *)pcmd); in r8712_set_auth()
1235 pcmd->cmdcode = _SetAuth_CMD_; in r8712_set_auth()
1236 pcmd->parmbuf = (unsigned char *)psetauthparm; in r8712_set_auth()
1237 pcmd->cmdsz = sizeof(struct setauth_parm); in r8712_set_auth()
1238 pcmd->rsp = NULL; in r8712_set_auth()
1239 pcmd->rspsz = 0; in r8712_set_auth()
1240 _init_listhead(&pcmd->list); in r8712_set_auth()
[all …]
Drtl871x_mp.c280 struct cmd_obj *pcmd = NULL; in r8712_SetChannel() local
284 pcmd = (struct cmd_obj *)_malloc(sizeof(struct cmd_obj)); in r8712_SetChannel()
285 if (pcmd == NULL) in r8712_SetChannel()
290 kfree(pcmd); in r8712_SetChannel()
294 init_h2fwcmd_w_parm_no_rsp(pcmd, pparm, code); in r8712_SetChannel()
295 r8712_enqueue_cmd(pcmdpriv, pcmd); in r8712_SetChannel()
/drivers/staging/media/as102/
Das10x_cmd_stream.c35 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_add_PID_filter() local
39 pcmd = adap->cmd; in as10x_cmd_add_PID_filter()
43 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_add_PID_filter()
44 sizeof(pcmd->body.add_pid_filter.req)); in as10x_cmd_add_PID_filter()
47 pcmd->body.add_pid_filter.req.proc_id = in as10x_cmd_add_PID_filter()
49 pcmd->body.add_pid_filter.req.pid = cpu_to_le16(filter->pid); in as10x_cmd_add_PID_filter()
50 pcmd->body.add_pid_filter.req.stream_type = filter->type; in as10x_cmd_add_PID_filter()
53 pcmd->body.add_pid_filter.req.idx = filter->idx; in as10x_cmd_add_PID_filter()
55 pcmd->body.add_pid_filter.req.idx = 0xFF; in as10x_cmd_add_PID_filter()
59 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_add_PID_filter()
[all …]
Das10x_cmd_cfg.c41 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_get_context() local
45 pcmd = adap->cmd; in as10x_cmd_get_context()
49 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_get_context()
50 sizeof(pcmd->body.context.req)); in as10x_cmd_get_context()
53 pcmd->body.context.req.proc_id = cpu_to_le16(CONTROL_PROC_CONTEXT); in as10x_cmd_get_context()
54 pcmd->body.context.req.tag = cpu_to_le16(tag); in as10x_cmd_get_context()
55 pcmd->body.context.req.type = cpu_to_le16(GET_CONTEXT_DATA); in as10x_cmd_get_context()
60 (uint8_t *) pcmd, in as10x_cmd_get_context()
61 sizeof(pcmd->body.context.req) in as10x_cmd_get_context()
100 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_set_context() local
[all …]
Das10x_cmd.c35 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_turn_on() local
39 pcmd = adap->cmd; in as10x_cmd_turn_on()
43 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_on()
44 sizeof(pcmd->body.turn_on.req)); in as10x_cmd_turn_on()
47 pcmd->body.turn_on.req.proc_id = cpu_to_le16(CONTROL_PROC_TURNON); in as10x_cmd_turn_on()
51 error = adap->ops->xfer_cmd(adap, (uint8_t *) pcmd, in as10x_cmd_turn_on()
52 sizeof(pcmd->body.turn_on.req) + in as10x_cmd_turn_on()
81 struct as10x_cmd_t *pcmd, *prsp; in as10x_cmd_turn_off() local
85 pcmd = adap->cmd; in as10x_cmd_turn_off()
89 as10x_cmd_build(pcmd, (++adap->cmd_xid), in as10x_cmd_turn_off()
[all …]
Das10x_cmd.h487 void as10x_cmd_build(struct as10x_cmd_t *pcmd, uint16_t proc_id,
/drivers/scsi/lpfc/
Dlpfc_els.c156 struct lpfc_dmabuf *pcmd, *prsp, *pbuflist; in lpfc_prep_els_iocb() local
203 pcmd = kmalloc(sizeof(struct lpfc_dmabuf), GFP_KERNEL); in lpfc_prep_els_iocb()
204 if (pcmd) in lpfc_prep_els_iocb()
205 pcmd->virt = lpfc_mbuf_alloc(phba, MEM_PRI, &pcmd->phys); in lpfc_prep_els_iocb()
206 if (!pcmd || !pcmd->virt) in lpfc_prep_els_iocb()
209 INIT_LIST_HEAD(&pcmd->list); in lpfc_prep_els_iocb()
263 bpl->addrLow = le32_to_cpu(putPaddrLow(pcmd->phys)); in lpfc_prep_els_iocb()
264 bpl->addrHigh = le32_to_cpu(putPaddrHigh(pcmd->phys)); in lpfc_prep_els_iocb()
282 elsiocb->context2 = pcmd; in lpfc_prep_els_iocb()
289 list_add(&prsp->list, &pcmd->list); in lpfc_prep_els_iocb()
[all …]
Dlpfc_nportdisc.c167 struct lpfc_dmabuf *pcmd, *prsp; in lpfc_check_elscmpl_iocb() local
173 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_check_elscmpl_iocb()
178 if (pcmd) { in lpfc_check_elscmpl_iocb()
179 prsp = list_get_first(&pcmd->list, struct lpfc_dmabuf, in lpfc_check_elscmpl_iocb()
267 struct lpfc_dmabuf *pcmd; in lpfc_rcv_plogi() local
303 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_rcv_plogi()
304 lp = (uint32_t *) pcmd->virt; in lpfc_rcv_plogi()
497 struct lpfc_dmabuf *pcmd; in lpfc_rcv_padisc() local
506 pcmd = (struct lpfc_dmabuf *) cmdiocb->context2; in lpfc_rcv_padisc()
507 lp = (uint32_t *) pcmd->virt; in lpfc_rcv_padisc()
[all …]
Dlpfc_bsg.c503 struct lpfc_dmabuf *pcmd; in lpfc_bsg_rport_els() local
556 pcmd = (struct lpfc_dmabuf *) cmdiocbq->context2; in lpfc_bsg_rport_els()
557 prsp = (struct lpfc_dmabuf *) pcmd->list.next; in lpfc_bsg_rport_els()
558 lpfc_mbuf_free(phba, pcmd->virt, pcmd->phys); in lpfc_bsg_rport_els()
559 kfree(pcmd); in lpfc_bsg_rport_els()
/drivers/scsi/
Dtmscsim.c442 struct scsi_cmnd *pcmd = pSRB->pcmd; in dc390_pci_map() local
444 dc390_cmd_scp_t* cmdp = ((dc390_cmd_scp_t*)(&pcmd->SCp)); in dc390_pci_map()
448 …pSRB->pSegmentList = dc390_sg_build_single(&pSRB->Segmentx, pcmd->sense_buffer, SCSI_SENSE_BUFFERS… in dc390_pci_map()
456 …DEBUG1(printk("%s(): Mapped sense buffer %p at %x\n", __func__, pcmd->sense_buffer, cmdp->saved_dm… in dc390_pci_map()
458 } else if (scsi_sg_count(pcmd)) { in dc390_pci_map()
461 nseg = scsi_dma_map(pcmd); in dc390_pci_map()
463 pSRB->pSegmentList = scsi_sglist(pcmd); in dc390_pci_map()
470 __func__, scsi_sglist(pcmd), nseg, scsi_sg_count(pcmd))); in dc390_pci_map()
481 struct scsi_cmnd *pcmd = pSRB->pcmd; in dc390_pci_unmap() local
483 DEBUG1(dc390_cmd_scp_t* cmdp = ((dc390_cmd_scp_t*)(&pcmd->SCp))); in dc390_pci_unmap()
[all …]
Dtmscsim.h33 struct scsi_cmnd *pcmd; member
Dncr53c8xx.c8199 struct scsi_cmnd **pcmd = &np->waiting_list; local
8201 while (*pcmd) {
8202 if (cmd == *pcmd) {
8204 *pcmd = (struct scsi_cmnd *) cmd->next_wcmd;
8212 pcmd = (struct scsi_cmnd **) &(*pcmd)->next_wcmd;
/drivers/scsi/arcmsr/
Darcmsr_hba.c785 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_pci_unmap_dma() local
787 scsi_dma_unmap(pcmd); in arcmsr_pci_unmap_dma()
793 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_ccb_complete() local
801 pcmd->scsi_done(pcmd); in arcmsr_ccb_complete()
807 struct scsi_cmnd *pcmd = ccb->pcmd; in arcmsr_report_sense_info() local
808 struct SENSE_DATA *sensebuffer = (struct SENSE_DATA *)pcmd->sense_buffer; in arcmsr_report_sense_info()
809 pcmd->result = DID_OK << 16; in arcmsr_report_sense_info()
853 id = ccb->pcmd->device->id; in arcmsr_report_ccb_state()
854 lun = ccb->pcmd->device->lun; in arcmsr_report_ccb_state()
858 ccb->pcmd->result = DID_OK << 16; in arcmsr_report_ccb_state()
[all …]
Darcmsr.h607 struct scsi_cmnd *pcmd; /*8 bytes pointer of linux scsi command */ member
/drivers/misc/
Dioc4.c287 uint32_t pcmd; in ioc4_probe() local
353 pci_read_config_dword(idd->idd_pdev, PCI_COMMAND, &pcmd); in ioc4_probe()
355 pcmd | PCI_COMMAND_PARITY | PCI_COMMAND_SERR); in ioc4_probe()
/drivers/net/wireless/rtlwifi/rtl8192se/
Dphy.c333 struct swchnlcmd *pcmd; in _rtl92s_phy_set_sw_chnl_cmdarray() local
343 pcmd = cmdtable + cmdtableidx; in _rtl92s_phy_set_sw_chnl_cmdarray()
344 pcmd->cmdid = cmdid; in _rtl92s_phy_set_sw_chnl_cmdarray()
345 pcmd->para1 = para1; in _rtl92s_phy_set_sw_chnl_cmdarray()
346 pcmd->para2 = para2; in _rtl92s_phy_set_sw_chnl_cmdarray()
347 pcmd->msdelay = msdelay; in _rtl92s_phy_set_sw_chnl_cmdarray()
/drivers/sn/
Dioc3.c609 uint32_t pcmd; in ioc3_probe() local
692 pci_read_config_dword(pdev, PCI_COMMAND, &pcmd); in ioc3_probe()
694 pcmd | PCI_COMMAND_MEMORY | in ioc3_probe()
/drivers/net/wireless/rtlwifi/rtl8192c/
Dphy_common.c732 struct swchnlcmd *pcmd; in _rtl92c_phy_set_sw_chnl_cmdarray() local
742 pcmd = cmdtable + cmdtableidx; in _rtl92c_phy_set_sw_chnl_cmdarray()
743 pcmd->cmdid = cmdid; in _rtl92c_phy_set_sw_chnl_cmdarray()
744 pcmd->para1 = para1; in _rtl92c_phy_set_sw_chnl_cmdarray()
745 pcmd->para2 = para2; in _rtl92c_phy_set_sw_chnl_cmdarray()
746 pcmd->msdelay = msdelay; in _rtl92c_phy_set_sw_chnl_cmdarray()
/drivers/net/caif/
Dcaif_spi_slave.c52 cfspi->pcmd = cfspi->cmd; in debugfs_store_prev()
Dcaif_spi.c151 "Previous CMD: 0x%x\n", cfspi->pcmd); in dbgfs_state()
/drivers/scsi/bfa/
Dbfad_bsg.c873 bfad_iocmd_ratelim(struct bfad_s *bfad, unsigned int cmd, void *pcmd) in bfad_iocmd_ratelim() argument
875 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ratelim()
896 bfad_iocmd_ratelim_speed(struct bfad_s *bfad, unsigned int cmd, void *pcmd) in bfad_iocmd_ratelim_speed() argument
898 struct bfa_bsg_trl_speed_s *iocmd = (struct bfa_bsg_trl_speed_s *)pcmd; in bfad_iocmd_ratelim_speed()
1265 bfad_iocmd_ablk_optrom(struct bfad_s *bfad, unsigned int cmd, void *pcmd) in bfad_iocmd_ablk_optrom() argument
1267 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_ablk_optrom()
2372 bfad_iocmd_lunmask(struct bfad_s *bfad, void *pcmd, unsigned int v_cmd) in bfad_iocmd_lunmask() argument
2374 struct bfa_bsg_gen_s *iocmd = (struct bfa_bsg_gen_s *)pcmd; in bfad_iocmd_lunmask()
/drivers/net/wireless/rtlwifi/rtl8192de/
Dphy.c2827 struct swchnlcmd *pcmd; in _rtl92d_phy_set_sw_chnl_cmdarray() local
2836 pcmd = cmdtable + cmdtableidx; in _rtl92d_phy_set_sw_chnl_cmdarray()
2837 pcmd->cmdid = cmdid; in _rtl92d_phy_set_sw_chnl_cmdarray()
2838 pcmd->para1 = para1; in _rtl92d_phy_set_sw_chnl_cmdarray()
2839 pcmd->para2 = para2; in _rtl92d_phy_set_sw_chnl_cmdarray()
2840 pcmd->msdelay = msdelay; in _rtl92d_phy_set_sw_chnl_cmdarray()

12