FreeBSD/sys/dev/bxe/ecore_sp.c
/**
 * ecore_mcast_handle_restore_cmd_e2 - restore configuration from the registry
 *
 * @sc:		device handle
 * @o:
 * @start_bin:	index in the registry to start from (including)
 * @rdata_idx:	index in the ramrod data to start from
 *
 * returns last handled bin index or -1 if all bins have been handled
 */
restore configuration from the registry
@sc:         device handle
@o:
@start_bin:  index in the registry to start from (including)
@rdata_idx:  index in the ramrod data to start from

returns last handled bin index or -1 if all bins have been handled
restore configuration from the registry @sc : device handle @o : @start_bin : index in the registry to start from ( including ) @rdata_idx : index in the ramrod data to start from returns last handled bin index or - 1 if all bins have been handled
static inline int ecore_mcast_handle_restore_cmd_e2(
	struct bxe_softc *sc, struct ecore_mcast_obj *o , int start_bin,
	int *rdata_idx)
{
	int cur_bin, cnt = *rdata_idx;
	union ecore_mcast_config_data cfg_data = {NULL};
	for (cur_bin = ecore_mcast_get_next_bin(o, start_bin); cur_bin >= 0;
	    cur_bin = ecore_mcast_get_next_bin(o, cur_bin + 1)) {
		cfg_data.bin = (uint8_t)cur_bin;
		o->set_one_rule(sc, o, cnt, &cfg_data,
				ECORE_MCAST_CMD_RESTORE);
		cnt++;
		ECORE_MSG(sc, "About to configure a bin %d\n", cur_bin);
		if (cnt >= o->max_cmd_len)
			break;
	}
	*rdata_idx = cnt;
	return cur_bin;
}
static inline int ecore_mcast_handle_restore_cmd_e2 ( struct bxe_softc * sc , struct ecore_mcast_obj * o , int start_bin , int * rdata_idx ) { int cur_bin , cnt = * rdata_idx ; union ecore_mcast_config_data cfg_data = { NULL } ; for ( cur_bin = ecore_mcast_get_next_bin ( o , start_bin ) ; cur_bin >= 0 ; cur_bin = ecore_mcast_get_next_bin ( o , cur_bin + 1 ) ) { cfg_data . bin = ( uint8_t ) cur_bin ; o -> set_one_rule ( sc , o , cnt , & cfg_data , ECORE_MCAST_CMD_RESTORE ) ; cnt ++ ; ECORE_MSG ( sc , " \n " , cur_bin ) ; if ( cnt >= o -> max_cmd_len ) break ; } * rdata_idx = cnt ; return cur_bin ; }
ecore_mcast_handle_restore_cmd_e2 - restore configuration from the registry
 @sc:         device handle
 @o:
 @start_bin:  index in the registry to start from (including)
 @rdata_idx:  index in the ramrod data to start from
ecore_mcast_handle_restore_cmd_e2 - restore configuration from the registry @sc : device handle @o : @start_bin : index in the registry to start from ( including ) @rdata_idx : index in the ramrod data to start from
/* go through the registry and configure the bins from it */ /* Break if we reached the maximum number
		 * of rules.
		 */