Lines Matching defs:fw_offset
1016 __le16 fw_offset;
1038 __le16 fw_offset;
1053 * @fw_offset: offset of the firmware binary data. The start address of
1054 * the data would be the address of struct fw_mac + @fw_offset.
1074 __le16 fw_offset;
1109 * @fw_offset: offset of the firmware binary data. The start address of
1110 * the data would be the address of struct fw_phy_nc + @fw_offset.
1129 __le16 fw_offset;
4222 u16 fw_offset;
4247 fw_offset = __le16_to_cpu(phy->fw_offset);
4249 if (fw_offset < sizeof(*phy) || length <= fw_offset) {
4250 dev_err(&tp->intf->dev, "invalid fw_offset\n");
4254 length -= fw_offset;
4333 u16 fw_offset;
4348 fw_offset = __le16_to_cpu(phy->fw_offset);
4350 if (fw_offset < sizeof(*phy) || length <= fw_offset) {
4351 dev_err(&tp->intf->dev, "invalid fw_offset\n");
4355 length -= fw_offset;
4379 u16 fw_offset, fw_reg, ba_reg, patch_en_addr, mode_reg, bp_start;
4396 fw_offset = __le16_to_cpu(phy->fw_offset);
4397 if (fw_offset < sizeof(*phy)) {
4398 dev_err(&tp->intf->dev, "fw_offset too small\n");
4403 if (length < fw_offset) {
4404 dev_err(&tp->intf->dev, "invalid fw_offset\n");
4408 length -= __le16_to_cpu(phy->fw_offset);
4454 u16 fw_reg, bp_ba_addr, bp_en_addr, bp_start, fw_offset;
4532 fw_offset = __le16_to_cpu(mac->fw_offset);
4533 if (fw_offset < sizeof(*mac)) {
4534 dev_err(&tp->intf->dev, "fw_offset too small\n");
4539 if (length < fw_offset) {
4540 dev_err(&tp->intf->dev, "invalid fw_offset\n");
4544 length -= fw_offset;
4936 len -= __le16_to_cpu(phy->fw_offset);
4937 data = (u8 *)phy + __le16_to_cpu(phy->fw_offset);
5051 length -= __le16_to_cpu(phy->fw_offset);
5053 data = (__le16 *)((u8 *)phy + __le16_to_cpu(phy->fw_offset));
5083 length -= __le16_to_cpu(phy->fw_offset);
5085 data = (__le16 *)((u8 *)phy + __le16_to_cpu(phy->fw_offset));
5141 length -= __le16_to_cpu(mac->fw_offset);
5144 data += __le16_to_cpu(mac->fw_offset);