Lines Matching refs:fw_app

319 	struct hwrm_struct_data_dcbx_app *fw_app;  in bnxt_hwrm_get_dcbx_app()  local
331 data_len = sizeof(*data) + sizeof(*fw_app) * n; in bnxt_hwrm_get_dcbx_app()
345 fw_app = (struct hwrm_struct_data_dcbx_app *)(data + 1); in bnxt_hwrm_get_dcbx_app()
353 for (i = 0; i < n; i++, fw_app++) { in bnxt_hwrm_get_dcbx_app()
354 app[*num_inputs].priority = fw_app->priority; in bnxt_hwrm_get_dcbx_app()
355 app[*num_inputs].protocol = htobe16(fw_app->protocol_id); in bnxt_hwrm_get_dcbx_app()
356 app[*num_inputs].selector = fw_app->protocol_selector; in bnxt_hwrm_get_dcbx_app()
371 struct hwrm_struct_data_dcbx_app *fw_app; in bnxt_hwrm_set_dcbx_app() local
383 data_len = sizeof(*data) + sizeof(*fw_app) * n; in bnxt_hwrm_set_dcbx_app()
397 fw_app = (struct hwrm_struct_data_dcbx_app *)(data + 1); in bnxt_hwrm_set_dcbx_app()
405 for (i = 0; i < n; i++, fw_app++) { in bnxt_hwrm_set_dcbx_app()
406 if (fw_app->protocol_id == htobe16(app->protocol) && in bnxt_hwrm_set_dcbx_app()
407 fw_app->protocol_selector == app->selector && in bnxt_hwrm_set_dcbx_app()
408 fw_app->priority == app->priority) { in bnxt_hwrm_set_dcbx_app()
418 fw_app->protocol_id = htobe16(app->protocol); in bnxt_hwrm_set_dcbx_app()
419 fw_app->protocol_selector = app->selector; in bnxt_hwrm_set_dcbx_app()
420 fw_app->priority = app->priority; in bnxt_hwrm_set_dcbx_app()
421 fw_app->valid = 1; in bnxt_hwrm_set_dcbx_app()
429 len = (n - 1 - i) * sizeof(*fw_app); in bnxt_hwrm_set_dcbx_app()
431 memmove(fw_app, fw_app + 1, len); in bnxt_hwrm_set_dcbx_app()
433 memset(fw_app + n, 0, sizeof(*fw_app)); in bnxt_hwrm_set_dcbx_app()
436 data->len = htole16(sizeof(*fw_app) * n); in bnxt_hwrm_set_dcbx_app()
442 set.data_len = htole16(sizeof(*data) + sizeof(*fw_app) * n); in bnxt_hwrm_set_dcbx_app()