FreeBSD/sys/dev/bxe/ecore_sp.c
/**
 * ecore_mcast_handle_current_cmd -
 *
 * @sc:		device handle
 * @p:
 * @cmd:
 * @start_cnt:	first line in the ramrod data that may be used
 *
 * This function is called iff there is enough place for the current command in
 * the ramrod data.
 * Returns number of lines filled in the ramrod data in total.
 */
ecore_mcast_handle_current_cmd
@sc:         device handle
@p:
@cmd:
@start_cnt:  first line in the ramrod data that may be used

This function is called iff there is enough place for the current command in
the ramrod data.
Returns number of lines filled in the ramrod data in total.
ecore_mcast_handle_current_cmd @sc : device handle @p : @cmd : @start_cnt : first line in the ramrod data that may be used This function is called iff there is enough place for the current command in the ramrod data . Returns number of lines filled in the ramrod data in total .
static inline int ecore_mcast_handle_current_cmd(struct bxe_softc *sc,
			struct ecore_mcast_ramrod_params *p,
			enum ecore_mcast_cmd cmd,
			int start_cnt)
{
	struct ecore_mcast_obj *o = p->mcast_obj;
	int cnt = start_cnt;
	ECORE_MSG(sc, "p->mcast_list_len=%d\n", p->mcast_list_len);
	switch (cmd) {
	case ECORE_MCAST_CMD_ADD:
		ecore_mcast_hdl_add(sc, o, p, &cnt);
		break;
	case ECORE_MCAST_CMD_DEL:
		ecore_mcast_hdl_del(sc, o, p, &cnt);
		break;
	case ECORE_MCAST_CMD_RESTORE:
		o->hdl_restore(sc, o, 0, &cnt);
		break;
	default:
		ECORE_ERR("Unknown command: %d\n", cmd);
		return ECORE_INVAL;
	}
	p->mcast_list_len = 0;
	return cnt;
}
static inline int ecore_mcast_handle_current_cmd ( struct bxe_softc * sc , struct ecore_mcast_ramrod_params * p , enum ecore_mcast_cmd cmd , int start_cnt ) { struct ecore_mcast_obj * o = p -> mcast_obj ; int cnt = start_cnt ; ECORE_MSG ( sc , " \n " , p -> mcast_list_len ) ; switch ( cmd ) { case ECORE_MCAST_CMD_ADD : ecore_mcast_hdl_add ( sc , o , p , & cnt ) ; break ; case ECORE_MCAST_CMD_DEL : ecore_mcast_hdl_del ( sc , o , p , & cnt ) ; break ; case ECORE_MCAST_CMD_RESTORE : o -> hdl_restore ( sc , o , 0 , & cnt ) ; break ; default : ECORE_ERR ( " \n " , cmd ) ; return ECORE_INVAL ; } p -> mcast_list_len = 0 ; return cnt ; }
ecore_mcast_handle_current_cmd
 @sc:         device handle
 @p:
 @cmd:
 @start_cnt:  first line in the ramrod data that may be used
ecore_mcast_handle_current_cmd @sc : device handle @p : @cmd : @start_cnt : first line in the ramrod data that may be used
/* The current command has been handled */