Home
last modified time | relevance | path

Searched refs:cbw (Results 1 – 25 of 49) sorted by relevance

12

/OK3568_Linux_fs/u-boot/drivers/usb/emul/
H A Dsandbox_flash.c305 struct umass_bbb_cbw *cbw = buff; in sandbox_flash_bulk() local
316 cbw->dCBWSignature != CBWSIGNATURE) in sandbox_flash_bulk()
318 if ((cbw->bCBWFlags & CBWFLAGS_SBZ) || in sandbox_flash_bulk()
319 cbw->bCBWLUN != 0) in sandbox_flash_bulk()
321 if (cbw->bCDBLength < 1 || cbw->bCDBLength >= 0x10) in sandbox_flash_bulk()
323 priv->transfer_len = cbw->dCBWDataTransferLength; in sandbox_flash_bulk()
324 priv->tag = cbw->dCBWTag; in sandbox_flash_bulk()
325 return handle_ufi_command(plat, priv, cbw->CBWCDB, in sandbox_flash_bulk()
326 cbw->bCDBLength); in sandbox_flash_bulk()
/OK3568_Linux_fs/u-boot/drivers/usb/gadget/
H A Df_rockusb.c106 static inline void dump_cbw(struct fsg_bulk_cb_wrap *cbw) in dump_cbw() argument
108 assert(!cbw); in dump_cbw()
111 debug("Signature %x\n", cbw->Signature); in dump_cbw()
112 debug("Tag %x\n", cbw->Tag); in dump_cbw()
113 debug("DataTransferLength %x\n", cbw->DataTransferLength); in dump_cbw()
114 debug("Flags %x\n", cbw->Flags); in dump_cbw()
115 debug("LUN %x\n", cbw->Lun); in dump_cbw()
116 debug("Length %x\n", cbw->Length); in dump_cbw()
117 debug("OptionCode %x\n", cbw->CDB[0]); in dump_cbw()
118 debug("SubCode %x\n", cbw->CDB[1]); in dump_cbw()
[all …]
H A Df_mass_storage.c2076 struct fsg_bulk_cb_wrap *cbw = req->buf; in received_cbw() local
2085 cbw->Signature != cpu_to_le32( in received_cbw()
2089 le32_to_cpu(cbw->Signature)); in received_cbw()
2106 if (cbw->Lun >= FSG_MAX_LUNS || cbw->Flags & ~USB_BULK_IN_FLAG || in received_cbw()
2107 cbw->Length <= 0 || cbw->Length > MAX_COMMAND_SIZE) { in received_cbw()
2110 cbw->Lun, cbw->Flags, cbw->Length); in received_cbw()
2122 common->cmnd_size = cbw->Length; in received_cbw()
2123 memcpy(common->cmnd, cbw->CDB, common->cmnd_size); in received_cbw()
2124 if (cbw->Flags & USB_BULK_IN_FLAG) in received_cbw()
2128 common->data_size = le32_to_cpu(cbw->DataTransferLength); in received_cbw()
[all …]
/OK3568_Linux_fs/kernel/drivers/mmc/host/
H A Dushc.c97 struct ushc_cbw *cbw; member
277 ushc->cbw->cmd_idx = cpu_to_le16(req->cmd->opcode); in ushc_request()
279 ushc->cbw->block_size = cpu_to_le16(req->data->blksz); in ushc_request()
281 ushc->cbw->block_size = 0; in ushc_request()
282 ushc->cbw->arg = cpu_to_le32(req->cmd->arg); in ushc_request()
405 kfree(ushc->cbw); in ushc_clean_up()
484 ushc->cbw = kzalloc(sizeof(struct ushc_cbw), GFP_KERNEL); in ushc_probe()
485 if (ushc->cbw == NULL) { in ushc_probe()
489 ushc->cbw->signature = USHC_CBW_SIGNATURE; in ushc_probe()
492 ushc->cbw, sizeof(struct ushc_cbw), in ushc_probe()
/OK3568_Linux_fs/u-boot/common/
H A Dusb_storage.c540 ALLOC_CACHE_ALIGN_BUFFER(struct umass_bbb_cbw, cbw, 1); in usb_stor_BBB_comdat()
563 cbw->dCBWSignature = cpu_to_le32(CBWSIGNATURE); in usb_stor_BBB_comdat()
564 cbw->dCBWTag = cpu_to_le32(CBWTag++); in usb_stor_BBB_comdat()
565 cbw->dCBWDataTransferLength = cpu_to_le32(srb->datalen); in usb_stor_BBB_comdat()
566 cbw->bCBWFlags = (dir_in ? CBWFLAGS_IN : CBWFLAGS_OUT); in usb_stor_BBB_comdat()
567 cbw->bCBWLUN = srb->lun; in usb_stor_BBB_comdat()
568 cbw->bCDBLength = srb->cmdlen; in usb_stor_BBB_comdat()
572 memcpy(cbw->CBWCDB, srb->cmd, srb->cmdlen); in usb_stor_BBB_comdat()
573 result = usb_bulk_msg(us->pusb_dev, pipe, cbw, UMASS_BBB_CBW_SIZE, in usb_stor_BBB_comdat()
/OK3568_Linux_fs/kernel/drivers/usb/gadget/function/
H A Df_mass_storage.c2126 struct bulk_cb_wrap *cbw = req->buf; in received_cbw() local
2135 cbw->Signature != cpu_to_le32( in received_cbw()
2139 le32_to_cpu(cbw->Signature)); in received_cbw()
2158 if (cbw->Lun >= ARRAY_SIZE(common->luns) || in received_cbw()
2159 cbw->Flags & ~US_BULK_FLAG_IN || cbw->Length <= 0 || in received_cbw()
2160 cbw->Length > MAX_COMMAND_SIZE) { in received_cbw()
2163 cbw->Lun, cbw->Flags, cbw->Length); in received_cbw()
2177 common->cmnd_size = cbw->Length; in received_cbw()
2178 memcpy(common->cmnd, cbw->CDB, common->cmnd_size); in received_cbw()
2179 if (cbw->Flags & US_BULK_FLAG_IN) in received_cbw()
[all …]
H A Df_tcm.c1208 struct bulk_cb_wrap *cbw = cmdbuf; in bot_submit_command() local
1214 if (cbw->Signature != cpu_to_le32(US_BULK_CB_SIGN)) { in bot_submit_command()
1223 cmd_len = cbw->Length; in bot_submit_command()
1233 cmd = usbg_get_cmd(fu, tv_nexus, cbw->Tag); in bot_submit_command()
1238 memcpy(cmd->cmd_buf, cbw->CDB, cmd_len); in bot_submit_command()
1240 cmd->bot_tag = cbw->Tag; in bot_submit_command()
1242 cmd->unpacked_lun = cbw->Lun; in bot_submit_command()
1243 cmd->is_read = cbw->Flags & US_BULK_FLAG_IN ? 1 : 0; in bot_submit_command()
1244 cmd->data_len = le32_to_cpu(cbw->DataTransferLength); in bot_submit_command()
/OK3568_Linux_fs/external/rkupdate/
H A DRKComm.h152 #define UFI_CHECK_SIGN(cbw, csw) ((CSW_SIGN == (csw).dwCSWSignature) && ((csw).dwCSWTag == (cbw).dw… argument
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/bb/
H A Dhalbb_dig.c770 enum channel_width cbw = bb->hal_com->band[phy].cur_chandef.bw; in halbb_dyn_pd_th_cck() local
778 halbb_set_pd_lower_bound_cck(bb, RSSI_MIN, cbw, bb->bb_phy_idx); in halbb_dyn_pd_th_cck()
781 if(!halbb_set_pd_lower_bound_cck(bb, RSSI_MAX - rssi, cbw, in halbb_dyn_pd_th_cck()
798 enum channel_width cbw = bb->hal_com->band[phy].cur_chandef.bw; in halbb_dyn_pd_th_ofdm() local
806 halbb_set_pd_lower_bound(bb, RSSI_MIN, cbw, bb->bb_phy_idx); in halbb_dyn_pd_th_ofdm()
809 if(!halbb_set_pd_lower_bound(bb, RSSI_MAX - rssi, cbw, in halbb_dyn_pd_th_ofdm()
1480 enum channel_width cbw = bb->hal_com->band[phy].cur_chandef.bw; in halbb_set_dig_pause_val() local
1503 halbb_set_pd_lower_bound(bb, target_pwr, cbw, bb->bb_phy_idx); in halbb_set_dig_pause_val()
1506 halbb_set_pd_lower_bound_cck(bb, target_pwr, cbw, bb->bb_phy_idx); in halbb_set_dig_pause_val()
2419 enum channel_width cbw = CHANNEL_WIDTH_20; in halbb_mccdm_pd_cal() local
[all …]
H A Dhalbb_plcp_tx_ex.h198 u32 cbw : 2; member
H A Dhalbb_api_ex.h36 enum channel_width cbw, enum channel_width dbw);
H A Dhalbb_api.c546 enum channel_width cbw, enum channel_width dbw) in halbb_get_txsc() argument
552 if ((cbw == dbw) || (cbw == CHANNEL_WIDTH_20)) { in halbb_get_txsc()
558 switch (cbw) { in halbb_get_txsc()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/bb/
H A Dhalbb_dig.c770 enum channel_width cbw = bb->hal_com->band[phy].cur_chandef.bw; in halbb_dyn_pd_th_cck() local
778 halbb_set_pd_lower_bound_cck(bb, RSSI_MIN, cbw, bb->bb_phy_idx); in halbb_dyn_pd_th_cck()
781 if(!halbb_set_pd_lower_bound_cck(bb, RSSI_MAX - rssi, cbw, in halbb_dyn_pd_th_cck()
798 enum channel_width cbw = bb->hal_com->band[phy].cur_chandef.bw; in halbb_dyn_pd_th_ofdm() local
806 halbb_set_pd_lower_bound(bb, RSSI_MIN, cbw, bb->bb_phy_idx); in halbb_dyn_pd_th_ofdm()
809 if(!halbb_set_pd_lower_bound(bb, RSSI_MAX - rssi, cbw, in halbb_dyn_pd_th_ofdm()
1480 enum channel_width cbw = bb->hal_com->band[phy].cur_chandef.bw; in halbb_set_dig_pause_val() local
1503 halbb_set_pd_lower_bound(bb, target_pwr, cbw, bb->bb_phy_idx); in halbb_set_dig_pause_val()
1506 halbb_set_pd_lower_bound_cck(bb, target_pwr, cbw, bb->bb_phy_idx); in halbb_set_dig_pause_val()
2419 enum channel_width cbw = CHANNEL_WIDTH_20; in halbb_mccdm_pd_cal() local
[all …]
H A Dhalbb_plcp_tx_ex.h198 u32 cbw : 2; member
H A Dhalbb_api_ex.h36 enum channel_width cbw, enum channel_width dbw);
H A Dhalbb_api.c546 enum channel_width cbw, enum channel_width dbw) in halbb_get_txsc() argument
552 if ((cbw == dbw) || (cbw == CHANNEL_WIDTH_20)) { in halbb_get_txsc()
558 switch (cbw) { in halbb_get_txsc()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/phy/rf/
H A Dhalrf_pmac.h110 u32 cbw : 2; member
H A Dhalrf_pmac.c97 plcp->cbw = 0; in halrf_set_plcp_para_info()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/phy/rf/
H A Dhalrf_pmac.h110 u32 cbw : 2; member
H A Dhalrf_pmac.c97 plcp->cbw = 0; in halrf_set_plcp_para_info()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/hal_g6/mac/mac_ax/
H A Dhw.c1642 switch (cfg->cbw) { in cfg_mac_bw()
1645 cfg->central_ch, cfg->cbw, in cfg_mac_bw()
1650 cfg->central_ch, cfg->cbw, in cfg_mac_bw()
1655 cfg->central_ch, cfg->cbw, in cfg_mac_bw()
1676 switch (cfg->cbw) { in cfg_mac_bw()
1751 switch (cfg->cbw) { in cfg_mac_bw()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/mac/mac_ax/
H A Dhw.c1642 switch (cfg->cbw) { in cfg_mac_bw()
1645 cfg->central_ch, cfg->cbw, in cfg_mac_bw()
1650 cfg->central_ch, cfg->cbw, in cfg_mac_bw()
1655 cfg->central_ch, cfg->cbw, in cfg_mac_bw()
1676 switch (cfg->cbw) { in cfg_mac_bw()
1751 switch (cfg->cbw) { in cfg_mac_bw()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852bs/phl/test/mp/
H A Dphl_test_mp_tx.c140 PHL_INFO("%s arg->cbw = %d\n",__FUNCTION__, arg->cbw); in phl_mp_get_plcp_common_info()
184 plcp_tx_struct->cbw = arg->cbw; in phl_mp_get_plcp_common_info()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/test/mp/
H A Dphl_test_mp_tx.c140 PHL_INFO("%s arg->cbw = %d\n",__FUNCTION__, arg->cbw); in phl_mp_get_plcp_common_info()
184 plcp_tx_struct->cbw = arg->cbw; in phl_mp_get_plcp_common_info()
/OK3568_Linux_fs/external/rkwifibt/drivers/rtl8852be/phl/hal_g6/
H A Dhal_api_drv.h278 u8 central_ch, enum channel_width cbw, enum channel_width dbw);

12