Lines Matching refs:command
610 u8 *command,
1072 struct mac_message command, response; in tdme_setsfr_request_sync() local
1075 command.command_id = SPI_TDME_SETSFR_REQUEST; in tdme_setsfr_request_sync()
1076 command.length = 3; in tdme_setsfr_request_sync()
1077 command.pdata.tdme_set_sfr_req.sfr_page = sfr_page; in tdme_setsfr_request_sync()
1078 command.pdata.tdme_set_sfr_req.sfr_address = sfr_address; in tdme_setsfr_request_sync()
1079 command.pdata.tdme_set_sfr_req.sfr_value = sfr_value; in tdme_setsfr_request_sync()
1082 &command.command_id, in tdme_setsfr_request_sync()
1083 command.length + 2, in tdme_setsfr_request_sync()
1443 struct mac_message command; in mcps_data_request() local
1445 command.command_id = SPI_MCPS_DATA_REQUEST; in mcps_data_request()
1446 command.pdata.data_req.src_addr_mode = src_addr_mode; in mcps_data_request()
1447 command.pdata.data_req.dst.mode = dst_address_mode; in mcps_data_request()
1449 command.pdata.data_req.dst.pan_id[0] = LS_BYTE(dst_pan_id); in mcps_data_request()
1450 command.pdata.data_req.dst.pan_id[1] = MS_BYTE(dst_pan_id); in mcps_data_request()
1452 command.pdata.data_req.dst.address[0] = LS_BYTE( in mcps_data_request()
1455 command.pdata.data_req.dst.address[1] = MS_BYTE( in mcps_data_request()
1460 command.pdata.data_req.dst.address, in mcps_data_request()
1466 command.pdata.data_req.msdu_length = msdu_length; in mcps_data_request()
1467 command.pdata.data_req.msdu_handle = msdu_handle; in mcps_data_request()
1468 command.pdata.data_req.tx_options = tx_options; in mcps_data_request()
1469 memcpy(command.pdata.data_req.msdu, msdu, msdu_length); in mcps_data_request()
1470 psec = (struct secspec *)(command.pdata.data_req.msdu + msdu_length); in mcps_data_request()
1471 command.length = sizeof(struct mcps_data_request_pset) - in mcps_data_request()
1475 command.length += 1; in mcps_data_request()
1478 command.length += sizeof(struct secspec); in mcps_data_request()
1481 if (ca8210_spi_transfer(device_ref, &command.command_id, in mcps_data_request()
1482 command.length + 2)) in mcps_data_request()
1501 struct mac_message command, response; in mlme_reset_request_sync() local
1504 command.command_id = SPI_MLME_RESET_REQUEST; in mlme_reset_request_sync()
1505 command.length = 1; in mlme_reset_request_sync()
1506 command.pdata.u8param = set_default_pib; in mlme_reset_request_sync()
1509 &command.command_id, in mlme_reset_request_sync()
1510 command.length + 2, in mlme_reset_request_sync()
1554 struct mac_message command, response; in mlme_set_request_sync() local
1580 command.command_id = SPI_MLME_SET_REQUEST; in mlme_set_request_sync()
1581 command.length = sizeof(struct mlme_set_request_pset) - in mlme_set_request_sync()
1583 command.pdata.set_req.pib_attribute = pib_attribute; in mlme_set_request_sync()
1584 command.pdata.set_req.pib_attribute_index = pib_attribute_index; in mlme_set_request_sync()
1585 command.pdata.set_req.pib_attribute_length = pib_attribute_length; in mlme_set_request_sync()
1587 command.pdata.set_req.pib_attribute_value, in mlme_set_request_sync()
1593 &command.command_id, in mlme_set_request_sync()
1594 command.length + 2, in mlme_set_request_sync()
1622 struct mac_message command, response; in hwme_set_request_sync() local
1624 command.command_id = SPI_HWME_SET_REQUEST; in hwme_set_request_sync()
1625 command.length = 2 + hw_attribute_length; in hwme_set_request_sync()
1626 command.pdata.hwme_set_req.hw_attribute = hw_attribute; in hwme_set_request_sync()
1627 command.pdata.hwme_set_req.hw_attribute_length = hw_attribute_length; in hwme_set_request_sync()
1629 command.pdata.hwme_set_req.hw_attribute_value, in hwme_set_request_sync()
1635 &command.command_id, in hwme_set_request_sync()
1636 command.length + 2, in hwme_set_request_sync()
1664 struct mac_message command, response; in hwme_get_request_sync() local
1666 command.command_id = SPI_HWME_GET_REQUEST; in hwme_get_request_sync()
1667 command.length = 1; in hwme_get_request_sync()
1668 command.pdata.hwme_get_req.hw_attribute = hw_attribute; in hwme_get_request_sync()
1671 &command.command_id, in hwme_get_request_sync()
1672 command.length + 2, in hwme_get_request_sync()
1854 static int ca8210_net_rx(struct ieee802154_hw *hw, u8 *command, size_t len) in ca8210_net_rx() argument
1860 dev_dbg(&priv->spi->dev, "%s: CmdID = %d\n", __func__, command[0]); in ca8210_net_rx()
1862 if (command[0] == SPI_MCPS_DATA_INDICATION) { in ca8210_net_rx()
1865 if (command[26] == priv->last_dsn) { in ca8210_net_rx()
1869 command[26] in ca8210_net_rx()
1874 priv->last_dsn = command[26]; in ca8210_net_rx()
1876 return ca8210_skb_rx(hw, len - 2, command + 2); in ca8210_net_rx()
1877 } else if (command[0] == SPI_MCPS_DATA_CONFIRM) { in ca8210_net_rx()
1878 status = command[3]; in ca8210_net_rx()
1882 command[2], in ca8210_net_rx()
2454 u8 command[CA8210_SPI_BUF_SIZE]; in ca8210_test_int_user_write() local
2456 memset(command, SPI_IDLE, 6); in ca8210_test_int_user_write()
2466 ret = copy_from_user(command, in_buf, len); in ca8210_test_int_user_write()
2475 if (len != command[1] + 2) { in ca8210_test_int_user_write()
2483 ret = ca8210_test_check_upstream(command, priv->spi); in ca8210_test_int_user_write()
2486 command, in ca8210_test_int_user_write()
2487 command[1] + 2, in ca8210_test_int_user_write()
2499 if (command[0] & SPI_SYN) in ca8210_test_int_user_write()