Lines Matching refs:caps

52 	struct hpm2_lan_attach_capabilities caps;  member
63 struct hpm2_lan_attach_capabilities * caps) in hpm2_get_capabilities() argument
70 memset(caps, 0, sizeof(struct hpm2_lan_attach_capabilities)); in hpm2_get_capabilities()
123 memcpy(caps, rsp->data + 2, rsp->data_len - 2); in hpm2_get_capabilities()
127 caps->lan_channel_mask = BSWAP_16(caps->lan_channel_mask); in hpm2_get_capabilities()
131 if (caps->hpm2_revision_id != HPM2_REVISION) { in hpm2_get_capabilities()
133 caps->hpm2_revision_id); in hpm2_get_capabilities()
137 if (!caps->lan_channel_mask) { in hpm2_get_capabilities()
148 if (caps->hpm2_lan_params_start < 0xC0) { in hpm2_get_capabilities()
150 caps->hpm2_lan_params_start); in hpm2_get_capabilities()
155 if (caps->hpm2_lan_params_rev != HPM2_LAN_PARAMS_REV) { in hpm2_get_capabilities()
157 caps->hpm2_lan_params_rev); in hpm2_get_capabilities()
162 if (!(caps->hpm2_caps & HPM2_CAPS_SOL_EXTENSION)) { in hpm2_get_capabilities()
174 if (caps->hpm2_sol_params_start < 0xC0) { in hpm2_get_capabilities()
176 caps->hpm2_sol_params_start); in hpm2_get_capabilities()
181 if (caps->hpm2_sol_params_rev != HPM2_SOL_PARAMS_REV) { in hpm2_get_capabilities()
183 caps->hpm2_sol_params_rev); in hpm2_get_capabilities()
192 struct hpm2_lan_channel_capabilities * caps) in hpm2_get_lan_channel_capabilities() argument
199 memset(caps, 0, sizeof(struct hpm2_lan_channel_capabilities)); in hpm2_get_lan_channel_capabilities()
245 memcpy(caps, &rsp->data[1], sizeof (struct hpm2_lan_channel_capabilities)); in hpm2_get_lan_channel_capabilities()
249 caps->max_inbound_pld_size = BSWAP_16(caps->max_inbound_pld_size); in hpm2_get_lan_channel_capabilities()
250 caps->max_outbound_pld_size = BSWAP_16(caps->max_outbound_pld_size); in hpm2_get_lan_channel_capabilities()