Lines Matching defs:block

964  * struct fw_block - block type and total length
965 * @type: type of the current block, such as RTL_FW_END, RTL_FW_PLA,
967 * @length: total length of the current block.
980 * @blocks: the first firmware block of the file
1049 * struct fw_mac - a firmware block used by RTL_FW_PLA and RTL_FW_USB.
1050 * The layout of the firmware block is:
1090 * struct fw_phy_patch_key - a firmware block used by RTL_FW_PHY_START.
1105 * struct fw_phy_nc - a firmware block used by RTL_FW_PHY_NC.
1106 * The layout of the firmware block is:
1208 /* If register access fails then we block access and issue a reset. If this
4256 dev_err(&tp->intf->dev, "invalid block length\n");
4286 dev_err(&tp->intf->dev, "invalid block length\n");
4316 dev_err(&tp->intf->dev, "invalid block length\n");
4357 dev_err(&tp->intf->dev, "invalid block length\n");
4410 dev_err(&tp->intf->dev, "invalid block length\n");
4546 dev_err(&tp->intf->dev, "invalid block length\n");
4659 struct fw_block *block = (struct fw_block *)&fw->data[i];
4662 if ((i + sizeof(*block)) > fw->size)
4665 type = __le32_to_cpu(block->type);
4668 if (__le32_to_cpu(block->length) != sizeof(*block))
4678 if (!rtl8152_is_fw_mac_ok(tp, (struct fw_mac *)block)) {
4692 if (!rtl8152_is_fw_mac_ok(tp, (struct fw_mac *)block)) {
4712 if (__le32_to_cpu(block->length) != sizeof(struct fw_phy_patch_key)) {
4727 if (__le32_to_cpu(block->length) != sizeof(*block)) {
4748 if (!rtl8152_is_fw_phy_nc_ok(tp, (struct fw_phy_nc *)block)) {
4771 if (!rtl8152_is_fw_phy_union_ok(tp, (struct fw_phy_union *)block)) {
4792 if (!rtl8152_is_fw_phy_union_ok(tp, (struct fw_phy_union *)block)) {
4812 if (!rtl8152_is_fw_phy_union_ok(tp, (struct fw_phy_union *)block)) {
4831 if (!rtl8152_is_fw_phy_union_ok(tp, (struct fw_phy_union *)block)) {
4849 if (!rtl8152_is_fw_phy_union_ok(tp, (struct fw_phy_union *)block)) {
4856 if (!rtl8152_is_fw_phy_union_ok(tp, (struct fw_phy_union *)block)) {
4862 if (!rtl8152_is_fw_phy_fixup_ok(tp, (struct fw_phy_fixup *)block)) {
4873 if (!rtl8152_is_fw_phy_speed_up_ok(tp, (struct fw_phy_speed_up *)block)) {
4896 if (!rtl8152_is_fw_phy_ver_ok(tp, (struct fw_phy_ver *)block)) {
4908 /* next block */
4909 i += ALIGN(__le32_to_cpu(block->length), 8);
5186 struct fw_block *block = (struct fw_block *)&fw->data[i];
5188 switch (__le32_to_cpu(block->type)) {
5193 rtl8152_fw_mac_apply(tp, (struct fw_mac *)block);
5198 key = (struct fw_phy_patch_key *)block;
5209 rtl8152_fw_phy_nc_apply(tp, (struct fw_phy_nc *)block);
5212 patch_phy = rtl8152_fw_phy_ver(tp, (struct fw_phy_ver *)block);
5221 rtl8152_fw_phy_union_apply(tp, (struct fw_phy_union *)block);
5225 rtl8152_fw_phy_fixup(tp, (struct fw_phy_fixup *)block);
5228 rtl_ram_code_speed_up(tp, (struct fw_phy_speed_up *)block, !power_cut);
5234 i += ALIGN(__le32_to_cpu(block->length), 8);