Lines Matching refs:option_length
29 option_end = (void *)(option + 1) + be16_to_cpu(option->option_length); in gve_get_next_option()
45 u16 option_length = be16_to_cpu(option->option_length); in gve_parse_device_option() local
53 if (option_length != GVE_DEV_OPT_LEN_GQI_RAW_ADDRESSING || in gve_parse_device_option()
59 option_length, req_feat_mask); in gve_parse_device_option()
68 if (option_length < sizeof(**dev_op_gqi_rda) || in gve_parse_device_option()
73 option_length, req_feat_mask); in gve_parse_device_option()
77 if (option_length > sizeof(**dev_op_gqi_rda)) { in gve_parse_device_option()
84 if (option_length < sizeof(**dev_op_gqi_qpl) || in gve_parse_device_option()
89 option_length, req_feat_mask); in gve_parse_device_option()
93 if (option_length > sizeof(**dev_op_gqi_qpl)) { in gve_parse_device_option()
100 if (option_length < sizeof(**dev_op_dqo_rda) || in gve_parse_device_option()
105 option_length, req_feat_mask); in gve_parse_device_option()
109 if (option_length > sizeof(**dev_op_dqo_rda)) { in gve_parse_device_option()
116 if (option_length < sizeof(**dev_op_jumbo_frames) || in gve_parse_device_option()
122 option_length, req_feat_mask); in gve_parse_device_option()
126 if (option_length > sizeof(**dev_op_jumbo_frames)) { in gve_parse_device_option()