Lines Matching refs:option_length
29 option_end = (void *)(option + 1) + be16_to_cpu(option->option_length); in gve_get_next_option()
52 u16 option_length = be16_to_cpu(option->option_length); in gve_parse_device_option() local
60 if (option_length != GVE_DEV_OPT_LEN_GQI_RAW_ADDRESSING || in gve_parse_device_option()
66 option_length, req_feat_mask); in gve_parse_device_option()
75 if (option_length < sizeof(**dev_op_gqi_rda) || in gve_parse_device_option()
80 option_length, req_feat_mask); in gve_parse_device_option()
84 if (option_length > sizeof(**dev_op_gqi_rda)) { in gve_parse_device_option()
91 if (option_length < sizeof(**dev_op_gqi_qpl) || in gve_parse_device_option()
96 option_length, req_feat_mask); in gve_parse_device_option()
100 if (option_length > sizeof(**dev_op_gqi_qpl)) { in gve_parse_device_option()
107 if (option_length < sizeof(**dev_op_dqo_rda) || in gve_parse_device_option()
112 option_length, req_feat_mask); in gve_parse_device_option()
116 if (option_length > sizeof(**dev_op_dqo_rda)) { in gve_parse_device_option()
123 if (option_length < sizeof(**dev_op_dqo_qpl) || in gve_parse_device_option()
128 option_length, req_feat_mask); in gve_parse_device_option()
132 if (option_length > sizeof(**dev_op_dqo_qpl)) { in gve_parse_device_option()
139 if (option_length < sizeof(**dev_op_jumbo_frames) || in gve_parse_device_option()
145 option_length, req_feat_mask); in gve_parse_device_option()
149 if (option_length > sizeof(**dev_op_jumbo_frames)) { in gve_parse_device_option()
157 if (option_length < sizeof(**dev_op_buffer_sizes) || in gve_parse_device_option()
163 option_length, req_feat_mask); in gve_parse_device_option()
167 if (option_length > sizeof(**dev_op_buffer_sizes)) in gve_parse_device_option()
174 if (option_length < GVE_DEVICE_OPTION_NO_MIN_RING_SIZE || in gve_parse_device_option()
179 option_length, req_feat_mask); in gve_parse_device_option()
183 if (option_length > sizeof(**dev_op_modify_ring)) { in gve_parse_device_option()
191 if (option_length == GVE_DEVICE_OPTION_NO_MIN_RING_SIZE) in gve_parse_device_option()
195 if (option_length < sizeof(**dev_op_flow_steering) || in gve_parse_device_option()
201 option_length, req_feat_mask); in gve_parse_device_option()
205 if (option_length > sizeof(**dev_op_flow_steering)) in gve_parse_device_option()
212 if (option_length < sizeof(**dev_op_rss_config) || in gve_parse_device_option()
218 option_length, req_feat_mask); in gve_parse_device_option()
222 if (option_length > sizeof(**dev_op_rss_config)) in gve_parse_device_option()