Lines Matching defs:command

229 /* SPI command IDs */
235 /* SPI command definitions */
651 u8 *command,
716 * command
719 * Presents a received SAP command from the ca8210 to the Cascoda EVBME, test
975 * @buf: Octet array of command being sent downstream
1113 struct mac_message command, response;
1116 command.command_id = SPI_TDME_SETSFR_REQUEST;
1117 command.length = 3;
1118 command.pdata.tdme_set_sfr_req.sfr_page = sfr_page;
1119 command.pdata.tdme_set_sfr_req.sfr_address = sfr_address;
1120 command.pdata.tdme_set_sfr_req.sfr_value = sfr_value;
1123 &command.command_id,
1124 command.length + 2,
1485 struct mac_message command;
1487 command.command_id = SPI_MCPS_DATA_REQUEST;
1488 command.pdata.data_req.src_addr_mode = src_addr_mode;
1489 command.pdata.data_req.dst.mode = dst_address_mode;
1491 command.pdata.data_req.dst.pan_id[0] = LS_BYTE(dst_pan_id);
1492 command.pdata.data_req.dst.pan_id[1] = MS_BYTE(dst_pan_id);
1494 command.pdata.data_req.dst.address[0] = LS_BYTE(
1497 command.pdata.data_req.dst.address[1] = MS_BYTE(
1502 command.pdata.data_req.dst.address,
1508 command.pdata.data_req.msdu_length = msdu_length;
1509 command.pdata.data_req.msdu_handle = msdu_handle;
1510 command.pdata.data_req.tx_options = tx_options;
1511 memcpy(command.pdata.data_req.msdu, msdu, msdu_length);
1512 psec = (struct secspec *)(command.pdata.data_req.msdu + msdu_length);
1513 command.length = sizeof(struct mcps_data_request_pset) -
1517 command.length += 1;
1520 command.length += sizeof(struct secspec);
1523 if (ca8210_spi_transfer(device_ref, &command.command_id,
1524 command.length + 2))
1543 struct mac_message command, response;
1546 command.command_id = SPI_MLME_RESET_REQUEST;
1547 command.length = 1;
1548 command.pdata.u8param = set_default_pib;
1551 &command.command_id,
1552 command.length + 2,
1596 struct mac_message command, response;
1622 command.command_id = SPI_MLME_SET_REQUEST;
1623 command.length = sizeof(struct mlme_set_request_pset) -
1625 command.pdata.set_req.pib_attribute = pib_attribute;
1626 command.pdata.set_req.pib_attribute_index = pib_attribute_index;
1627 command.pdata.set_req.pib_attribute_length = pib_attribute_length;
1629 command.pdata.set_req.pib_attribute_value,
1635 &command.command_id,
1636 command.length + 2,
1664 struct mac_message command, response;
1666 command.command_id = SPI_HWME_SET_REQUEST;
1667 command.length = 2 + hw_attribute_length;
1668 command.pdata.hwme_set_req.hw_attribute = hw_attribute;
1669 command.pdata.hwme_set_req.hw_attribute_length = hw_attribute_length;
1671 command.pdata.hwme_set_req.hw_attribute_value,
1677 &command.command_id,
1678 command.length + 2,
1706 struct mac_message command, response;
1708 command.command_id = SPI_HWME_GET_REQUEST;
1709 command.length = 1;
1710 command.pdata.hwme_get_req.hw_attribute = hw_attribute;
1713 &command.command_id,
1714 command.length + 2,
1791 * Called by the spi driver whenever a SAP command is received, this function
1792 * will ascertain whether the command is of interest to the network driver and
1887 * @hw: ieee802154_hw that command was received by
1888 * @command: Octet array of received command
1889 * @len: length of the received command
1891 * Called by the spi driver whenever a SAP command is received, this function
1892 * will ascertain whether the command is of interest to the network driver and
1897 static int ca8210_net_rx(struct ieee802154_hw *hw, u8 *command, size_t len)
1903 dev_dbg(&priv->spi->dev, "%s: CmdID = %d\n", __func__, command[0]);
1905 if (command[0] == SPI_MCPS_DATA_INDICATION) {
1908 if (command[26] == priv->last_dsn) {
1912 command[26]
1917 priv->last_dsn = command[26];
1919 return ca8210_skb_rx(hw, len - 2, command + 2);
1920 } else if (command[0] == SPI_MCPS_DATA_CONFIRM) {
1921 status = command[3];
1925 command[2],
2423 * ca8210_test_check_upstream() - Checks a command received from the upstream
2425 * @buf: Buffer containing command to check
2497 u8 command[CA8210_SPI_BUF_SIZE];
2499 memset(command, SPI_IDLE, 6);
2509 ret = copy_from_user(command, in_buf, len);
2518 if (len != command[1] + 2) {
2526 ret = ca8210_test_check_upstream(command, priv->spi);
2529 command,
2530 command[1] + 2,
2542 if (command[0] & SPI_SYN)