Lines Matching defs:block
873 * struct fw_block - block type and total length
874 * @type: type of the current block, such as RTL_FW_END, RTL_FW_PLA,
876 * @length: total length of the current block.
889 * @blocks: the first firmware block of the file
898 * struct fw_mac - a firmware block used by RTL_FW_PLA and RTL_FW_USB.
899 * The layout of the firmware block is:
937 * struct fw_phy_patch_key - a firmware block used by RTL_FW_PHY_START.
950 * struct fw_phy_nc - a firmware block used by RTL_FW_PHY_NC.
951 * The layout of the firmware block is:
3563 dev_err(&tp->intf->dev, "invalid block length\n");
3683 dev_err(&tp->intf->dev, "invalid block length\n");
3799 struct fw_block *block = (struct fw_block *)&fw->data[i];
3802 if ((i + sizeof(*block)) > fw->size)
3805 type = __le32_to_cpu(block->type);
3808 if (__le32_to_cpu(block->length) != sizeof(*block))
3818 pla = (struct fw_mac *)block;
3832 usb = (struct fw_mac *)block;
3846 if (__le32_to_cpu(block->length) != sizeof(*start)) {
3852 start = (struct fw_phy_patch_key *)block;
3861 if (__le32_to_cpu(block->length) != sizeof(*block)) {
3867 stop = block;
3882 phy_nc = (struct fw_phy_nc *)block;
3896 /* next block */
3897 i += ALIGN(__le32_to_cpu(block->length), 8);
4026 struct fw_block *block = (struct fw_block *)&fw->data[i];
4028 switch (__le32_to_cpu(block->type)) {
4033 rtl8152_fw_mac_apply(tp, (struct fw_mac *)block);
4036 key = (struct fw_phy_patch_key *)block;
4046 rtl8152_fw_phy_nc_apply(tp, (struct fw_phy_nc *)block);
4052 i += ALIGN(__le32_to_cpu(block->length), 8);